Re: [VE][70] tag <br> should not request an end tag

Kratzer, Willi wrote:
> Validating 
> http://www.spec.org/cpu2006/flags/Intel-ic11.0-int-linux64-revA.20090331.01..html 
> <http://www.spec.org/cpu2006/flags/Intel-ic11.0-int-linux64-revA.20090331.01.html>
> Error [70]: "end tag for X omitted, but OMITTAG NO was specified"
>  
> The validator requests an end tag for <br>.
>  
> <br> means “break” or newline. It does not make any sense to specify 
> “end of newline”. So it is natural to have <br> with no corresponding 
> end tag.
>  
> A tag <br> without an end tag is not an error and should not be handled 
> as an error.
>  
> In my opinion, this is a bug in the validator.

The document you linked to is xhtml, which is a subset of xml.

All xml tags must be closed regardless of their function.
In the case of the br tag, since it never has children that is 
accomplished by using a self closing tag - <br />

Received on Monday, 25 May 2009 11:34:48 UTC