HTML5 and legacy browsers

About the template and stylesheet - and changing the menu
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

HTML5 and legacy browsers

Post by cmb » Fri Aug 03, 2012 7:03 pm

Hello Community,

if you're using a HTML5 doctype for whatever reason, you might consider using html5shiv to support legacy browsers (e.g. IE < 9).

Christoph
Christoph M. Becker – Plugins for CMSimple_XH

Gert
Posts: 3078
Joined: Fri May 30, 2008 4:53 pm
Location: Berlin
Contact:

Re: HTML5 and legacy browsers

Post by Gert » Fri Aug 03, 2012 7:33 pm

cmb wrote:if you're using a HTML5 doctype for whatever reason ...
That's not right. It makes only sense, if someone is using html5 ELEMENTS. Using doctype <!DOCTYPE html> and the good old html4 elements causes no problems in any browser,

Gert
Gert Ebersbach | CMSimple | Templates - Plugins - Services

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: HTML5 and legacy browsers

Post by cmb » Fri Aug 03, 2012 7:54 pm

Gert wrote:Using doctype <!DOCTYPE html> and the good old html4 elements causes no problems in any browser,
Yes, I'm aware of that. But you'll never know, if there are HTML5 elements on a page, as the validator won't tell this with <!DOCTYPE html> (inspecting the pages manually might not be the best alternative). So everybody might consider to use html5shiv.

To avoid misunderstandings:
  • what I wanted say was:
    Wenn Ihr, warum auch immer, den HTML5 Doctype verwendet, dann solltet Ihr in Erwägung ziehen, html5shiv zu verwenden.
  • I've changed my mind about using <!DOCTYPE html>. IMO it's totally fine to do so, even if HTML5 is not yet an official W3C recommendation.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply