Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit967b522

Browse files
committed
Mark <wbr> as self-closing
1 parentbbfa7a8 commit967b522

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
deftest_wbr_allowed():
6363
sanitized=sanitize_html('<wbr>')
64-
expected='<wbr>'
64+
expected='<wbr/>'
6565
assertexpected==sanitized
6666

6767

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp