r5262 tlsa - /trunk/hubbub/src/treebuilder/in_table.c

netsurf at semichrome.net netsurf at semichrome.net
Sat Sep 6 20:24:31 BST 2008


Author: tlsa
Date: Sat Sep  6 14:24:30 2008
New Revision: 5262

URL: http://source.netsurf-browser.org?rev=5262&view=rev
Log:
Fix for spurious attributes on implied tbody and colgroup by takkaria.

Modified:
    trunk/hubbub/src/treebuilder/in_table.c

Modified: trunk/hubbub/src/treebuilder/in_table.c
URL: http://source.netsurf-browser.org/trunk/hubbub/src/treebuilder/in_table.c?rev=5262&r1=5261&r2=5262&view=diff
==============================================================================
--- trunk/hubbub/src/treebuilder/in_table.c (original)
+++ trunk/hubbub/src/treebuilder/in_table.c Sat Sep  6 14:24:30 2008
@@ -118,7 +118,7 @@
 				treebuilder->tree_handler->ctx,
 				treebuilder->context.element_stack[
 				treebuilder->context.current_node].node);
-			formatting_list_append(treebuilder, 
+			formatting_list_append(treebuilder,
 					token->data.tag.ns, type,
 					treebuilder->context.element_stack[
 					treebuilder->context.current_node].node,
@@ -133,6 +133,8 @@
 				/* Insert colgroup and reprocess */
 				tag.name.ptr = (const uint8_t *) "colgroup";
 				tag.name.len = SLEN("colgroup");
+				tag.n_attributes = 0;
+				tag.attributes = NULL;
 
 				err = HUBBUB_REPROCESS;
 			}
@@ -148,6 +150,8 @@
 				/* Insert tbody and reprocess */
 				tag.name.ptr = (const uint8_t *) "tbody";
 				tag.name.len = SLEN("tbody");
+				tag.n_attributes = 0;
+				tag.attributes = NULL;
 
 				err = HUBBUB_REPROCESS;
 			}




More information about the netsurf-commits mailing list