EPiServer 6 does not support HTML 5

Just recently I was working in a project as Epi developer for a big site in Sweden.

We decided to go for HTML 5 since it is the upcoming version of html, xhtml seemed a little too old to us.

However, EPiServer CMS 6 does not support HTML 5, you can not validate a site built with html 5, it is not possible.

And how is that?

It is because EPiServer has its own parser that goes through the output when rendering the page, and the parser is designed to follow the XHTML standards only.

And what happens with HTML5 then?

The parser moves the <noscript> tag and put it outside the "head" tag, and before the "body" tag. That is not legal in html 5, where you want it to reside in the "head".

And furthermore I have spoken to EPi support and they say it will not be fixed in any way until a totally new version of EPi comes, ie EPi 7 I guess.

I thought that they might have added some flag in the site settings in episerver.config that told the parser what markup standard to follow, but it was not something that they would spend hours on to fix.

Another sign of non-html5-compatibility in EPiServer 6 is that the DOCTYPE is messed up:

The correct:
<!DOCTYPE html>
becomes:
<!DOCTYPE HTML PUBLIC "" "">
so we had to make a httpmodule to replace the doctype text.



Conclusion
Well, sadly, you can never release a html 5 site that validates, using the EPiServer CMS product.

4 kommentarer:

  1. Doctypen är fixad i senare versioner av EPi6.
    Dock inte noscript.

    SvaraRadera
  2. Det senaste jag hört är att CMS 6 R2 kommer helt stödja HTML 5 (Q1 2011), enligt EPiServer.

    SvaraRadera