Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

DOCTYPE in templates of 2.1b1?

default.master.tpl in 2.1b1 just starts with

<!DOCTYPE html>

whereas the mobile template and 2.0.x templates start with something like

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">

Is there a reason for this?

Tagged:

Comments

  • Options
    TamaTama United Kingdom ✭✭✭

    The first doctype is for html5, the other one is an older doctype - I assume the vanilla team are moving to fully integrating html5 in 2.1.

    There was an error rendering this rich post.

  • Options
    MasterOneMasterOne ✭✭
    edited May 2013

    @Tama said:
    The first doctype is for html5, the other one is an older doctype - I assume the vanilla team are moving to fully integrating html5 in 2.1.

    Should I replace the old doctype with the new one in the mobile template then?

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Doctypes are helpful mostly for meeting standards and making the browser render the markup correctly.

    It is up to you to decide if you want to change it.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

Sign In or Register to comment.