ID:1055491
 
Keywords: bleeding, href, html, img
BYOND Version:498
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Chrome 23.0.1271.64
Applies to:Dream Seeker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
When you href a icon(32x32), then display it through the img tag(), you gain a outputted 16x16 scaled icon, which is intended, but the href still holds the 32x32 size in the output, bleeding into the next image(when using multiple images next to each other).
Numbered Steps to Reproduce Problem:
1)Output multiple hrefs attached to a img type outputs.
2)Mouse over the first half of the second outputted image and click to an unexpected bleed from the first href.
Code Snippet (if applicable) to Reproduce Problem:
mob/verb/hrefBleed(T as text)
src<<"<a href=?src=\ref[src];action=Message1;txt=T><IMG CLASS=\"icon\" SRC=\"\ref[src.icon]\"\></a><a href=?src=\ref[src];action=Message2;txt=T><IMG CLASS=\"icon\" SRC=\"\ref[src.icon]\"\></a><a href=?src=\ref[src];action=Message3;txt=T><IMG CLASS=\"icon\" SRC=\"\ref[src.icon]\"\></a>"
mob/Topic(href,href_list[])
var/t=href_list["txt"]
switch(href_list["action"])
if("Message1")
world<<"[src]: [t]]"
if("Message2")
world<<"[src] says [t]"
if("Message3")
world<<"[t]] - [src]"


Expected Results:
An similar result as to Click().
Actual Results:
hrefs bleeding into other images

Does the problem occur:
Every time? Or how often? Every time.
In other games? Not game-specific.
In other user accounts? Tested by others.
On other computers? See above.

When does the problem NOT occur?
When you place whitespace between the images, I imagine you could also include just text, though that wouldn't look well at all.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Never tested in previous version, I swore there was a topic about this a year or two ago, but I couldn't find anything in the handful of searches I did.

Workarounds:
Place whitespace between images/hrefs.
I also have noticed the bleeding of the link with text and not just images.
If you do:
<img src=""/>
does it still bleed, with a slash before ending the greater than sign?
In response to Super Saiyan X
Sorry, I accidently removed that in my post, I had the icon state defined aswell, I'll edit the post.
This error is not limited to img src therefor it has to be something else bleeding the link out.
Bump. If someone else could confirm this or if someone could shut me down in this in pointing out something that makes me wrong in this.

I assume it's because the image scales from 32x32 down to 16x16 in outputs, so the href doesn't. As stated, a simple space between the two href'd images fixes the issue, using the whitespace as the rest of the href.