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.

Template Questions /

[solved] self closing base and metatags


Reply


2 Posts   1209 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.