This repository has been archived by the owner on Nov 23, 2018. It is now read-only.
Use conditional comment for IEMobile-specific meta tag that doesn't validate #109
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
index.html is not valid HTML5 because a value of
cleartype
is not permitted for thehttp-equiv
attribute in<meta http-equiv="cleartype">
. (Either that or http://www.w3.org/TR/html5/semantics.html#attr-meta-http-equiv is out of date, which I suppose is entirely possible since it's a work-in-progress and all that.)Assuming I'm not completely off base here and that producing valid HTML5 is important to the project, perhaps an acceptable solution is to enclose that invalid markup in a conditional comment like I've done here.
The comments around the invalid markup already indicate that it's for Mobile IE.
I believe the conditional comments are only supported on Windows Phone 7 and later, so I guess earlier phones will have to deal without the smoother typefaces. (I'm OK with that personally, but Windows Phones before Windows Phone 7 constitutes a vanishingly small portion of traffic to my sites.)