Note: There are a few cases of duplicates in user autocompletion which are being worked on.

<button type="menu"> ?

UNCONFIRMED
Unassigned

Status

()

Core
Layout: Form Controls
UNCONFIRMED
2 years ago
2 years ago

People

(Reporter: Felipe Ruiz, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
Created attachment 8710214 [details]
Screen Shot 2016-01-20 at 11.05.39 PM.png

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.

Updated

2 years ago
Component: DOM: Core & HTML → Layout: Form Controls
You need to log in before you can comment on or make changes to this bug.