Cannot add property to <select> element from an extension

Confirmed Issue #13179007 • Assigned to Irfan A.

Details

Author
Genya M.
Created
Aug 10, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.15063
Reports
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?

Thanks,
Eugene

Attachments

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”

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

Sign in