Skip to content

Commit 601fe17

Browse files
committed
Don't omit optional tags by the default in the serializer.
It is only safe to omit optional tags when we know the document is conforming, and the content model restrictions are obeyed.
1 parent a4076d7 commit 601fe17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/serializer/htmlserializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class HTMLSerializer(object):
8282
use_best_quote_char = True
8383

8484
# tag syntax options
85-
omit_optional_tags = True
85+
omit_optional_tags = False
8686
minimize_boolean_attributes = True
8787
use_trailing_solidus = False
8888
space_before_trailing_solidus = True

0 commit comments

Comments
 (0)