[Webkit-unassigned] [Bug 32641] New: The selected property of <option> elements is not always up to date
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Dec 16 16:39:27 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=32641
Summary: The selected property of <option> elements is not
always up to date
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jamesr at chromium.org
The 'selected' property of an <option> inside of a <select> is updated by
SelectElement::recalcListItems(). This is called on certain property accesses
of the <select> (like selectedIndex) but when the form is created by normal
document parsing then it is only called as a side effect of recalcStyle() - see
https://bugs.webkit.org/show_bug.cgi?id=15088.
The test that 'selected' is up to date
(fast/forms/HTMLOptionElement_selected.html) passes currently because the test
code runs in a 'load' event handler, which dispatches after the
'DOMContentLoaded' event. Node::dispatchGenericEvent() makes a call to
Document::updateStyleForAllDocuments() so the 'selected' property of the
<option> element is up to date by the time the test code runs. If the property
is queried before or during the DOMContentLoaded event dispatch, or if the call
to Document::updateStyleForAllDocuments() in Node::dispatchGenericEvent() is
removed (see https://bugs.webkit.org/show_bug.cgi?id=32580) then this test
fails.
--
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