You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Love your scripts but ran into a problem while using it with MSIE 9. Kept getting a "SYNTAX_ERR: DOM Exception 12, line 131, cssSandpaper.js" error. Everything worked fine but the error kept coming up.
I checked the js file and found it has to do with the querySelectorAll, which after looking around found can be a pain at times. To fix the problem I wrapped the call in a try...catch statement as such:
function fixOpacity() {
var transformRules = getRuleList('opacity').values;
for (var i in transformRules) {
var rule = transformRules[i];
try {
var nodes = document.querySelectorAll(rule.selector);
for (var j = 0; j < nodes.length; j++) {
me.setOpacity(nodes[j], rule.value)
}
} catch (e) {
//do nothing
}
}
}
The text was updated successfully, but these errors were encountered:
DOM Exception: SYNTAX_ERR (12)
cssSandpaper.js, line 413 character 13
-that's inside fixLinearGradients()
It would be nice to wrap all querySelectorAll in try/catch (and also show the error inside the selector some way - sorry I'm not knowledgeable enough to do it myself).
Love your scripts but ran into a problem while using it with MSIE 9. Kept getting a "SYNTAX_ERR: DOM Exception 12, line 131, cssSandpaper.js" error. Everything worked fine but the error kept coming up.
I checked the js file and found it has to do with the querySelectorAll, which after looking around found can be a pain at times. To fix the problem I wrapped the call in a try...catch statement as such:
The text was updated successfully, but these errors were encountered: