Skip Menu |

This queue is for tickets about the HTML-SimpleLinkExtor CPAN distribution.

Report information
The Basics
Id: 16942
Status: resolved
Worked: 15 min
Priority: 0/
Queue: HTML-SimpleLinkExtor

People
Owner: bdfoy [...] cpan.org
Requestors: fmccown [...] cs.odu.edu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.11
Fixed in: (no value)



Subject: Bug in img using usemap
HTML-SimpleLinkExtor 1.11 using Perl v5.8.0 built for sun4-solaris-64int If the usemap attribute is used with an img tag that does not reference an absolute url, only the relative url will be returned by SimpleLinkExtor. To repeat this behavior, add the following to example.html (from the distribution): <img src="gecko.gif" usemap="#kelp.map"> When accessing all the images URLs (using $extor->img), all URLs except gecko.gif will be absolute. This URL should be returned as "http://www.example.com/relative/gecko.gif".
The bug is actually worse than you report. I always expected the URL to be the last of a tuple I got from HTML::LinkExtor. However, some things, like IMG has multiple attributes that have URL values. My code was only resolving the last URL it found. HTML-SimpleLinkExtor-1.12 fixes this so all URLs are resolved. It's on its way to CPAN.