Skip to content

Commit 28bf43b

Browse files
committed
fixup! squash! Fix #72: rewrite the sanitizer to be a treewalker filter only.
1 parent 32a7936 commit 28bf43b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

html5lib/tests/test_sanitizer.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def runSanitizerTest(name, expected, input):
1111
use_trailing_solidus=True,
1212
space_before_trailing_solidus=False,
1313
quote_attr_values=True,
14-
quote_char='"')
14+
quote_char='"',
15+
alphabeticalize_attributes=True)
1516
assert expected == sanitize_html(input)
1617

1718

@@ -23,7 +24,8 @@ def sanitize_html(stream):
2324
use_trailing_solidus=True,
2425
space_before_trailing_solidus=False,
2526
quote_attr_values=True,
26-
quote_char='"')
27+
quote_char='"',
28+
alphabeticalize_attributes=True)
2729
return serialized
2830

2931

0 commit comments

Comments
 (0)