17452 Posts in 4473 Topics by 1971 members
|Go to End|
21 August 2008 at 8:05pm
I have a problem here: i developed a new website, based on xhtml strict and css.
Everything went well on the testing phase, the problem that i have now is that i see that, somehow, the CMS overwrittes my DOCTYPE Declaration:
I wanted to use this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
All my documents validated correctly, the problem is that the CMS populates this header:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Is there a way of using a xhtml strict DOCTYPE declaration for my html files?
Any help would be appreciated!
Thank you very much,
21 August 2008 at 8:35pm
Addabove your DOCTYPE.
<?xml version="1.0" encoding="utf-8"?>
21 August 2008 at 10:04pm
Or turn ContentNegiotator off.. Have a read of our docs on doctypes on the html page - http://doc.silverstripe.com/doku.php?id=html#doctypes it will hopefully explain things
25 August 2008 at 3:45pm
thank you very much!
|Go to Top|