Cannot add property to <select> element from an extension

Confirmed Issue #13179007 • Assigned to Mahesh J.


Genya M.
Aug 10, 2017
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Hi guys, I’m porting chrome extension to the Edge browser and facing some issues.

Next code doesn’t work as expected when is executed from content script:
var select = document.createElement(‘SELECT’);
select[‘test’] = '123’;
console.log(select.test); -> prints 'undefined’. Expected to print '123’.
It seems like I can’t set the value of added property.

Attached extension adds new property to a few different elements. All of them work except of <select> element. Same snippet works fine for all elements when is executed in browser console.

Described behavior breaks jQuery, since it adds id to the elements with listeners and in case of <select> the id is undefined.

Can you please investigate?



Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

    Changed Assigned To to “Akshay P.”

    Changed Assigned To from “Akshay P.” to “Irfan A.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Irfan A.” to “Mahesh J.”

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

Sign in