W3C home > Mailing lists > Public > public-html@w3.org > May 2016

What to do with <menuitem> ?

From: Chaals McCathie Nevile <chaals@yandex-team.ru>
Date: Tue, 24 May 2016 11:40:09 +0100
To: "HTML WG (public-html@w3.org)" <public-html@w3.org>
Message-ID: <op.yhyns70js7agh9@widsith.local>
Hi folks,

please see also issue 274 https://github.com/w3c/html/issues/274

the `menuitem` element in HTML is currently described as a void element -  
one that has no content, so no end tag.

But in the test https://jsfiddle.net/gnwv5076/ it doesn't seem to work  
like that in Chrome, Edge, or Firefox - although it does in Chrome with  
experimental features enabled.

One approach is to require an end tag, another is to allow one and make it  
possible for content to be included, similar to the `option` element used  
in traditional HTML forms.

One argument against doing so is that browsers have said they are  
unwilling to allow such things as styling the elements, which can be  
presented as part of the native browser UI and therefore could become a  
vector for phishing attacks. Which reduces the value of using content  
instead of the `title` attribute.

Input welcome in the issue itself.



Charles McCathie Nevile - web standards - CTO Office, Yandex
  chaals@yandex-team.ru - - - Find more at http://yandex.com
Received on Tuesday, 24 May 2016 09:41:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 24 May 2016 09:41:14 UTC