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, biapar, Willr, Ingo, simon_w

<hr /> turning into <hr >


Reply

4 Posts   1807 Views

Avatar
a-tech

2 May 2007 at 5:56pm (Last edited: 2 May 2007 5:56pm), Community Member, 39 Posts

Hey guys, hope you can help here.

When i put an <hr /> into my SS templates, the HR wont show in the browser and looking at code shows it as <hr >.

Is this something I have done?

Avatar
a-tech

2 May 2007 at 5:58pm Community Member, 39 Posts

Same thing happens when I put an <hr> into my content via admin.

Avatar
Sean

10 May 2007 at 8:20pm (Last edited: 10 May 2007 8:20pm), Forum Moderator, 921 Posts

Is this the output of placing the <hr> directly in the template itself, using $Content in your template, or using modifiers like $Content.Summary, or $Content.FirstParagraph?

I don't recall ever having a problem generating <hr> tags...

Cheers,
Sean

Avatar
Matt

3 June 2007 at 4:36pm Core Development Team, 84 Posts

It's probably the content negotiation - XHTML will not be sent as XHTML unless you specify the <?xml header as well as a correct XHTML doctype.

Something about IE being annoying when you send it XML when it's not expecting it.