-
Notifications
You must be signed in to change notification settings - Fork 294
support itemscope
as a boolean attribute
#194
New issue
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
Milestone
Comments
Should probably just check the current list of boolean attributes in the spec, really. We're probably missing others too. |
jvanasco
added a commit
to jvanasco/html5lib-python
that referenced
this issue
Mar 6, 2017
willkg
added a commit
that referenced
this issue
Oct 31, 2017
added `itemscope` as a boolean attribute (issue #194)
I think this bug is fixed now, but if there are still outstanding things in this bug, please add a comment about what still needs to be done. Thank you for reporting! |
thanks for finding/merging my old PR! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
itemscope
should be supported as a boolean attribute.for reference,
schema.org
has been pushing it as such (https://schema.org/docs/gs.html#microdata_itemscope_itemtype)running something through the Tokenizer/Sanitizer will set it to an empty attribute
input:
<article itemscope>
output:
<article itemscope="">
it looks like this can be handled by editing constants.py and doing the following to enable it on all tags:
The text was updated successfully, but these errors were encountered: