From cdf6b91b39b79346b29b87c02ccbcde3ba6ebdef Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 23 Jun 2012 13:32:08 +0200 Subject: [PATCH] Don't use attribute as parent url. --- doc/changelog.txt | 1 + linkcheck/htmlutil/linkparse.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 8452b0c3..4b38c8d5 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -10,6 +10,7 @@ Changes: Fixes: - gui: Fix saving of the debugmemory option. +- checking: Do not use attribute as parent URL. 7.9 "The Dark Knight" (released 10.6.2012) diff --git a/linkcheck/htmlutil/linkparse.py b/linkcheck/htmlutil/linkparse.py index f76f0e21..b956db17 100644 --- a/linkcheck/htmlutil/linkparse.py +++ b/linkcheck/htmlutil/linkparse.py @@ -198,7 +198,7 @@ class LinkFinder (TagFinder): name = self.get_link_name(tag, attrs, attr) # possible codebase base = u'' - if tag in ('applet', 'object'): + if tag == 'applet': base = unquote(attrs.get_true('codebase', u'')) if not base: base = self.base_ref