We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I serialize a HTML document including elements with ARIA related attributes, serialize method drops them off as a result of sanitization.
serialize
import html5lib doc = '<div id="foo">the description</div><span aria-describedby="foo">bar</span>' print(html5lib.serialize(html5lib.parseFragment(doc), sanitize=True, quote_attr_values='always')) # <div id="foo">the description</div><span>bar</span>
ARIA related attributes are not dangerous for my understanding, so serialize method should keep them even if the parameter sanitize is True.
sanitize
True
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I serialize a HTML document including elements with ARIA related attributes,
serialize
method drops them off as a result of sanitization.ARIA related attributes are not dangerous for my understanding, so
serialize
method should keep them even if the parametersanitize
isTrue
.The text was updated successfully, but these errors were encountered: