NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 206 - Bring end tag processing at the top of the document more in line with IE, for more compatible <frameset> handling.
Bring end tag processing at the top of the document more in line with IE, for...
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-23 22:27 CEST by Henri Sivonen
Modified: 2009-11-23 17:16 CET (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 2008-05-23 22:27:49 CEST
Index: source
===================================================================
--- source	(revision 1685)
+++ source	(revision 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