HTML 5 Doctype causing quirksmode?

Moshe picture Moshe · Dec 11, 2009 · Viewed 8.1k times · Source

Does using an HTML 5 Doctype cause Quirks mode in modern browsers, since HTML5 isn't out yet?

(That is Modern Browsers were out before HMTL5 started spreading, so they don't properly support it.)

If yes, does this mean that the HTML 5 Doctype is tentatively like none at all?

EDIT: If not, what does it do in browsers that don't support and the like?

Answer

Jonny Haynes picture Jonny Haynes · Dec 11, 2009

No it doesn't, see this article.

What's nice about this new DOCTYPE, especially, is that all current browsers (IE, FF, Opera, Safari) will look at it and switch the content into standards mode - even though they don't implement HTML5. This means that you could start writing your web pages using HTML5 today and have them last for a very, very, long time.