8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23926b1 commit b242d88Copy full SHA for b242d88
src/html5lib/sanitizer.py
@@ -177,7 +177,7 @@ def sanitize_token(self, token):
177
token["data"] = "<%s%s>" % (token["name"],attrs)
178
else:
179
token["data"] = "<%s>" % token["name"]
180
- if token["type"] == tokenTypes["EmptyTag"]:
+ if token["selfClosing"]:
181
token["data"]=token["data"][:-1] + "/>"
182
token["type"] = tokenTypes["Characters"]
183
del token["name"]
0 commit comments