This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22225 - {HTMLOptionsCollection,HTMLSelectElement}.namedItem can only return HTMLOptionElement
Summary: {HTMLOptionsCollection,HTMLSelectElement}.namedItem can only return HTMLOptio...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-31 08:19 UTC by contributor
Modified: 2013-06-04 20:41 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2013-05-31 08:19:05 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html
Multipage: http://www.whatwg.org/C#htmloptionscollection-0
Complete: http://www.whatwg.org/c#htmloptionscollection-0
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html

Comment:
{HTMLOptionsCollection,HTMLSelectElement}.namedItem can return
HTMLOptionElement

Posted from: 81.242.201.8 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20130421 Firefox/23.0
Comment 1 Ms2ger 2013-05-31 08:19:41 UTC
At least, I can't find a way to get something else returned either per spec or in Gecko.
Comment 2 contributor 2013-06-04 20:41:07 UTC
Checked in as WHATWG revision r7897.
Check-in comment: Turns out in practice you can never get an <optgroup> from these APIs, so, let's remove them from the IDL.
http://html5.org/tools/web-apps-tracker?from=7896&to=7897