-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
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
Syntax error when trying to load with Modernizr #18
Comments
As suggested on HTML5 Please, add the file as a behavior in your CSS using the .no-box-sizing * {
behavior: url(/path/to/boxsizing.htc);
} |
Joe, thank you for your response. As I noted in the OT, we avoid in-declaration hacks (even elegant ones) in CSS. Instead, we use Modernizr. Am I misreading the following from http://html5please.com/#box-sizing ?
To me, that note clearly suggests that Modernizr may to load the polyfill. |
What they are saying is that you can add the polyfill with either IE classes on the |
Ah, I was indeed misreading it. Thank you for your help, Joe. I leave this topic smarter than when I entered. |
No worries! |
The star hack is simple, but we are using Modernizr to handle polyfills as a matter of policy. Fortunately, HTML5 Please suggests using Modernizr to load this polyfill as needed. Unfortunately, doing so throws a syntax error in JS on IE7.
The Modernizr intelligence is quite basic:
The syntax error thrown by the above suggests the problem could be with the XML, but removing the XML (and renaming the file as a .js) produces a different syntax error (related to the element object).
Is this a bug? Or can anyone point to a successful implementation of this polyfill using Modernizr?
TIA
The text was updated successfully, but these errors were encountered: