8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 950ea0e commit bbfa7a8Copy full SHA for bbfa7a8
html5lib/filters/sanitizer.py
@@ -111,6 +111,7 @@
111
(namespaces['html'], 'ul'),
112
(namespaces['html'], 'var'),
113
(namespaces['html'], 'video'),
114
+ (namespaces['html'], 'wbr'),
115
(namespaces['mathml'], 'maction'),
116
(namespaces['mathml'], 'math'),
117
(namespaces['mathml'], 'merror'),
html5lib/tests/test_sanitizer.py
@@ -59,6 +59,12 @@ def test_data_uri_disallowed_type():
59
assert expected == sanitized
60
61
62
+def test_wbr_allowed():
63
+ sanitized = sanitize_html('<wbr>')
64
+ expected = '<wbr>'
65
+ assert expected == sanitized
66
+
67
68
def test_sanitizer():
69
for ns, tag_name in sanitizer.allowed_elements:
70
if ns != constants.namespaces["html"]:
0 commit comments