Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_all_links fails if any one anchor tag is not closed properly #212

Open
spazm opened this issue May 8, 2017 · 0 comments
Open

find_all_links fails if any one anchor tag is not closed properly #212

spazm opened this issue May 8, 2017 · 0 comments

Comments

@spazm
Copy link
Contributor

spazm commented May 8, 2017

kmr.p...@gmail.com reported on Apr 9, 2012

What steps will reproduce the problem?
1. create an html page with more than one (say 15) anchor tags (corresponding closing tag also)
2. Now remove a closing anchor tag for the 11th anchor tag
3. Run mechanize and dump find_all_links contents. YOu will get only 10 entries.

What is the expected output? What do you see instead?
Expected all 15 links in the dump

What version of the product are you using? On what operating system?
VERSION = '1.70'

Please provide any additional information below.

Details

Imported from Google Code issue 235 via archive

  • Type: Defect
  • Date: Apr 9, 2012
  • Reporter: kmr.p...@gmail.com
  • Owner: ----
  • Priority: Medium
  • Status: New

Comments

kmr.p...@gmail.com commented on Apr 9, 2012 :

My preliminary analysis says that the problem lies in Modules's subroutine with name 
sub _extract_links which calls another subroutine with name _link_from_token

In the sub _link_from_token  , closing tag is being searched (and which is not found for the current open tag) at line number 2613 (in my version).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant