rodneyrehm/viewport-units-buggyfill

Script errors in IE

danieldunderfelt opened this issue · 3 comments

This script gives me site-breaking errors in IE. Although I use the normal init, not forced, the line

var value = rule.cssText;

in the method findDeclarations(rule) is the curprit. The error is Member not found. This breaks the rest of my javascript in IE10, IE11 seems to cope and carry on. But the errors are still there.

Is there anything you can do about this?

the following would hide the error, but effectively kill viewport-handling keyframe:

var value = '';
try {
  value = rule.cssText;
} catch (e) {}

which version are you running? 0.4.0?

The latest from NPM, 0.4.1.

Experience the same problem in IE10. But oddly enough, it does work in IE9. Both IE are tested in Win7.