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

Re: <menuitem> content model

From: Michael[tm] Smith <mike@w3.org>
Date: Thu, 13 Feb 2014 02:00:19 +0900
To: David Dorward <david@dorward.me.uk>, Andry Rendy <master.skywalker.88@gmail.com>
Cc: www-validator@w3.org
Message-ID: <20140212170018.GE23799@sideshowbarker>
David Dorward <david@dorward.me.uk>, 2014-02-10 21:57 +0000:

> On 10 Feb 2014, at 21:34, Andry Rendy wrote:
> >>Where does it say that you may omit the end tag?

The end tag for <menuitem> actually must be omitted. It's now defined as a
void element, so it's a parse error for it to have an end tag.

> >The original WHATWG draft mentions it.
> >http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-menuitem-element
> I suspect Nu is keyed off the W3C specification, not the WHATWG one.

The W3C spec also says that <menuitem> is void -


As far as the current validator behavior goes, the underlying problem is
that the HTML parser used by the validator doesn't yet treat <menuitem> as
void. We need to first change the parser to treat it as such.


Michael[tm] Smith http://people.w3.org/mike

Received on Wednesday, 12 February 2014 17:00:33 UTC

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