New issue
Advanced search Search tips

Issue 895171 link

Starred by 1 user

Issue metadata

Status: Closed
Owner: ----
Closed: Oct 14
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

<select size=1> selects the first <option> even if it has display:none

Project Member Reported by mpalmg...@mozilla.com, Oct 14

Issue description

Chrome Version: 
OS: Linux

What steps will reproduce the problem?
(1) load this URL
data:text/html,<select size=1><option style="display:none">Option one</option><option>Option Two</option><option>Option three</option></select>
(2)
(3)

What is the expected result?
"Option Two" is the selected option

What happens instead?
"Option One" is displayed as the selected option although it doesn't appear in the list

 
Status: Closed (was: Untriaged)
Nevermind.  Apparently this is the intended behavior and there's
even a WPT that tests this:
html/semantics/forms/the-select-element/selected-index.html

Sign in to add a comment