Open Bug 1241353 Opened 4 years ago Updated 2 years ago

<button type="menu"> ?

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set

Tracking

()

People

(Reporter: fgbruiz, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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.
Component: DOM: Core & HTML → Layout: Form Controls
Blocks: 897102
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.