mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-22 08:50:24 +00:00
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:
parent
ac4d09f83d
commit
df9f31dcb1
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue