NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 131 - Strip spaces between <html> and <head> start tags.
Strip spaces between <html> and <head> start tags.
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: 2008-03-04 11:20 CET by Nobody
Modified: 2008-03-07 16:30 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 Nobody 2008-03-04 11:20:43 CET
Index: source
===================================================================
--- source	(revision 1331)
+++ source	(revision 1332)
@@ -34760,13 +34760,24 @@
   encoding declarations</span> are to be serialised, as discussed in
   the section on that topic.</p>
 
-  <p class="note">Space characters before the root <code>html</code>
-  element will be dropped when the document is parsed; space
-  characters <em>after</em> the root <code>html</code> element will be
-  parsed as if they were at the end of the <code>body</code>
-  element. Thus, space characters around the root element do not
-  round-trip. It is suggested that newlines be inserted after the
-  DOCTYPE and any comments that are before the root element.</p>
+  <div class="note">
+
+   <p>Space characters before the root <code>html</code> element, and
+   space characters at the start of the <code>html</code> element and
+   before the <code>head</code> element, will be dropped when the
+   document is parsed; space characters <em>after</em> the root
+   <code>html</code> element will be parsed as if they were at the end
+   of the <code>body</code> element. Thus, space characters around the
+   root element do not round-trip.</p>
+
+   <p>It is suggested that newlines be inserted after the DOCTYPE,
+   after any comments that are before the root element, after the
+   <code>html</code> element's start tag (if it is not <span
+   title="syntax-tag-omission">omitted</span>), and after any comments
+   that are inside the <code>html</code> element but before the
+   <code>head</code> element.</p>
+
+  </div>
 
 
   <h4>The DOCTYPE</h4>
@@ -38547,8 +38558,7 @@
    TABULATION, U+000C FORM FEED (FF), <!--U+000D CARRIAGE RETURN (CR),-->
    or U+0020 SPACE</dt>
    <dd>
-    <p><span title="append a character">Append the character</span> to
-    the <span>current node</span>.</p>
+    <p>Ignore the token.</p> <!-- :-( -->
    </dd>
 
    <dt>A comment token</dt>