W3C home > Mailing lists > Public > public-html@w3.org > September 2007

Re: </html> followed by spaces (detailed review of Writing HTML documents)

From: Simon Pieters <simonp@opera.com>
Date: Sat, 01 Sep 2007 18:43:39 +0200
To: "Simon Pieters" <simonp@opera.com>, public-html <public-html@w3.org>
Message-ID: <op.txzh21ozidj3kv@hp-a0a83fcd39d2.palace.opera.no>

On Sat, 01 Sep 2007 17:47:31 +0200, Simon Pieters <simonp@opera.com> wrote:

> The spec says about optional tags:
>
>     An html element's end tag may be omitted if the html element is not
>     immediately followed by a space character or a comment.
>
> However, since spaces after the </html> tag will be inserted into the  
> [body] element by the parser anyway, the </html> tag might well be  
> allowed to be omitted when [the html element] is followed by space  
> characters (but not when those in turn are followed by a comment).

This similarly applies to </body>.

-- 
Simon Pieters
Opera Software
Received on Saturday, 1 September 2007 16:44:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:07 GMT