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
You have a few variables in your files that pollute the global namespace: currentproperties, idx, key, mozFilter, msFilter, oFilter and webkitFilter all show up in the global DOM list.
Also, the cssParser.js file you're using uses A LOT of global variables for its internal logic, which seems kind of superflous. I haven't done any extensive testing (besides Firefox and Chrome), but I've simply put everything except the CSSScanner and CSSParser functions inside a self-executing anonymous function, and it seems to work for the time being (see above). There are certainly better ways though.
Maybe even some revised libraries for this, but I couldn't find the original code with a quick search for "cssparser js mozilla".
The text was updated successfully, but these errors were encountered:
You have a few variables in your files that pollute the global namespace:
currentproperties, idx, key, mozFilter, msFilter, oFilter
andwebkitFilter
all show up in the global DOM list.Also, the cssParser.js file you're using uses A LOT of global variables for its internal logic, which seems kind of superflous. I haven't done any extensive testing (besides Firefox and Chrome), but I've simply put everything except the
CSSScanner
andCSSParser
functions inside a self-executing anonymous function, and it seems to work for the time being (see above). There are certainly better ways though.Maybe even some revised libraries for this, but I couldn't find the original code with a quick search for "cssparser js mozilla".
The text was updated successfully, but these errors were encountered: