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.
DOCTYPE in templates of 2.1b1?
MasterOne
✭✭
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?
0
Comments
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.
Should I replace the old doctype with the new one in the mobile template then?
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.