[Webkit-unassigned] [Bug 115708] New: select element’s default selection is affected by CSS rules
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 6 21:22:54 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=115708
Summary: select element’s default selection is affected by CSS
rules
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rniwa at webkit.org
CC: adele at apple.com, darin at apple.com,
michelangelo at webkit.org, tkent at chromium.org,
jonlee at apple.com
We should consider merging
https://chromium.googlesource.com/chromium/blink/+/938d5b4ad28b364346bc8c182b4a71b13d20975d
<select> default selection is affected by CSS styling.
If we have option:checked selectors, HTMLOptionElement::selected is called even
when its owner option list is incomplete. It makes the default selection
incorrect. To avoid this issue, we introduce isParsingInProgress flag, and
HTMLOptionElement::selected doesn't call
HTMLSelectELement::updateListItemSelectedStates if the flag is true.
Because this patch reduces the number of calls to
RenderMenuList::updateFromElement, a bug of RenderText is unveiled. A change of
RenderMenuList::setText avoids the bug.
Also, this change and accessibility/add-to-menu-list-crashes.html test unveiled a
bug that HTMLSelectElement::selectedOption didn't update selection status.
Tests:
* fast/forms/select/menulist-disabled-option.html is udpated. This patch updates
some option text so that expectations are easy to understand.
* fast/forms/HTMLOptinElement_selected3.html:
Update description, and make this work on IE10.
The new behavior is compatible with IE10.
--
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