Re: Are new void elements really a good idea?

Smylers wrote:
>>> Julian Reschke wrote:
>>>> there are at least two ways to avoid the problem: ...  2) Keep
>>>> introducing new void elements, but always allow non-void notation,
>>>> such as <eventsource source="foo"></eventsource>
>>> <eventsource src="foo"/> is allowed.  Isn't that sufficient?
>> As part of a serialized document that needs to be  processed  by a UA
>> that does not know what an eventsource element is, it is not
>> sufficient. ... These transitional problems are due to deficiencies in
>> the text/html  serialization of HTML (... unable to syntactically
>> self-differentiate void from non-void elements like XML can with the
>> <tagname /> syntax).
> 
> Surely "the <tagname /> syntax" is exactly what Lachlan used above?

The "<tagname />" syntax is not allowed in HTML4, and thus existing 
libraries that have been designed to produce HTML4 will not use it.

On the other hand, what, except ideological reasons, stops us from allowing

  <tagname></tagname>

as well?

BR, Julian

Received on Sunday, 31 August 2008 11:23:00 UTC