Skip to content
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

Differentiate between boolean attribute and enumerated "bool" attribute #124

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

wwylele
Copy link

@wwylele wwylele commented Jun 3, 2022

Both draggable and contenteditable attributes have meaningful "false"
value, which is different from missing the attribute. The HTML spec
says these attributes are enumerated, not boolean. We should provide a
way for user to explicitly set the attribute as false.

Ref:
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable

wwylele added 7 commits June 3, 2022 19:47
Both draggable and contenteditable attributes have meaningful "false"
value, which is different from missing the attribute. The HTML spec
says these attributes are enumerated, not boolean. We should provide a
way for user to explicitly set the attribute as false.
HTML specifies that a boolean attribute uses its presents or absents to
represent true/false, instead of the attribute value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant