cmcculloh
cmcculloh

Reputation: 48623

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>?

Upvotes: 1

Views: 1710

Answers (2)

bobince
bobince

Reputation: 536785

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.

Upvotes: 3

user123444555621
user123444555621

Reputation: 153284

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

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

Upvotes: 1

Related Questions