[html5] r2935 - [t] (0) Propagate the quirks mode to the fragment parser in preparation to specc [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Mar 30 21:16:54 PDT 2009


Author: ianh
Date: 2009-03-30 21:16:53 -0700 (Mon, 30 Mar 2009)
New Revision: 2935

Modified:
   index
   source
Log:
[t] (0) Propagate the quirks mode to the fragment parser in preparation to speccing the parsing quirks. (credit: hs) (bug 6563)

Modified: index
===================================================================
--- index	2009-03-31 04:05:50 UTC (rev 2934)
+++ index	2009-03-31 04:16:53 UTC (rev 2935)
@@ -49737,9 +49737,9 @@
      that <a href=#contenteditable-delete>the selection be
      deleted</a>.</li>
      <li><p>Invoke the <a href=#html-fragment-parsing-algorithm>HTML fragment parsing algorithm</a>
-     with an arbitrary orphan <code><a href=#the-body-element>body</a></code> element as the
-     <i><a href=#context>context</a></i> element and with the <var title="">value</var>
-     argument as <i><a href=#the-input-element>input</a></i>.</li>
+     with an arbitrary orphan <code><a href=#the-body-element>body</a></code> element owned by the
+     same <code>Document</code> as the <i><a href=#context>context</a></i> element and with
+     the <var title="">value</var> argument as <i><a href=#the-input-element>input</a></i>.</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.</li>
@@ -57782,6 +57782,19 @@
 
    <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 <a href=#quirks-mode>quirks mode</a>, then let the <code>Document</code>
+    be in <a href=#quirks-mode>quirks mode</a>. Otherwise, if there is a <var title="">context</var> element, and the <code>Document</code> of
+    the <var title="">context</var> element is in <a href=#limited-quirks-mode>limited quirks
+    mode</a>, then let the <code>Document</code> be in
+    <a href=#limited-quirks-mode>limited quirks mode</a>. Otherwise, leave the
+    <code>Document</code> in <a href=#no-quirks-mode>no quirks mode</a>.</p>
+
+   </li>
+
+   <li>
+
     <p>Create a new <a href=#html-parser>HTML parser</a>, and associate it with
     the just created <code>Document</code> node.</p>
 

Modified: source
===================================================================
--- source	2009-03-31 04:05:50 UTC (rev 2934)
+++ source	2009-03-31 04:16:53 UTC (rev 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>
 




More information about the Commit-Watchers mailing list