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 38ae9fb commit 4a788c3Copy full SHA for 4a788c3
html5lib/sanitizer.py
@@ -214,8 +214,7 @@ def sanitize_token(self, token):
214
def allowed_token(self, token, token_type):
215
if "data" in token:
216
attrs = dict((name, val) for name, val in
217
- token["data"][::-1]
218
- if name in self.allowed_attributes)
+ token["data"][::-1] if name in self.allowed_attributes)
219
for attr in self.attr_val_is_uri:
220
if attr not in attrs:
221
continue
0 commit comments