xhtml not valid after inserting php call

Nighthero

New Member
I insert into Magento template:\[code\]xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">\[/code\]Which is taken directly from the modern default theme that comes with magento version 1.7. However upon trying to validate the page with W3C i get this error:\[quote\] Line 325, Column 10: end tag for "html" omitted, but OMITTAG NO was specified. You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".\[/quote\]\[code\] Line 2, Column 1: start tag was here <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\[/code\]Any idea how to fix this? I haven't modified header.phtml and don't have a custom one in my theme folder...
 
Back
Top