[Webkit-unassigned] [Bug 27942] Form Reset does not work per w3c standard when single selection SELECT element has more than one option marked as selected.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 4 14:02:07 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=27942





--- Comment #13 from Carol Szabo <carol.szabo at nokia.com>  2009-08-04 14:02:06 PDT ---
(In reply to comment #11)
> (From update of attachment 34007 [details])
> This patch looks wrong. As written all it does is rename the boolean to
> "isOptionSelected" and add a new, never-used "selectedOption".
> 
> > +            selectedOption=optionElement;
> 

Darin,
I think that you missed these lines:
         if (!items[i]->getAttribute(HTMLNames::selectedAttr).isNull()) {
+            if (selectedOption && !data.multiple())
+                selectedOption->setSelectedState(false);
             optionElement->setSelectedState(true);
-            optionSelected = true;
+            selectedOption = optionElement;
+            isOptionSelected = true;

They are intended to unselect the previously selected options if the select box
is not a multiple selection box.

-- 
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