We can define <menulist> elements to be popover by default. This would be more natural for developers, but I am not sure if it breaks any semantic. For example, there is no popover=none, so users wouldn't be able to opt out. Maybe we would need to add that as a valid value.
<menubar>
<menuitem menulist=more>More commands</menuitem>
</menubar>
<menulist id="more">
...
</menulist>
<!-- OR -->
<menubar>
<menuitem commandfor="more" command="toggle-menulist">More commands</menuitem>
</menubar>
<menulist id="more">
...
</menulist>
The second option would be to let the developer add the popover attribute and trigger the popover by using command/commandfor. This gives more flexibility to add more commands in the future and allow developers to turn it on/off by removing the attributes.
<menubar>
<menuitem commandfor="more" command="toggle-popover">More commands</menuitem>
</menubar>
<menulist id="more" popover>
...
</menulist>
This is probably related to the openable issue (#1198). If we want to allow inline menulist, than going with command/commandfor would be better.
We can define
<menulist>elements to be popover by default. This would be more natural for developers, but I am not sure if it breaks any semantic. For example, there is nopopover=none, so users wouldn't be able to opt out. Maybe we would need to add that as a valid value.The second option would be to let the developer add the popover attribute and trigger the popover by using command/commandfor. This gives more flexibility to add more commands in the future and allow developers to turn it on/off by removing the attributes.
This is probably related to the openable issue (#1198). If we want to allow inline menulist, than going with command/commandfor would be better.