[Bug 12639] New: collection[index] = new Option() as setter is supported by all modern UA(ff, opera, webkit, IE). Holes are allowed as in JS array i.e. {select.options.length = 0; select.options[10] = new Option(); select.options.length // 11}

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12639

           Summary: collection[index] = new Option() as setter is
                    supported by all modern UA(ff, opera, webkit, IE).
                    Holes are allowed as in JS array i.e.
                    {select.options.length = 0; select.options[10] = new
                    Option(); select.options.length // 11}
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#htm
                    loptionscollection
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Specification:
http://www.whatwg.org/specs/web-apps/current-work/complete/common-dom-interfaces.html
Section:
http://www.whatwg.org/specs/web-apps/current-work/#htmloptionscollection

Comment:
collection[index] = new Option() as setter is supported by all modern UA(ff,
opera, webkit, IE). Holes are allowed as in JS array i.e.
{select.options.length = 0; select.options[10] = new Option();
select.options.length // 11}

Posted from: 78.37.248.212
User agent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.8.131 Version/11.10

-- 
Configure bugmail: http://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 Monday, 9 May 2011 23:07:05 UTC