W3C home > Mailing lists > Public > www-validator@w3.org > February 2014

Re: <menuitem> content model

From: David Dorward <david@dorward.me.uk>
Date: Mon, 10 Feb 2014 22:27:08 +0000
To: "Andry Rendy" <master.skywalker.88@gmail.com>, "www-validator@w3.org Community" <www-validator@w3.org>
Message-ID: <C9082E0F-937A-4601-B1B4-165F917B8F26@dorward.me.uk>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:10 UTC