What to do with <menuitem> ?

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.

cheers

Chaals

-- 
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