[whatwg] Closing tags for empty content model
Anne van Kesteren
annevk at opera.com
Tue Sep 29 02:21:33 PDT 2009
On Tue, 29 Sep 2009 05:58:43 +0200, Dean Edwards <dean.edwards at gmail.com>
wrote:
> Just to reiterate, Opera<10 treats all unknown elements as container
> (flow) elements. That means that as soon as it encounters a <source>
> tag, all of the following elements are *children* of the <source>
> element. This makes all DOM queries and CSS rules completely useless.
> Allowing a closing </source> tag solves the problem.
The problem with allowing this is that
<br></br>
means
<br><br>
which is not intuitive at all.
Also, it might lead people to think that
<img>x</img>
should work and file bugs on browsers regarding that while it really
should not (and cannot).
This does suck a little when introducing new void elements, but keeping
the syntax consistent is worth it in my opinion.
--
Anne van Kesteren
http://annevankesteren.nl/
More information about the whatwg
mailing list