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

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 UTC