The attribute 'options' of a HTMLSelectElement doesn't return HTMLOptionsCollection and accessing option via ["ID-string"] does not work

Fixed, not yet flighted Issue #2894015

Details

Created
May 18, 2015
Privacy
This issue is public.
Found in build #
10.10122
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

Uhttp://jsfiddle.net/dharmababa/h1aeto68/5/](http://jsfiddle.net/dharmababa/h1aeto68/5/)  [http://jsfiddle.net/dharmababa/h1aeto68/5/](http://jsfiddle.net/dharmababa/h1aeto68/5/)  

==============
var x = document.getElementById(“mySelect”);

// This returns HTMLSelectElement in MS Edge, but returns HTMLOptionsCollection in Chrome/FF
document.getElementById(“type”).innerHTML = x.options.getName();

// This fails in MS Edge, but works in Chrome/FF
var y = x.options[“volvoId”];

// This works in all browsers
// var y = x.options.namedItem(“volvoId”);

// This also works in all browsers
// var y = x.options[0];

document.getElementById(“output”).innerHTML = y.value;

http://www.w3.org/TR/DOM-Level-2-HTML/html.html#HTMLOptionsCollection

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Steps to Reproduce

      Changed Title from “The Attribute 'options' of an HTMLSelectElement does not return the object of HTMLOptionsCollection” to “The attribute 'options' of a HTMLSelectElement doesn't return HTMLOptionsCollection and accessing option via ["ID-string"] does not work”

      Changed Assigned To to “Christian F.”

      Changed Assigned To from “Christian F.” to “Scott B.”

      Changed Assigned To from “Scott B.” to “Frank O.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Frank O.” to “Scott B.”

      Changed Status from “Confirmed”

      Changed Assigned To from “Scott B.” to “IE S.”

      Changed Status to “Won’t fix”

      Changed Assigned To from “IE S.” to “Scott B.”

      Changed Status from “Won’t fix”

      Changed Status to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Assigned To from “Scott B.” to “IE S.”

      Changed Status from “In progress” to “Fixed”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

    You need to sign in to your Microsoft account to add a comment.

    Sign in