[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


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

I think that you missed these lines:
         if (!items[i]->getAttribute(HTMLNames::selectedAttr).isNull()) {
+            if (selectedOption && !data.multiple())
+                selectedOption->setSelectedState(false);
-            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