[wontfix] " and '

Discussion corner for Developers of Serendipity.
Post Reply
winkiller
Regular
Posts: 77
Joined: Tue May 17, 2005 7:52 pm
Location: Munich, Germany
Contact:

[wontfix] " and '

Post by winkiller »

I just realized that if I click on "Media Library" I get something like

Code: Select all

<img width='77' height='110' style="float: left; border: 0px; padding-left: 5px; padding-right: 5px;" src="/uploads/imdb/vanhelsing.thumb.jpg" alt="" />
and when I use URL, I get

Code: Select all

<a href="http://s9y.org"  title="123">S9Y</a>
any reason why there are ' instead of " in the <img tag?

should that be "fixed"?

also before title there are 2 spaces, not to be pedantic - I just stumbled over that today ;)
Last edited by winkiller on Tue Nov 08, 2005 10:50 am, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: " and '

Post by garvinhicking »

It's an escaping issue. In the one branch of the code some javascript vs. PHP escaping takes place, it's just easier to use ' instead of many \" attributes.

According to HTML, this is perfectly alright.

The 2 spaces are not worth searching for, IMHO. They come because of certain if-constructs where either an attribute is appended, or an empty string...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply