-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
IE conditional comments within body causes error #531
Comments
@matb33, the reason that we don't want to let apps specify their own If you're content using a wrapper div as you suggested (rather than putting the class on the |
@gschmidt I don't think a The meteoric way to do this properly (currently) is to put IE specific CSS in The nice thing about the conditional comment system around the
May I then suggest, as a future item in the roadmap, a smart package that would add the IE conditional comments around the |
I thought of a simpler solution to this issue. Simply put a series of inline script tags in the head with conditional IE comments around each, who are setting global variables containing information about the IE version detected. Then write a Handlebar helper that returns the appropriate class (lt-ie8 etc) based on this global variable, and use this helper in a div class that wraps your entire app (probably a direct child of body). |
that pretty much makes the same, just put it in the head. |
As there is currently no way to do the IE conditional comment technique around the
<html>
tag popularized by Paul Irish and HTML5 Boilerplate, I tried doing it within the<body>
tag. This worked fine in all browsers except IE9 and above. For IE9+ I receive the error:"SCRIPT14: Not enough storage is available to complete this operation."
Example to reproduce:
It is the last conditional comment that causes the issue (the
if gt IE8
).Personally I don't think this is something that should be fixed at this level. That comment looks malformed to me (on purpose though). I think instead it would be nice to allow us to specify our own
app.html.in
template. We could then do these sorts of conditional comments at the<html>
tag. I imagine it would also put it outside of Spark's reach and we wouldn't encounter this particular problem (maybe!).The text was updated successfully, but these errors were encountered: