Re: [VE][247] Add Subject Here

On 11/16/2011 11:23 PM, Leif Halvard Silli wrote:
> 
>      '''The sequence <FOO /> can be interpreted in at least two 
>      different ways, depending on the DOCTYPE of the document. 
>      For HTML 4.01 Strict, the '/' terminates the tag <FOO (with
>      an implied '>').'''
> 
> The above sounds as if it is only with STRICT doctype that '/' 
> terminates the tag. Whereas the correct thing is that it is the content 
> model of the body element that differs depending on STRICT and 
> TRANSITIONAL doctype.

True, and additionally it speaks too rigidly of HTML 4.01 also when the
document validated was something else, for example HTML 3.2 or ISO-HTML.
 I've changed the explanation in validator's development version to this:

    The sequence <FOO /> can be interpreted in at least two different
    ways, depending on the DOCTYPE of the document. For example for
    HTML 4.01 and earlier, the '/' terminates the tag <FOO (with an
    implied '>'). However, since many browsers don't interpret it this
    way, even in the presence of a "strict" DOCTYPE, it is best to
    avoid it completely in pure HTML documents and reserve its use
    solely for those written in XHTML.

Received on Wednesday, 16 November 2011 22:32:08 UTC