Issue related to Raptor template rendering <img />

18 views
Skip to first unread message

Kane Sun

unread,
Aug 15, 2013, 1:10:45 PM8/15/13
to rapt...@googlegroups.com

When Raptor template rendering <img src=”url” />, it seems it dropped the forward slash in the output.

Is it on purpose or it's bug?


Thanks,

Qian

Phil Gates-Idem

unread,
Aug 15, 2013, 2:12:56 PM8/15/13
to rapt...@googlegroups.com
Kane,
This is intentional. This article has a pretty good explanation:

From the article:
Some closing tags are optional, however. The tags are optional because it’s implied that a new tag would not be able to be started without closing it. These are the following:
html, head, body, p, dt, dd, li, option, thead, th, tbody, tr, td, tfoot, colgroup. There are also tags that are forbidden to be closed: img, input, br, hr, meta, etc.

I've been using Raptor templates across many versions of IE, Firefox, and Chrome and have not had an issue with self-closing tags.

Thanks,
Phil

Kane Sun

unread,
Aug 19, 2013, 4:19:35 PM8/19/13
to rapt...@googlegroups.com
Thank you Phil for the detail information.

Qian
Reply all
Reply to author
Forward
0 new messages