Skip to content

Commit c44fbd7

Browse files
committed
fixup! Don't omit optional tags by the default in the serializer.
1 parent 5f27d93 commit c44fbd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/tests/test_serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _convertAttrib(self, attribs):
8888
def serialize_html(input, options):
8989
options = dict([(str(k), v) for k, v in options.items()])
9090
stream = JsonWalker(input)
91-
serializer = HTMLSerializer(alphabetical_attributes=True, **options)
91+
serializer = HTMLSerializer(alphabetical_attributes=True, omit_optional_tags=True, **options)
9292
return serializer.render(stream, options.get("encoding", None))
9393

9494

0 commit comments

Comments
 (0)