Try to define a XUL definition to get a menu with a popup menulist. The
menuitems should show a label and a leading icon.
The following definition works partially. Opening the menulist it shows
all defined menuitems but without showing the icon.
After selection and closing the list, the menubox shows for the selected
menuitem it's icon and the label.
Fine, but I need to have the icon also on the popup menulist.
What is missing with this definition?
<menulist id="listChooser" oncommand="listChooserChanged()">
<menupopup id="allListItems">
<menuitem class="menulist-iconic"
image="chrome://... mIcon.png" label="label-1" />
<menuitem class="menulist-iconic"
image="chrome://... mIcon.png" label="label-2" />
<menuitem label="label-n" />
</menupopup>
</menulist>
As per MDN
https://developer.mozilla.org/en-US/docs/XUL/menuitem#a-image
the class="menulist-iconic" is required for the menuitem, but could not
find any further request!