Jump to:

3393 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » [solved] self closing base and metatags

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

Page: 1
Go to End
Author Topic: 1108 Views
  • dio5
    Avatar
    Community Member
    501 Posts

    [solved] self closing base and metatags Link to this post

    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

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: [solved] self closing base and metatags Link to this post

    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.

    1108 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.