Only check HTML/CSS syntax of intern URLs

The HTML and CSS syntax check now only applies to URLs
which match those given on the command line.
This makes checking of personal pages easier.


git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3743 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2008-04-29 17:48:47 +00:00
parent ac4d09f83d
commit df9f31dcb1
2 changed files with 10 additions and 4 deletions

View file

@ -7,7 +7,13 @@
* Send HTTP Referer header for both http and https URLs.
Type: feature
Changed: linkcheck/checker/httpurl.py
* The HTML and CSS syntax check now only applies to URLs
which match those given on the command line.
This makes checking of personal pages easier.
Type: feature
Changed: linkcheck/checker/urlbase.py
4.9 "Michael Clayton" (released 25.4.2008)
* Parse Shockwave Flash (SWF) for URLs to check

View file

@ -423,10 +423,10 @@ class UrlBase (object):
value = self.handle_exception()
self.set_result(unicode_safe(value), valid=False)
# check HTML/CSS syntax
if self.valid:
if self.is_html() and self.aggregate.config["checkhtml"]:
if self.valid and not self.extern[0]:
if self.aggregate.config["checkhtml"] and self.is_html():
self.check_html()
if self.is_css() and self.aggregate.config["checkcss"]:
if self.aggregate.config["checkcss"] and self.is_css():
self.check_css()
self.checktime = time.time() - check_start
# check recursion