Skip Menu |

This queue is for tickets about the Win32-IE-Mechanize CPAN distribution.

Report information
The Basics
Id: 14914
Status: new
Priority: 0/
Queue: Win32-IE-Mechanize

People
Owner: Nobody in particular
Requestors: slanning [...] cpan.org
Cc:
AdminCc:

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



Subject: test bug, find_links
Hello! Not sure if you know, but I'm porting your module as Mozilla::Mechanize. I'm finally getting around to porting the tests. :) I think I found a bug in one of them, t/find_links.t. In the AREA_CHECKS section, my @wanted_links = ( # url, text, name, tag [ "http://www.cnn.com/", "CNN", undef, "a" ], [ "http://www.cnn.com/", "News", "Fred", "a" ], [ "http://www.cnn.com/area", undef, undef, "area" ], ); corresponding to these links (url_regex => qr/cnn\.com/) in t/find_links.html: <A HREF="http://www.cnn.com/">CNN</A> <A HREF="http://www.cnn.com/" NAME="Fred">News</A> <AREA HREF="http://www.cnn.com/area" COORDS="5,6,7,8" NAME="Marty"> @wanted_links has undef for the name of the last link, but the name is actually "Marty". Not sure if in IE/Link.pm in the sub `name' whether $self->{name} is different for <area> elements, or what. Another thing I noticed is that in Mozilla the <frame> elements in find_links.html don't work. I think they have to be inside a <frameset> all by themselves. (It worked in frames.t.) I'm still aiming for your version 0.009, but after I get the tests ported, I'll try to catch up to 0.009_17. (Why didn't I do that in the first place??? :)