Open mikesamuel opened 7 years ago
A bit more information for this one. The tags seem to only get misnested if there is no text between the opening and closing
<menuitem label="Twitter">TWITTER</menuitem>`
will be nested fine.
From looking at some resources online, this element is aparently an empty element that has no permited content between it's opening and closing tags Also most examples I've found don't bother having any text between the tags. However, from playing around with the element it seems that browsers will use the text between the tags as a fallback if there is no label attribute specified. Ideally it'd be nice if the sanitizer could handle both ways
wynne.jg reports
Note the
<menuitem>
s are nesting in the output but are siblings in the input.