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”