We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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>.dataset
Object.keys
<element>.setAttribute
var a = document.createElement('a'); Object.keys(a.dataset); a.setAttribute("data-a", ""); if(Object.keys(a.dataset).length == 0)console.log("BUG")
At least in Opera 11.61 and Opera 12.1256 Alpha
for(var name in a.dataset){}
Object.keys(a.dataset)
document.createElement
The text was updated successfully, but these errors were encountered:
Does the same happen if we just touch a.dataset ? Like var a = document.createElement("a"), b = a.dataset; ?
a.dataset
var a = document.createElement("a"), b = a.dataset;
Have you raised a ticket with the opera guys?
Sorry, something went wrong.
No http://jsfiddle.net/RPkJu/7/
Yes https://twitter.com/#!/ODevRel_ru/status/162881951726968832
No branches or pull requests
CORE-44107: updating of
<element>.dataset
is frozen if applyObject.keys
to it before any<element>.setAttribute
.Bug detection [Draft]:
Opera versions:
At least in Opera 11.61 and Opera 12.1256 Alpha
Note:
for(var name in a.dataset){}
instead ofObject.keys(a.dataset)
do the same behaviorHow we can't fix this bug:
Object.keys
due Note#1document.createElement
due it's not fixed existing elementsThe text was updated successfully, but these errors were encountered: