Skip to content

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

Open
wwylele wants to merge 7 commits intobodil:masterfrom
wwylele:master
Open

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

Conversation

@wwylele
Copy link
Copy Markdown

@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