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
Internet Explorer 10 and below can't use "dataset" to access data on a DOM element. Here's a fix for the mdlComponentHandler.js file.
mdlComponentHandler.js
ORIGINAL
var upgrades = component.element_.dataset.upgraded.split(','); var componentPlace = upgrades.indexOf( component[componentConfigProperty_].classAsString); upgrades.splice(componentPlace, 1); component.element_.dataset.upgraded = upgrades.join(',');
UPDATED
var upgrades = component.element_.getAttribute("data-upgraded").split(','); var componentPlace = upgrades.indexOf( component[componentConfigProperty_].classAsString); upgrades.splice(componentPlace, 1); component.element_.setAttribute("data-upgraded", upgrades.join(','));
The text was updated successfully, but these errors were encountered:
Confirmed. IE10 does not support dataset.
dataset
Sorry, something went wrong.
Whoops, we also have problems in the component handler then... thanks for pointing this out.
Oh, I think Surma may have mis-tagged this... I have patch for the problem in with PR #1190.
My bad. Brain lag.
Garbee
No branches or pull requests
Internet Explorer 10 and below can't use "dataset" to access data on a DOM element. Here's a fix for the
mdlComponentHandler.js
file.ORIGINAL
UPDATED
The text was updated successfully, but these errors were encountered: