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)