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
I found this in the 'fontface' test:
// removing it crashes IE browsers //head.removeChild(style);
IE dies when the return statement runs the supportAtRule function:
var supportAtRule = impl.hasFeature('CSS2', '') ? function(rule) { ... } : function(rule) { if (!(sheet && rule)) return false; sheet.cssText = rule; //<-- IE DIES HERE IF STYLE REMOVED return sheet.cssText.length !== 0 && !(/unknown/i).test(sheet.cssText) && sheet.cssText .replace(/\r+|\n+/g, '') .indexOf(rule.split(' ')[0]) === 0; };
Seems to work okay when I do this:
var result = supportAtRule('@font-face { font-family: "font"; src: "font.ttf"; }'); head.removeChild(style); return result;
The text was updated successfully, but these errors were encountered:
remove extra style element from head. closed by 09fe568
Sorry, something went wrong.
remove extra style element from head. fixes Modernizr#141
09fe568
97954de
No branches or pull requests
I found this in the 'fontface' test:
IE dies when the return statement runs the supportAtRule function:
Seems to work okay when I do this:
The text was updated successfully, but these errors were encountered: