Bugzilla – Bug 577
Parsing-mode quirks. (bug 6562)
Last modified: 2009-05-27 14:54:16 CEST
Index: source =================================================================== --- source (revision 3131) +++ source (revision 3132) @@ -7613,24 +7613,6 @@ case it must instead return the literal string "<code title="">BackCompat</code>".</p> - <div class="XXX"> - - <p>As far as parsing goes, the quirks I know of are:</p> - - <ul> - - <li>Comment parsing is different.</li> - - <li><code>p</code> can contain <code>table</code></li> - - <li>Safari and IE have special parsing rules for <% ... %> - (even in standards mode, though clearly this should be - quirks-only).</li> - - </ul> - - </div> - <hr> </div> @@ -75499,9 +75481,9 @@ value of the <code title="">doctype</code> attribute of the <code>Document</code> object.</p> - <p id="quirks-mode-doctypes">Then, if the DOCTYPE - token matches one of the conditions in the following list, then - set the document to <span>quirks mode</span>:</p> + <p id="quirks-mode-doctypes">Then, if the DOCTYPE token matches + one of the conditions in the following list, then set the + <code>Document</code> to <span>quirks mode</span>:</p> <ul class="brief"> <li> The <i>force-quirks flag</i> is set to <i>on</i>. </li> @@ -75583,9 +75565,9 @@ <li> The system identifier is missing and the public identifier starts with: "<code title="">-//W3C//DTD HTML 4.01 Transitional//<!--EN--></code>" </li> </ul> - <p>Otherwise, if the DOCTYPE - token matches one of the conditions in the following list, then - set the document to <span>limited quirks mode</span>:</p> + <p>Otherwise, if the DOCTYPE token matches one of the conditions + in the following list, then set the <code>Document</code> to + <span>limited quirks mode</span>:</p> <ul class="brief"> <li> The public identifier starts with: "<code title="">-//W3C//DTD XHTML 1.0 Frameset//<!--EN--></code>" </li> @@ -75610,7 +75592,7 @@ <p><span>Parse error</span>.</p> - <p>Set the document to <span>quirks mode</span>.</p> + <p>Set the <code>Document</code> to <span>quirks mode</span>.</p> <p>Switch the <span>insertion mode</span> to "<span title="insertion mode: before html">before html</span>", then @@ -76986,10 +76968,14 @@ <dt>A start tag whose tag name is "table"</dt> <dd> - <p>If the <span>stack of open elements</span> <span title="has - an element in scope">has a <code>p</code> element in - scope</span>, then act as if an end tag with the tag name - "p" had been seen.</p> <!-- XXX quirks: don't do this --> + <p>If the <code>Document</code> is <em>not</em> set to + <span>quirks mode</span>, and the <span>stack of open + elements</span> <span title="has an element in scope">has a + <code>p</code> element in scope</span>, then act as if an end tag + with the tag name "p" had been seen.</p> <!-- i hate myself (this + quirk was basically caused by acid2; if i'd realised we could + change the specs when i wrote acid2, we could have avoided having + any parsing-mode quirks) -Hixie --> <p><span>Insert an HTML element</span> for the token.</p> @@ -77039,7 +77025,7 @@ <p>If the <span>stack of open elements</span> <span title="has an element in scope">has a <code>p</code> element in scope</span>, then act as if an end tag with the tag name - "p" had been seen.</p> <!-- XXX quirks: don't do this --> + "p" had been seen.</p> <p><span>Insert an HTML element</span> for the token. Immediately pop the <span>current node</span> off the <span>stack of open