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:
calvin 2008-06-16 09:39:49 +00:00
parent ff41aa8d9f
commit a6deeeb8a5
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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()