File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 11Change Log
22----------
33
4+ 1.1.0
5+ ~~~~~
6+
7+ Features:
8+
9+ * Add support for the ``<wbr> `` element, `which indicates a line break
10+ opportunity <https://html.spec.whatwg.org/#the-wbr-element> `_. This element
11+ is allowed by default by the sanitizer. (#395) (Thank you, Tom Most!)
12+
4131.0.1
514~~~~~
615
Original file line number Diff line number Diff line change 572572 "col" ,
573573 "input" ,
574574 "source" ,
575- "track"
575+ "track" ,
576+ "wbr" ,
576577])
577578
578579cdataElements = frozenset (['title' , 'textarea' ])
Original file line number Diff line number Diff line change 111111 (namespaces ['html' ], 'ul' ),
112112 (namespaces ['html' ], 'var' ),
113113 (namespaces ['html' ], 'video' ),
114+ (namespaces ['html' ], 'wbr' ),
114115 (namespaces ['mathml' ], 'maction' ),
115116 (namespaces ['mathml' ], 'math' ),
116117 (namespaces ['mathml' ], 'merror' ),
Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ def test_data_uri_disallowed_type():
5959 assert expected == sanitized
6060
6161
62+ def test_wbr_allowed ():
63+ sanitized = sanitize_html ('<wbr>' )
64+ expected = '<wbr/>'
65+ assert expected == sanitized
66+
67+
6268def test_sanitizer ():
6369 for ns , tag_name in sanitizer .allowed_elements :
6470 if ns != constants .namespaces ["html" ]:
You can’t perform that action at this time.
0 commit comments