Re: <menuitem> content model

On 10 Feb 2014, at 22:10, Andry Rendy wrote:

> It would be interesting to understand why W3C specification doesn't 
> specify
> the fact about <menuitem>'s end tag

Speculation: It isn't backwards compatible. Browsers need explicit 
support for the element in order to generate the end of element 
immediately.

> even if it cites the example without it.

Errors should not be unexpected in draft specifications.

> So what's the correct way to use <menuitem> in HTML? As an empty 
> block?
> <menuitem></menuitem>

An exploit start tag and an explicit end tag, yes.

-- 
David Dorward
http://dorward.co.uk/

Received on Monday, 10 February 2014 22:27:33 UTC