From bdb62897a1fb6fe15eefac4c48a5d98df33aa309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Mon, 10 Apr 2017 11:10:39 +0200 Subject: [PATCH] Add missing MathML tags for annotations. #183 --- html5lib/filters/sanitizer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html5lib/filters/sanitizer.py b/html5lib/filters/sanitizer.py index dc801668..fd35c85c 100644 --- a/html5lib/filters/sanitizer.py +++ b/html5lib/filters/sanitizer.py @@ -111,6 +111,8 @@ (namespaces['html'], 'ul'), (namespaces['html'], 'var'), (namespaces['html'], 'video'), + (namespaces['mathml'], 'annotation'), + (namespaces['mathml'], 'annotation-xml'), (namespaces['mathml'], 'maction'), (namespaces['mathml'], 'math'), (namespaces['mathml'], 'merror'), @@ -138,6 +140,7 @@ (namespaces['mathml'], 'munder'), (namespaces['mathml'], 'munderover'), (namespaces['mathml'], 'none'), + (namespaces['mathml'], 'semantics'), (namespaces['svg'], 'a'), (namespaces['svg'], 'animate'), (namespaces['svg'], 'animateColor'),