• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

How does XenForo handle older browsers and new HTML5 elements?

DeltaHF

Well-known member
#1
I just viewed XenForo in IE8, and I see the HTML5 elements used throughout the default template render correctly without a problem.

Older web browsers which don't support HTML5's new elements are typically dealt with using avascript hacks like HTML5 Shiv. I can't find this being used in XF, nor do I see any other conditional comments. Kier has also stated that XF is designed to work with Javascript disabled, so I'm a bit perplexed as to how exactly the guys are pulling this off. What am I missing?
 

Jeremy P

Well-known member
#2
The new elements are wrapped in (or contain divs), which are what is styled in the CSS. I'm pretty sure older browsers just ignore the new tags, so having them in there anyways doesn't cause problems.
 

Jeremy P

Well-known member
#4
It's the only way to have the new tags degrade gracefully without javascript in older browsers. A bit redundant I guess, but it doesn't hurt anything.