Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo


Go to End

3 Posts   2001 Views


Community Member, 105 Posts

21 February 2008 at 4:01pm

One day I will make sense of the whole world :)

Why is it that when I open up a Silverstripe page in my browser, my selected doctype appears in the source when viewed, however, the W3C validator is picking up a different doctype? Where is this other doctype coming from?

Design City

38 Posts

21 February 2008 at 9:24pm

Hmmm... I'm going to hazzard a guess at this one -it's a bit of a leap, stop me if i'm way off ;)

Silverstripe has a Content Negotiator, which, among other things, detects what content you're sending the browser and changes the doctype of the page accordingly. Maybe thats whats got into your pages?

Easy fix and test: add ContentNegotiator::disable(); to your _config.php file to disable the content negotiator and ?flush=1 the site and check if it works now...

Hope it helps!


Forum Moderator, 5523 Posts

21 February 2008 at 10:15pm

See - Under DOCTYPES. That might be of a help to you