Open Bug 1241353 Opened 6 years ago Updated 3 years ago
<button type="menu"> ?
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:43.0) Gecko/20100101 Firefox/43.0 Build ID: 20151109145326 Steps to reproduce: Tried implementing a <button type="menu">, according to what's mentioned in MDN (https://developer.mozilla.org/en/docs/Web/HTML/Element/menu#Example_2). I had to change it a bit to get it to render properly, the buttons weren't rendering with value="...", so I made them non-empty elements. Clicked the button. Actual results: A different layout was applied to the button element, it looked a lot like a select element, but it didn't do anything when clicked, let alone show the menu, as per the latest spec (https://html.spec.whatwg.org/multipage/forms.html#attr-button-type). Messing around in the console I could see it had it's type attribute set to "submit", despite the it not looking like a submit button at all, and nothing happened when trying to change it to "menu". Expected results: A menu should appear, as per the spec (https://html.spec.whatwg.org/multipage/forms.html#attr-button-type-menu-state) OR it should like a default submit button.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
You need to log in before you can comment on or make changes to this bug.