Skip to content

Commit 967b522

Browse files
committed
Mark <wbr> as self-closing
1 parent bbfa7a8 commit 967b522

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

html5lib/constants.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@
572572
"col",
573573
"input",
574574
"source",
575-
"track"
575+
"track",
576+
"wbr",
576577
])
577578

578579
cdataElements = frozenset(['title', 'textarea'])

html5lib/tests/test_sanitizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_data_uri_disallowed_type():
6161

6262
def test_wbr_allowed():
6363
sanitized = sanitize_html('<wbr>')
64-
expected = '<wbr>'
64+
expected = '<wbr/>'
6565
assert expected == sanitized
6666

6767

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy