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
441.2
55~~~
66
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+
715Bug fixes:
816
917* The sanitizer now permits ``<summary> `` tags.
1018
11191.1
1220~~~
1321
22+ Released on June 23, 2020
23+
1424Breaking changes:
1525
1626* Drop support for Python 3.3. (#358)
Original file line number Diff line number Diff line change 571571 "col" ,
572572 "input" ,
573573 "source" ,
574- "track"
574+ "track" ,
575+ "wbr" ,
575576])
576577
577578cdataElements = frozenset (['title' , 'textarea' ])
Original file line number Diff line number Diff line change 129129 (namespaces ['html' ], 'ul' ),
130130 (namespaces ['html' ], 'var' ),
131131 (namespaces ['html' ], 'video' ),
132+ (namespaces ['html' ], 'wbr' ),
132133 (namespaces ['mathml' ], 'maction' ),
133134 (namespaces ['mathml' ], 'math' ),
134135 (namespaces ['mathml' ], 'merror' ),
Original file line number Diff line number Diff line change @@ -55,6 +55,12 @@ def test_data_uri_disallowed_type():
5555 assert expected == sanitized
5656
5757
58+ def test_wbr_allowed ():
59+ sanitized = sanitize_html ('<wbr>' )
60+ expected = '<wbr/>'
61+ assert expected == sanitized
62+
63+
5864def param_sanitizer ():
5965 for ns , tag_name in sanitizer .allowed_elements :
6066 if ns != constants .namespaces ["html" ]:
You can’t perform that action at this time.
0 commit comments