NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 541 - Propagate the quirks mode to the fragment parser in preparation to speccing the parsing quirks. (credit: hs) (bug 6563)
Propagate the quirks mode to the fragment parser in preparation to speccing t...
Status: RESOLVED FIXED
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: 2009-05-27 14:26 CEST by Henri Sivonen
Modified: 2009-05-27 14:36 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 2009-05-27 14:26:19 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>