Bugzilla – Bug 131
Strip spaces between <html> and <head> start tags.
Last modified: 2008-03-07 16:30:10 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>