Skip to content

Commit

Permalink
chore: Update comment re:enumerated props
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Sep 14, 2024
1 parent 01d5b54 commit 49657de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,7 @@ function _renderToString(
(name[4] === '-' || HTML_ENUMERATED.test(name)) &&
v != null
) {
// serialize boolean aria-xyz or draggable attribute values as strings
// `draggable` is an enumerated attribute and not Boolean. A value of `true` or `false` is mandatory
// https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable
// serialize boolean aria-xyz or enumerated attribute values as strings
v = v + EMPTY_STR;
} else if (isSvgMode) {
if (SVG_CAMEL_CASE.test(name)) {
Expand Down

0 comments on commit 49657de

Please sign in to comment.