17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1597 Views |
-
Using xhtml strict with silverstripe, problem with doctype

21 August 2008 at 8:05pm
Hello people,
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">
<html xmlns="http://www.w3.org/1999/xhtml">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,
Eduardo
-
Re: Using xhtml strict with silverstripe, problem with doctype

21 August 2008 at 8:35pm
Add
above your DOCTYPE.<?xml version="1.0" encoding="utf-8"?>
-
Re: Using xhtml strict with silverstripe, problem with doctype

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
-
Re: Using xhtml strict with silverstripe, problem with doctype

25 August 2008 at 3:45pm
thank you very much!
| 1597 Views | ||
|
Page:
1
|
Go to Top |


