Re: Are new void elements really a good idea?

On Mon, 01 Sep 2008 03:09:03 +0200, Leif Halvard Silli <lhs@malform.no>  
wrote:
> Would you not consider <embed> a self-closing element, like <p>? After  
> all, it can take one element, the <noembed> element.

Actually, it can't.


> My "HTML 4 unleashed" book from 1998 shows an example where <embed>  
> doesn't have a closing tag. But in the reference section it says that it  
> has one. And there is no problem finding references which says that one  
> should write <embed></embed>. Logically, it is the <noembed> element  
> which has created this confusion.

I suggest testing what browsers have actually implemented. It parses just  
like <img>.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 1 September 2008 08:55:17 UTC