[Webkit-unassigned] [Bug 27760] New: HTMLOptionElement::value() returns incorrect value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 28 02:35:35 PDT 2009


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

           Summary: HTMLOptionElement::value() returns incorrect value
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: Forms
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tkent at chromium.org


Suppose that we have 4 OPTION elements as follows:
 <option id="o1">text</option>
 <option id="o2" value="value">text</option>
 <option id="o3" label="label">text</option>
 <option id="o4" value="value" label="label">text</option>

The current WebKit returns the following values for .value and .label:
o1: value=text label=
o2: value=value label=
o3: value=label label=label
o4: value=value label=label

Apparently the value of o3 is incorrect.  It should be "text" or "".  I think
r40130 introduced this bug.

FYI:
On Firefox 3.5 and Opera 10:
o1: value=text label=
o2: value=value label=
o3: value=text label=label
o4: value=value label=label

On IE8:
o1: value= label=
o2: value=value label=
o3: value= label=label
o4: value=value label=label

As for HTML5, .value and .label just reflect their attribute values.
http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#dom-option-value
So IE8 behavior is compliant.

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