HTML5 Markup in Templates

ryan.griffith's Avatar

ryan.griffith

10 Nov, 2010 08:21 PM

I noticed that when trying to use newer HTML5 markup for templates, things get switched around, changed, and moved. Is this a known problem with v6.4.6?

I've attached a comparison of the beginning of my template with the rendered page. The CSS is moved into the body and the doctype is removed.

  1. 1 Posted by ryan.griffith on 11 Nov, 2010 01:46 PM

    ryan.griffith's Avatar

    So I was playing around a bit and found if you put the doctype in all caps, DOCTYPE, the regions won't be moved around. That being said; however, the DOCTYPE is still removed from the beginning of the template, see screenshot.

  2. 2 Posted by Eric L. Epps on 11 Nov, 2010 02:41 PM

    Eric L. Epps's Avatar

    This is how I use the HTML5 doctype. Seems to work just fine. START-CODE should work as well.

    <!--#START-ROOT-CODE
    <!DOCTYPE html>
    #END-ROOT-CODE-->
  3. 3 Posted by ryan.griffith on 11 Nov, 2010 02:56 PM

    ryan.griffith's Avatar

    Ah, that makes sense. I was thinking the template required a doctype to be specified, but after submitting again I noticed it's not even needed as long as you specify the root html tag.

  4. Support Staff 4 Posted by Tim on 11 Nov, 2010 03:06 PM

    Tim's Avatar

    Eric,

    Thanks for posting that workaround. We are planning on providing native support for HTML5 in a future release.

  5. Tim closed this discussion on 11 Nov, 2010 03:06 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac