NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 213 - Make it easier to optimise the parser by adding certain elements to the foreign content escape hatch. (credit: hs)
Make it easier to optimise the parser by adding certain elements to the forei...
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-25 21:06 CEST by Henri Sivonen
Modified: 2008-05-28 14:16 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2008-05-25 21:06:27 CEST
Index: source
===================================================================
--- source	(revision 1697)
+++ source	(revision 1698)
@@ -45050,12 +45050,17 @@
 
    <dt>A start tag whose tag name is one of: <!--"a",--> "b", "big",
    "blockquote", "body"<!--by inspection-->, "br", "center", "code",
-   "dd", "div", "dl", "em", "embed", "font", "h1", "h2", "h3",
-   "h4"<!--for completeness-->, "h5", "h6"<!--for completeness-->,
-   "head"<!--by inspection-->, "hr", "i", "img", "li", "menu", "meta",
-   "nobr", "p", "pre", "ruby", "s", <!--"script",--> "small", "span",
-   "strong", <!--"style",--> "sub", "sup", "table"<!--by
-   inspection-->, "tt", "u", "ul", "var"</dt>
+   "dd", "div", "dl", "dt"<!-- so that dd and dt can be handled
+   uniformly throughout the parser -->, "em", "embed", "font", "h1",
+   "h2", "h3", "h4"<!--for completeness-->, "h5", "h6"<!--for
+   completeness-->, "head"<!--by inspection-->, "hr", "i", "img",
+   "li", "listing"<!-- so that pre and listing can be handled
+   uniformly throughout the parser -->, "menu", "meta", "nobr",
+   "ol"<!-- so that dl, ul, and ol can be handled uniformly throughout
+   the parser -->, "p", "pre", "ruby", "s", <!--"script",--> "small",
+   "span", "strong", "strike"<!-- so that s and strike can be handled
+   uniformly throughout the parser -->, <!--"style",--> "sub", "sup",
+   "table"<!--by inspection-->, "tt", "u", "ul", "var"</dt>
    <!-- this list was determined empirically by studying over
    6,000,000,000 pages that were specifically not XML pages -->
    <dt>An end-of-file token</dt>