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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

[solved] self closing base and metatags


Go to End


2 Posts   2031 Views

Avatar
dio5

Community Member, 501 Posts

13 January 2009 at 8:32am

Edited: 17/01/2009 3:53am

Hi,

I'm serving my templates as HTML4 strict instead of XML (xhtml1.1) and noticed that since 2.3 the SS parser is self/autoclosing metatags and the base tag, something it didn't do before and this breaks w3c validation.

Anyone else noticed this?

I'm wondering if this is done on purpose or if it's a bug. If no bug, what's the way around?

Thanks

Avatar
dio5

Community Member, 501 Posts

17 January 2009 at 3:55am

The solution:

Turns out that since 2.3 the ContentNegotiator is DISABLED by default. See http://open.silverstripe.com/changeset/68484

Putting ContentNegotiator::enable(); in _config.php solves the problem.