W3C home > Mailing lists > Public > www-math@w3.org > November 2006

empty element syntax

From: William F Hammond <hammond@csc.albany.edu>
Date: Wed, 08 Nov 2006 11:32:45 -0500
To: www-math@w3.org
Message-ID: <i7fyctzyoi.fsf@hilbert.math.albany.edu>

<juanrgonzaleza@canonicalscience.com> writes:

> . . .
>  * The "/>" empty tag syntax actually has totally different meaning in
>    HTML4. (It's the SHORTTAG minimisation feature known as NET, if I
>    recall the name correctly.) Specifically, the XHTML
> . . .

Yes.

"<br/" is equivalent to "<br>".

IMO this is a bug in the HTML 4 specification.

> . . .

> ... is XML, by forcing <br> syntax instead <br/> or <br /> one
> obtains ...

For XML one may use either "<br></br>" or "<br/>", but "<br>" alone
violates the "well-formed" requirement (XML spec).

                                    -- Bill
Received on Wednesday, 8 November 2006 16:33:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:59 GMT