So yeah.. firefox 3 isn't compatible with html5 tags. How would one get around this without recoding everything? You know, like IE's conditional statement or some such.
views:
29answers:
2
A:
You'd have to do some basic browser detection. There's two ways of going about it: testing if a particular feature is available, or doing some analysis of the browser's ID string.
Check out http://www.html5test.com/ and analyze their JS/html code for ideas.
Marc B
2010-08-31 01:06:20
how do I go about running that test? (for features)
Chris Bolton
2010-08-31 02:36:35
`el = document.createElement('somehtml5specifictag');`. If el's null, then that tag isn't supported and you can do something else in your scripts/css.
Marc B
2010-08-31 03:49:07
+1
A:
The only thing you need do is add 'display:block' to their CSS. Otherwise, FF works just fine with HTML5.
Rob
2010-08-31 01:09:51