[Bug 15596] New: option.value IDL attribute should return |text| IDL attribute instead of |textContent| when no value is set

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15596

           Summary: option.value IDL attribute should return |text| IDL
                    attribute instead of |textContent| when no value is
                    set
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: mounir.lamouri@gmail.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


The difference between |text| and |textContent| being:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#dom-option-text

For what I've seen, Gecko, Webkit and Presto doesn't follow the spec and return
.text instead of .textContent when requesting option.value.
IE9 and IE10PP are returning .textContent when getting .value. However, it
seems that .text is submitted instead of .value which is kind of odd.

By the way, wouldn't that be easier to simply say that value IDL attribute,
when getting, should reflect the |value| of the element as explained here:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#concept-option-value

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 17 January 2012 17:49:29 UTC