mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-26 16:23:57 +00:00
BaseSgmlLinkExtractor: Fixed unknown_endtag() so that it only set current_link=None when the end tag match the opening tag
This commit is contained in:
parent
72543c9ef0
commit
62f7171942
@ -74,7 +74,8 @@ class BaseSgmlLinkExtractor(FixedSGMLParser):
|
||||
self.current_link = link
|
||||
|
||||
def unknown_endtag(self, tag):
|
||||
self.current_link = None
|
||||
if self.scan_tag(tag):
|
||||
self.current_link = None
|
||||
|
||||
def handle_data(self, data):
|
||||
if self.current_link:
|
||||
|
Loading…
x
Reference in New Issue
Block a user