Summary: | style.display affecting the initial selectedIndex value of a <select> when it's multiple attribute is set programatically | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Darth <priyajeet.hora> | ||||||||
Component: | Forms | Assignee: | Emil A Eklund <eae> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | ap, dglazkov, eae, priyajeet.hora | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Darth
2011-02-05 15:17:20 PST
Created attachment 84640 [details]
Patch
This patch changes the behavior of <select> elements with display: none to match the behavior of elements that are displayed.
Comment on attachment 84640 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=84640&action=review engage the tractor beam. > Source/WebCore/ChangeLog:5 > + style.display affecting the initial selectedIndex value of a <select> when it's multiple attribute is set programatically it's -> its > Source/WebCore/html/HTMLSelectElement.cpp:437 > + int oldSelectedIndex = selectedIndex(); Can you add a comment on why we're doing this here? Out of context, the reasoning behind this line is hard to guess. Created attachment 85089 [details]
Patch
Made suggested changes, PTAL.
Comment on attachment 85089 [details]
Patch
excellent!
Comment on attachment 85089 [details] Patch Clearing flags on attachment: 85089 Committed r80808: <http://trac.webkit.org/changeset/80808> |