[whatwg] Closing tags for empty content model

On Tue, 29 Sep 2009 05:58:43 +0200, Dean Edwards <dean.edwards at gmail.com>  
> 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




which is not intuitive at all.

Also, it might lead people to think that


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

Received on Tuesday, 29 September 2009 02:21:33 UTC