Update HTMLSelectElement.options to return the type HTMLOptionsCollection instead of HTMLSelectElement

Fixed, not yet flighted Issue #2962297

Details

Created
May 26, 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

attached work in progress dpk  (bug2962297.dpk)

 

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”];    - fixed by VSO 2894015

// 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 Assigned To to “Scott B.”

      Changed Status to “In progress”

      Changed Steps to Reproduce

      Changed Status from “In progress” 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 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