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 19:59:31 +0000
To: "Andry Rendy" <master.skywalker.88@gmail.com>
Cc: "www-validator@w3.org" <www-validator@w3.org>
Message-ID: <8594CEAB-DC04-49D0-9B95-5EE37DB1A7DF@dorward.me.uk>
On 10 Feb 2014, at 18:16, Andry Rendy wrote:

> While validating a <menu> element in the popup menu state containing
> commands in the form of <menuitem>, the validator expects them to be 
> closed
> as block tags:
> <menuitem></menuitem>.
> In html documents with the end tag omitted, each `<menuitem>` is 
> considered
> child of the previous one.

I don't see menuitem listed in the Optional tags section of the 
specification.

http://www.w3.org/html/wg/drafts/html/master/single-page.html#syntax-tag-omission

Where does it say that you may omit the end tag?

> In xhtml documents, when the self-closing syntax is used, it's flagged 
> as
> wrong for the element.

I can't reproduce that.

http://validator.w3.org/check?uri=http%3A%2F%2Ftest-cases.dorward.me.uk%2Fvalidator%2Fmenuitem%2Fmenuitem.xhtml&charset=%28detect+automatically%29&doctype=Inline&group=0

-- 
David Dorward
http://dorward.co.uk/
Received on Monday, 10 February 2014 20:00:02 UTC

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