Bugzilla – Bug 541
Propagate the quirks mode to the fragment parser in preparation to speccing the parsing quirks. (credit: hs) (bug 6563)
Last modified: 2009-05-27 14:36:33 CEST
Index: source =================================================================== --- source (revision 2934) +++ source (revision 2935) @@ -58012,9 +58012,9 @@ that <a href="#contenteditable-delete">the selection be deleted</a>.</p></li> <li><p>Invoke the <span>HTML fragment parsing algorithm</span> - with an arbitrary orphan <code>body</code> element as the - <i>context</i> element and with the <var title="">value</var> - argument as <i>input</i>.</p></li> + with an arbitrary orphan <code>body</code> element owned by the + same <code>Document</code> as the <i>context</i> element and with + the <var title="">value</var> argument as <i>input</i>.</p></li> <li><p>Insert the nodes returned by the previous step into the document at the location of the caret, firing any mutation events as appropriate.</p></li> @@ -70352,6 +70352,20 @@ <li> + <p>If there is a <var title="">context</var> element, and the + <code>Document</code> of the <var title="">context</var> element + is in <span>quirks mode</span>, then let the <code>Document</code> + be in <span>quirks mode</span>. Otherwise, if there is a <var + title="">context</var> element, and the <code>Document</code> of + the <var title="">context</var> element is in <span>limited quirks + mode</span>, then let the <code>Document</code> be in + <span>limited quirks mode</span>. Otherwise, leave the + <code>Document</code> in <span>no quirks mode</span>.</p> + + </li> + + <li> + <p>Create a new <span>HTML parser</span>, and associate it with the just created <code>Document</code> node.</p>