Skip Menu |

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

Report information
The Basics
Id: 87288
Status: resolved
Priority: 0/
Queue: HTML-SimpleLinkExtor

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

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



Subject: Form Action attribute is returned by links()
When getting the links from a html-string/file, the action attribute from the form tag gets listet, even if the form tag nor the action attribute belongs to the list of attributes/tags that should get listed by the HTML::SimpleLinkExtor->links() method.

Here is some sample code:


use HTML::SimpleLinkExtor;
 
my $html = '<html><body><form name="test" action="/test"><input type="submit" /></form></body></html>';
 
my $extor = HTML::SimpleLinkExtor->new();
 
$ex->parse($html);
print $ex->links;
Subject: Re: [rt.cpan.org #87288] Form Action attribute is returned by links()
Date: Fri, 9 Aug 2013 14:35:02 -0400
To: bug-HTML-SimpleLinkExtor [...] rt.cpan.org
From: brian d foy <bdfoy [...] cpan.org>
Show quoted text
> When getting the links from a html-string/file, the action attribute from the > form tag gets listet, even if the form tag nor the action attribute belongs to > the list of attributes/tags that should get listed by the > HTML::SimpleLinkExtor->links() method.
I think I fixed this in 1.25_01. Thanks, -- brian d foy <brian.d.foy@gmail.com> http://www.pair.com/~comdog/
From: paul [...] city-fan.org
On Fri Aug 09 14:35:56 2013, BDFOY wrote: Show quoted text
> > When getting the links from a html-string/file, the action attribute > > from the > > form tag gets listet, even if the form tag nor the action attribute > > belongs to > > the list of attributes/tags that should get listed by the > > HTML::SimpleLinkExtor->links() method.
> > I think I fixed this in 1.25_01.
The new test t/rt87288.t isn't included in test_manifest and hence doesn't get run by default.
Fixed in 1.27. Thanks,