File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,23 @@ Change Log
4
4
1.2
5
5
~~~
6
6
7
+ Unreleased yet
8
+
9
+ Features:
10
+
11
+ * Add support for the ``<wbr> `` element in the sanitizer, `which indicates
12
+ a line break opportunity <https://html.spec.whatwg.org/#the-wbr-element> `_.
13
+ This element is allowed by default. (#395) (Thank you, Tom Most!)
14
+
7
15
Bug fixes:
8
16
9
17
* The sanitizer now permits ``<summary> `` tags.
10
18
11
19
1.1
12
20
~~~
13
21
22
+ Released on June 23, 2020
23
+
14
24
Breaking changes:
15
25
16
26
* Drop support for Python 3.3. (#358)
Original file line number Diff line number Diff line change 571
571
"col" ,
572
572
"input" ,
573
573
"source" ,
574
- "track"
574
+ "track" ,
575
+ "wbr" ,
575
576
])
576
577
577
578
cdataElements = frozenset (['title' , 'textarea' ])
Original file line number Diff line number Diff line change 129
129
(namespaces ['html' ], 'ul' ),
130
130
(namespaces ['html' ], 'var' ),
131
131
(namespaces ['html' ], 'video' ),
132
+ (namespaces ['html' ], 'wbr' ),
132
133
(namespaces ['mathml' ], 'maction' ),
133
134
(namespaces ['mathml' ], 'math' ),
134
135
(namespaces ['mathml' ], 'merror' ),
Original file line number Diff line number Diff line change @@ -55,6 +55,12 @@ def test_data_uri_disallowed_type():
55
55
assert expected == sanitized
56
56
57
57
58
+ def test_wbr_allowed ():
59
+ sanitized = sanitize_html ('<wbr>' )
60
+ expected = '<wbr/>'
61
+ assert expected == sanitized
62
+
63
+
58
64
def param_sanitizer ():
59
65
for ns , tag_name in sanitizer .allowed_elements :
60
66
if ns != constants .namespaces ["html" ]:
You can’t perform that action at this time.
0 commit comments