From 363ccc0121d6a606ac49a4fd81096b972147960e Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 23 Jun 2012 14:28:32 +0200 Subject: [PATCH] Check as normal URL. --- doc/changelog.txt | 3 ++- linkcheck/htmlutil/linkparse.py | 2 +- tests/checker/data/http.html | 2 +- tests/checker/data/http.html.result | 14 ++++++++++---- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 4b38c8d5..40f55dbf 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -10,7 +10,8 @@ Changes: Fixes: - gui: Fix saving of the debugmemory option. -- checking: Do not use attribute as parent URL. +- checking: Do not handle attribute as parent + URL but as normal URL to be checked. 7.9 "The Dark Knight" (released 10.6.2012) diff --git a/linkcheck/htmlutil/linkparse.py b/linkcheck/htmlutil/linkparse.py index b956db17..78197da8 100644 --- a/linkcheck/htmlutil/linkparse.py +++ b/linkcheck/htmlutil/linkparse.py @@ -53,7 +53,7 @@ LinkTags = { 'layer': [u'background', u'src'], 'link': [u'href'], 'meta': [u'content', u'href'], - 'object': [u'classid', u'data', u'archive', u'usemap'], + 'object': [u'classid', u'data', u'archive', u'usemap', u'codebase'], 'q': [u'cite'], 'script': [u'src'], 'source': [u'src'], # HTML5 diff --git a/tests/checker/data/http.html b/tests/checker/data/http.html index d5d70322..4beccce4 100644 --- a/tests/checker/data/http.html +++ b/tests/checker/data/http.html @@ -31,7 +31,7 @@ Just some HTTP links title="CSS urls"> - + no beginning quote diff --git a/tests/checker/data/http.html.result b/tests/checker/data/http.html.result index bcff7dc6..42178c3a 100644 --- a/tests/checker/data/http.html.result +++ b/tests/checker/data/http.html.result @@ -124,13 +124,19 @@ real url http://localhost:%(port)d/?quoted=%%C3%%BC name html entities valid -url clsid:12345 -cache key clsid:12345 -real url clsid:12345 -baseurl http://example.org/foo/%%20#a%%3D1%%2C2%%2C3 +url clsid:12345-67890 +cache key clsid:12345-67890 +real url clsid:12345-67890 warning Clsid URL ignored. valid +url http://example.org/foo/ #a=1,2,3 +cache key http://example.org/foo/%%20 +real url http://www.iana.org/domains/example/ +info Redirected to `http://www.iana.org/domains/example/'. +warning Anchor `a%%3D1%%2C2%%2C3' not found. Available anchors: `body', `body-container', `footer', `footer-beta-feedback', `footer-frame', `header', `header-frame', `header-logo', `header-nav', `iana-footer-first', `iana-footer-icann'. +valid + url http://www.example.com/ (cached) cache key http://www.example.com/ real url http://www.iana.org/domains/example/