Skip to content

Commit e229566

Browse files
author
James Graham
committed
Add mathml and svg elements to scoping elements
1 parent d67a214 commit e229566

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

html5lib/constants.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,15 @@
308308
(namespaces["html"], "table"),
309309
(namespaces["html"], "td"),
310310
(namespaces["html"], "th"),
311-
(namespaces["svg"], "foreignObject")
311+
(namespaces["mathml"], "mi"),
312+
(namespaces["mathml"], "mo"),
313+
(namespaces["mathml"], "mn"),
314+
(namespaces["mathml"], "ms"),
315+
(namespaces["mathml"], "mtext"),
316+
(namespaces["mathml"], "annotation-xml"),
317+
(namespaces["svg"], "foreignObject"),
318+
(namespaces["svg"], "desc"),
319+
(namespaces["svg"], "title"),
312320
))
313321

314322
formattingElements = frozenset((

0 commit comments

Comments
 (0)