From 8210e688b79252a284307effbe0442c741506b09 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Thu, 6 Jun 2013 19:56:34 +0000 Subject: [PATCH] [cgiowt] (3) Turn off a quirk in foreign lands when doing innerHTML parsing Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17924 Affected topics: HTML Syntax and Parsing git-svn-id: http://svn.whatwg.org/webapps@7918 340c8d12-0b0e-0410-8428-c7bf67bfef74 --- complete.html | 22 ++++++++++++---------- index | 22 ++++++++++++---------- source | 22 ++++++++++++---------- 3 files changed, 36 insertions(+), 30 deletions(-) diff --git a/complete.html b/complete.html index 58735717cd4..e763867ffd5 100644 --- a/complete.html +++ b/complete.html @@ -91312,21 +91312,23 @@
12.2.5.4.16 The ", "p", "pre", "ruby", "s", "small", "span", "strong", "strike", "sub", "sup", "table", "tt", "u", "ul", "var"
A - start tag whose tag name is "font", if the token has any attributes named "color", "face", or - "size"
+ empirically by studying over 6,000,000,000 pages that were specifically not XML pages --> +
A start tag whose tag name is "font", if the token has any attributes named "color", "face", + or "size"

Parse error.

-

If the stack of open elements does not have an element in scope that is a MathML text integration point, an - HTML integration point, or an element in the HTML namespace, or if the - stack of open elements has only one element, then process the token using the - rules for the "in body" insertion - mode. (fragment case)

+ + +

If the parser was originally created for the HTML fragment parsing algorithm, + then act as described in the "any other start tag" entry below. (fragment case)

Otherwise:

diff --git a/index b/index index 58735717cd4..e763867ffd5 100644 --- a/index +++ b/index @@ -91312,21 +91312,23 @@ document.body.appendChild(text); parser -->, "p", "pre", "ruby", "s", "small", "span", "strong", "strike", "sub", "sup", "table", "tt", "u", "ul", "var"
A - start tag whose tag name is "font", if the token has any attributes named "color", "face", or - "size"
+ empirically by studying over 6,000,000,000 pages that were specifically not XML pages --> +
A start tag whose tag name is "font", if the token has any attributes named "color", "face", + or "size"

Parse error.

-

If the stack of open elements does not have an element in scope that is a MathML text integration point, an - HTML integration point, or an element in the HTML namespace, or if the - stack of open elements has only one element, then process the token using the - rules for the "in body" insertion - mode. (fragment case)

+ + +

If the parser was originally created for the HTML fragment parsing algorithm, + then act as described in the "any other start tag" entry below. (fragment case)

Otherwise:

diff --git a/source b/source index 447d6b05098..d746b49170f 100644 --- a/source +++ b/source @@ -101990,21 +101990,23 @@ document.body.appendChild(text); parser -->, "p", "pre", "ruby", "s", "small", "span", "strong", "strike", "sub", "sup", "table", "tt", "u", "ul", "var"
A - start tag whose tag name is "font", if the token has any attributes named "color", "face", or - "size"
+ empirically by studying over 6,000,000,000 pages that were specifically not XML pages --> +
A start tag whose tag name is "font", if the token has any attributes named "color", "face", + or "size"

Parse error.

-

If the stack of open elements does not have an element in scope that is a MathML text integration point, an - HTML integration point, or an element in the HTML namespace, or if the - stack of open elements has only one element, then process the token using the - rules for the "in body" insertion - mode. (fragment case)

+ + +

If the parser was originally created for the HTML fragment parsing algorithm, + then act as described in the "any other start tag" entry below. (fragment case)

Otherwise: