开发者

How can I make IE recognize HTML 5 tags?

What are some good solutions for making my HTML 5 pages compatible with IE (at least IE 7 开发者_运维问答& 8)?

Is there an industry standard that I can use that will make IE recognize things like <article> and <nav>?


Yeah, you can run the html5shiv if you want, which is what you seem to be referring to. It'll allow IE to parse the tags initially. But that will still leave you with the same problems if you want to use innerHTML (or framework code based on it). There's the innershiv, but it's not wonderfully efficient and it won't work for all top-level elements.

What do you want to achieve by using the semantic-but-behaviour-free elements like <article>? You will be taking on extra browser problems for little practical benefit. To be honest, I really wouldn't bother, today. It's something for the future.


It's very simple: Just use document.createElement('whatever')

http://remysharp.com/2009/01/07/html5-enabling-script/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜