querySelectorAll('option[selected]') returns no results for multiple selects if dev tools are closed

Confirmed Issue #12380812 • Assigned to Travis L.

Details

Author
Thomas S.
Created
Jun 18, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Since Edge 15 querySelectorAll('option[selected]') returns no results for a <select multiple> element. If the same code is run with the devtools opened, the results will actually be correct.

A small reproduction can be found here: https://jsfiddle.net/5oskefbg/1/
The expected number in the alert is 2 but the actual alert shows 0. If the fiddle is run with the devtools open, the expected output is shown.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

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

    Sign in