r4732 takkaria - /branches/takkaria/hubbub-parserutils/src/tokeniser/tokeniser.c

netsurf at semichrome.net netsurf at semichrome.net
Thu Jul 24 00:47:45 BST 2008


Author: takkaria
Date: Wed Jul 23 18:47:45 2008
New Revision: 4732

URL: http://source.netsurf-browser.org?rev=4732&view=rev
Log:
Set force-quirks correctly when failing to match PUBLIC or SYSTEM in DOCTYPEs.

Modified:
    branches/takkaria/hubbub-parserutils/src/tokeniser/tokeniser.c

Modified: branches/takkaria/hubbub-parserutils/src/tokeniser/tokeniser.c
URL: http://source.netsurf-browser.org/branches/takkaria/hubbub-parserutils/src/tokeniser/tokeniser.c?rev=4732&r1=4731&r2=4732&view=diff
==============================================================================
--- branches/takkaria/hubbub-parserutils/src/tokeniser/tokeniser.c (original)
+++ branches/takkaria/hubbub-parserutils/src/tokeniser/tokeniser.c Wed Jul 23 18:47:45 2008
@@ -2372,6 +2372,7 @@
 	assert(tokeniser->context.match_doctype.count <= PUBLIC_LEN);
 
 	if (PUBLIC[tokeniser->context.match_doctype.count] != (c & ~0x20)) {
+		tokeniser->context.current_doctype.force_quirks = true;
 		tokeniser->state = HUBBUB_TOKENISER_STATE_BOGUS_DOCTYPE;
 		return true;
 	}
@@ -2650,6 +2651,7 @@
 	assert(tokeniser->context.match_doctype.count <= SYSTEM_LEN);
 
 	if (SYSTEM[tokeniser->context.match_doctype.count] != (c & ~0x20)) {
+		tokeniser->context.current_doctype.force_quirks = true;
 		tokeniser->state = HUBBUB_TOKENISER_STATE_BOGUS_DOCTYPE;
 		return true;
 	}




More information about the netsurf-commits mailing list