Only check anchors in HTML pages.

This commit is contained in:
Bastian Kleineidam 2011-05-22 17:33:16 +02:00
parent e5c2271533
commit 72b65d94df

View file

@ -629,7 +629,7 @@ class UrlBase (object):
A warning is logged and True is returned if the anchor is not found.
"""
if not (self.anchor and self.aggregate.config["anchors"] and
self.valid and self.is_parseable()):
self.valid and self.is_html()):
return
log.debug(LOG_CHECK, "checking anchor %r in %s", self.anchor, self.anchors)
if any(x for x in self.anchors if x[0] == self.anchor):