Re: <menuitem> content model

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