[html5] r1686 - /

whatwg at whatwg.org whatwg at whatwg.org
Fri May 23 03:49:23 PDT 2008


Author: ianh
Date: 2008-05-23 03:49:22 -0700 (Fri, 23 May 2008)
New Revision: 1686

Modified:
   index
   source
Log:
[ct] (2) Bring end tag processing at the top of the document more in line with IE, for more compatible <frameset> handling.

Modified: index
===================================================================
--- index	2008-05-23 09:07:29 UTC (rev 1685)
+++ index	2008-05-23 10:49:22 UTC (rev 1686)
@@ -41171,7 +41171,10 @@
   <p>An <code><a href="#html">html</a></code> element's <span
    title=syntax-end-tag>end tag</span> may be omitted if the <code><a
    href="#html">html</a></code> element is not immediately followed a <a
-   href="#comments0" title=syntax-comments>comment</a>.</p>
+   href="#comments0" title=syntax-comments>comment</a> and the element
+   contains a <code><a href="#body0">body</a></code> element that is either
+   not empty or whose <span title=syntax-start-tag>start tag</span> has not
+   been omitted.</p>
   <!-- <head> -->
 
   <p>A <code><a href="#head">head</a></code> element's <span
@@ -41205,7 +41208,10 @@
   <p>A <code><a href="#body0">body</a></code> element's <span
    title=syntax-end-tag>end tag</span> may be omitted if the <code><a
    href="#body0">body</a></code> element is not immediately followed by a <a
-   href="#comments0" title=syntax-comments>comment</a>. <!-- </li> -->
+   href="#comments0" title=syntax-comments>comment</a> and the element is
+   either not empty or its <span title=syntax-start-tag>start tag</span> has
+   not been omitted.</p>
+  <!-- </li> -->
 
   <p>A <code><a href="#li">li</a></code> element's <span
    title=syntax-end-tag>end tag</span> may be omitted if the <code><a
@@ -45415,7 +45421,7 @@
     <p>Switch the <span>insertion mode</span> to "<a href="#in-head"
      title="insertion mode: in head">in head</a>".</p>
 
-   <dt>An end tag whose tag name is one of: "head", "body", "html", "p", "br"
+   <dt>An end tag whose tag name is one of: "head", "br"
 
    <dd>
     <p>Act as if a start tag token with the tag name "head" and no attributes
@@ -45667,7 +45673,7 @@
     <p>Switch the <span>insertion mode</span> to "<a href="#after4"
      title="insertion mode: after head">after head</a>".</p>
 
-   <dt>An end tag whose tag name is one of: "body", "html", "p", "br"
+   <dt>An end tag whose tag name is "br"
 
    <dd>
     <p>Act as described in the "anything else" entry below.</p>
@@ -45737,7 +45743,7 @@
      href="#in-head" title="insertion mode: in head">in head</a>"
      <span>insertion mode</span>.</p>
 
-   <dt>An end tag whose tag name is one of: "p", "br"
+   <dt>An end tag whose tag name is one of: "br"
 
    <dd>
     <p>Act as described in the "anything else" entry below.</p>
@@ -45826,6 +45832,13 @@
      element pointer</a>) off the <a href="#stack">stack of open
      elements</a>.</p>
 
+   <dt>A start tag whose tag name is "head"
+
+   <dt>Any other end tag
+
+   <dd>
+    <p><a href="#parse1">Parse error</a>. Ignore the token.</p>
+
    <dt>Anything else
 
    <dd>

Modified: source
===================================================================
--- source	2008-05-23 09:07:29 UTC (rev 1685)
+++ source	2008-05-23 10:49:22 UTC (rev 1686)
@@ -38794,8 +38794,10 @@
   <!-- </html> -->
   <p>An <code>html</code> element's <span title="syntax-end-tag">end
   tag</span> may be omitted if the <code>html</code> element is not
-  immediately followed a <span
-  title="syntax-comments">comment</span>.</p>
+  immediately followed a <span title="syntax-comments">comment</span>
+  and the element contains a <code>body</code> element that is either
+  not empty or whose <span title="syntax-start-tag">start tag</span>
+  has not been omitted.</p>
 
   <!-- <head> -->
   <p>A <code>head</code> element's <span
@@ -38826,7 +38828,9 @@
   <p>A <code>body</code> element's <span title="syntax-end-tag">end
   tag</span> may be omitted if the <code>body</code> element is not
   immediately followed by a <span
-  title="syntax-comments">comment</span>.
+  title="syntax-comments">comment</span> and the element is either not
+  empty or its <span title="syntax-start-tag">start tag</span> has not
+  been omitted.</p>
 
   <!-- </li> -->
   <p>A <code>li</code> element's <span title="syntax-end-tag">end
@@ -42520,12 +42524,11 @@
 
    </dd>
 
-   <dt>An end tag whose tag name is one of: "head", "body", "html", "p", "br"</dt>
+   <dt>An end tag whose tag name is one of: "head", "br"</dt>
    <dd>
 
     <p>Act as if a start tag token with the tag name "head" and no
-    attributes had been seen, then reprocess the current
-    token.</p>
+    attributes had been seen, then reprocess the current token.</p>
 
    </dd>
 
@@ -42792,7 +42795,7 @@
 
    </dd>
 
-   <dt>An end tag whose tag name is one of: "body", "html", "p", "br"</dt>
+   <dt>An end tag whose tag name is "br"</dt>
    <dd>
     <p>Act as described in the "anything else" entry below.</p>
    </dd>
@@ -42866,7 +42869,7 @@
     mode</span>.</p>
    </dd>
 
-   <dt>An end tag whose tag name is one of: "p", "br"</dt>
+   <dt>An end tag whose tag name is one of: "br"</dt>
    <dd>
     <p>Act as described in the "anything else" entry below.</p>
    </dd>
@@ -42967,6 +42970,12 @@
 
    </dd>
 
+   <dt>A start tag whose tag name is "head"</dt>
+   <dt>Any other end tag</dt>
+   <dd>
+    <p><span>Parse error</span>. Ignore the token.</p>
+   </dd>
+
    <dt>Anything else</dt>
    <dd>
     <p>Act as if a start tag token with the tag name "body" and no




More information about the Commit-Watchers mailing list