- From: Sanjoy Pal <sanjoy.pal@samsung.com>
- Date: Mon, 01 Dec 2014 15:57:50 +0530
- To: whatwg@whatwg.org
Hi ,
I am trying to implement the activation behavior for <menuitem
type=checkbox" checked> from this part of specification
https://html.spec.whatwg.org/multipage/forms.html#attr-menuitem-checked
"If the
<https://html.spec.whatwg.org/multipage/forms.html#attr-menuitem-type> type
attribute is in the
<https://html.spec.whatwg.org/multipage/forms.html#attr-menuitem-type-state-
checkbox> Checkbox state
If the element has a
<https://html.spec.whatwg.org/multipage/forms.html#attr-menuitem-checked>
checked attribute, the UA must remove that attribute. Otherwise, the UA must
add a
<https://html.spec.whatwg.org/multipage/forms.html#attr-menuitem-checked>
checked attribute, with the literal value "checked""
In the above section of specification, UA does not send click event to
<menuitem>. For example,
<menuitem type="checkbox" checked label="Refresh"
onclick='console.log("Clicked")'; icon="ico_reload.png"></menuitem>
If we don't dispatch a click, then how the onclick handler will be called
for the menuitem? I'm not sure how the app uses <menuitem type="checkbox">
in that
case? Firefox sends click for type checkbox. Please check
<http://jsfiddle.net/oec7vv4r/2/show/> http://jsfiddle.net/oec7vv4r/2/show/
on firefox after changing menu type="context".
Regards,
Sanjoy
Received on Monday, 1 December 2014 10:27:36 UTC