Bugzilla – Bug 213
Make it easier to optimise the parser by adding certain elements to the foreign content escape hatch. (credit: hs)
Last modified: 2008-05-28 14:16: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>