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   1821 Views

Avatar
a-tech

Community Member, 39 Posts

2 May 2007 at 5:56pm

Edited: 02/05/2007 5:56pm

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

Community Member, 39 Posts

2 May 2007 at 5:58pm

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

Avatar
Sean

Forum Moderator, 922 Posts

10 May 2007 at 8:20pm

Edited: 10/05/2007 8:20pm

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

Core Development Team, 84 Posts

3 June 2007 at 4:36pm

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.