Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

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

Open
wwylele wants to merge 7 commits into
bodil:masterfrom
wwylele:master
Open

Differentiate between boolean attribute and enumerated "bool" attribute#124
wwylele wants to merge 7 commits into
bodil:masterfrom
wwylele:master

Conversation

@wwylele

@wwylele wwylele commented Jun 3, 2022

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant