From 05f429b197800f96ad4ffc766668096bfdb0e333 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 14 Apr 2019 20:36:33 +0200 Subject: [PATCH] Add support for xhtml files --- libmat2/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmat2/web.py b/libmat2/web.py index 0a61908..b05ca3b 100644 --- a/libmat2/web.py +++ b/libmat2/web.py @@ -58,7 +58,7 @@ class AbstractHTMLParser(abstract.AbstractParser): class HTMLParser(AbstractHTMLParser): - mimetypes = {'text/html', } + mimetypes = {'text/html', 'application/xhtml+xml'} tags_blocklist = {'meta', } tags_required_blocklist = {'title', }