Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element.prototype.dataset polyfill enumerability #37

Closed
jlewis-edr opened this issue Sep 13, 2018 · 0 comments · Fixed by #106
Closed

Element.prototype.dataset polyfill enumerability #37

jlewis-edr opened this issue Sep 13, 2018 · 0 comments · Fixed by #106
Assignees

Comments

@jlewis-edr
Copy link

When grabbing a DOM element using document.getElementById and calling dataset, the returned object is not enumerable. The polyfill is setting the properties enumerable value to the elements enumerable value, but for DOM elements it is undefined. This results in a for-in loop not working. Is there a workaround or can the enumerable value for the properties just be set to true?

This occurs in IE 9 and 10.

@JakeChampion JakeChampion self-assigned this Sep 14, 2018
@JakeChampion JakeChampion transferred this issue from polyfillpolyfill/polyfill-service Jan 23, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants