W3C home > Mailing lists > Public > public-html-diffs@w3.org > May 2009

Parsing-mode quirks. (bug 6562) (whatwg r3132)

From: poot <cvsmail@w3.org>
Date: Tue, 26 May 2009 16:33:54 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090526073354.A647C2BC84@toro.w3.mag.keio.ac.jp>
Parsing-mode quirks. (bug 6562) (whatwg r3132)
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6562

Diffs for this change per section: 
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2290.html#quirks-mode-doctypes
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2290.html#dom-document-compatmode
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2290.html#doctype-parse-error
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2290.html#adoptionAgency

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2289&r2=1.2290&f=h
http://html5.org/tools/web-apps-tracker?from=3131&to=3132

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2289
retrieving revision 1.2290
diff -u -d -r1.2289 -r1.2290
--- Overview.html	26 May 2009 02:19:13 -0000	1.2289
+++ Overview.html	26 May 2009 02:50:51 -0000	1.2290
@@ -6807,20 +6807,6 @@
   <a href="#quirks-mode">quirks mode</a> by the <a href="#html-parser">HTML parser</a>, in which
   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><a href="#the-p-element">p</a></code> can contain <code><a href="#the-table-element">table</a></code></li>
-
-    <li>Safari and IE have special parsing rules for &lt;% ... %&gt;
-    (even in standards mode, though clearly this should be
-    quirks-only).</li>
-
-   </ul></div>
-
   <hr></div><dl class="domintro"><dt><var title="">document</var> . <code title="dom-document-charset"><a href="#dom-document-charset">charset</a></code> [ = <var title="">value</var> ]</dt>
    <dd>
     <p>Returns the <a href="#document-s-character-encoding">document's character encoding</a>.</p>
@@ -55540,9 +55526,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 <a href="#quirks-mode">quirks mode</a>:</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 <a href="#quirks-mode">quirks mode</a>:</p>
 
     <ul class="brief"><li> The <i>force-quirks flag</i> is set to <i>on</i>. </li>
      <li> The name is set to anything other than "<code title="">HTML</code>". </li>
@@ -55621,9 +55607,9 @@
      <li> The system identifier is set to: "<code title="">http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd</code>" </li>
      <li> The system identifier is missing and the public identifier starts with: "<code title="">-//W3C//DTD HTML 4.01 Frameset//<!--EN--></code>" </li>
      <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 <a href="#limited-quirks-mode">limited quirks mode</a>:</p>
+    </ul><p>Otherwise, if the DOCTYPE token matches one of the conditions
+    in the following list, then set the <code>Document</code> to
+    <a href="#limited-quirks-mode">limited quirks mode</a>:</p>
 
     <ul class="brief"><li> The public identifier starts with: "<code title="">-//W3C//DTD XHTML 1.0 Frameset//<!--EN--></code>" </li>
      <li> The public identifier starts with: "<code title="">-//W3C//DTD XHTML 1.0 Transitional//<!--EN--></code>" </li>
@@ -55644,7 +55630,7 @@
 
     <p><a href="#parse-error">Parse error</a>.</p>
 
-    <p>Set the document to <a href="#quirks-mode">quirks mode</a>.</p>
+    <p>Set the <code>Document</code> to <a href="#quirks-mode">quirks mode</a>.</p>
 
     <p>Switch the <a href="#insertion-mode">insertion mode</a> to "<a href="#the-before-html-insertion-mode" title="insertion mode: before html">before html</a>", then
     reprocess the current token.</p>
@@ -56893,10 +56879,14 @@
    <dt>A start tag whose tag name is "table"</dt>
    <dd>
 
-    <p>If the <a href="#stack-of-open-elements">stack of open elements</a> <a href="#has-an-element-in-scope" title="has
-    an element in scope">has a <code>p</code> element in
-    scope</a>, 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
+    <a href="#quirks-mode">quirks mode</a>, and the <a href="#stack-of-open-elements">stack of open
+    elements</a> <a href="#has-an-element-in-scope" title="has an element in scope">has a
+    <code>p</code> element in scope</a>, 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><a href="#insert-an-html-element">Insert an HTML element</a> for the token.</p>
 
@@ -56945,7 +56935,7 @@
     <p>If the <a href="#stack-of-open-elements">stack of open elements</a> <a href="#has-an-element-in-scope" title="has
     an element in scope">has a <code>p</code> element in
     scope</a>, 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><a href="#insert-an-html-element">Insert an HTML element</a> for the token. Immediately
     pop the <a href="#current-node">current node</a> off the <a href="#stack-of-open-elements">stack of open
Received on Tuesday, 26 May 2009 07:34:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:05 GMT