[Webkit-unassigned] [Bug 119291] New: HTMLOptionElement::defaultSelected should affect selection state of other option elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 30 16:20:58 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=119291
Summary: HTMLOptionElement::defaultSelected should affect
selection state of other option elements
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Keywords: BlinkMergeCandidate
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rniwa at webkit.org
CC: ap at webkit.org, tkent at chromium.org, jonlee at apple.com
Consider merging https://chromium.googlesource.com/chromium/blink/+/e8f0337fdc86554b48cf81d7ed8c286f251d2405
According to the standard, we should set selectedness to true if defaultSelected
is set to true, and we should not set selectedness to false if defaultSelected
is set to false because the standard says nothing about it.
[1]
> Whenever an option element's selected attribute is added, its selectedness
> must be set to true.
When the selectedness of an option is udpated, other options's selectedness
should become false.
[2]
> If the multiple attribute is absent, whenever an option element in the select
> element's list of options has its selectedness set to true, and whenever an
> option element with its selectedness set to true is added to the select
> element's list of options, the user agent must set the selectedness of all the
> other option elements in its list of options to false.
The old behavior doesn't match to the standard and any other browsers.
The new behavior matches to IE10 and the standard.
We need to update pseudoclass-update-checked-option.html because the
expected behavior of the test was incorrect.
[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#attr-option-selected
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-select-element
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list