mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-14 11:21:02 +00:00
Support parsing of HTML pages served with content type application/xhtml+xml
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3817 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
ff41aa8d9f
commit
a6deeeb8a5
2 changed files with 6 additions and 1 deletions
|
|
@ -42,6 +42,11 @@
|
|||
Type: feature
|
||||
Closes: SF bug #1985509
|
||||
|
||||
* Support parsing of HTML pages served with application/xhtml+xml
|
||||
content type.
|
||||
Type: bugfix
|
||||
Closes: SF bug #1994104
|
||||
|
||||
4.9 "Michael Clayton" (released 25.4.2008)
|
||||
|
||||
* Parse Shockwave Flash (SWF) for URLs to check
|
||||
|
|
|
|||
|
|
@ -652,7 +652,7 @@ Use URL %(newurl)s instead for checking.""") % {
|
|||
Parse file contents for new links to check.
|
||||
"""
|
||||
ctype = headers.get_content_type(self.headers)
|
||||
if ctype == "text/html":
|
||||
if ctype in ("text/html", "application/xhtml+xml"):
|
||||
self.parse_html()
|
||||
elif ctype == "text/css":
|
||||
self.parse_css()
|
||||
|
|
|
|||
Loading…
Reference in a new issue