Every now and again I check if my main page is valid XHTML because sometimes it breaks because of unclosed tags in the news module of my cmps. Tonight I noticed that it was broken due to some changes that seem to have happened at
The W3C Markup Validation Service and because of that every single template that displays data and consequently builds the header for that page has to be changed. I already changed it for my 2 main index pages but the rest has to be done too, so I think this might need to be done in a future update of your templates.
Old header code:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
New header code:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="http://www.w3.org/1999/xhtml">
Perhaps there's a variable for the xmlns declaration but I'm to lazy to check right now. At least this code makes my pages valid again which is a must with
SEO.