Skip to content

fix data-* and aria-* attribute name conversion #911

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

Closed
wants to merge 3 commits into from

Conversation

rmorshea
Copy link
Collaborator

@rmorshea rmorshea commented Feb 3, 2023

Stems from this comment.

Checklist

Please update this checklist as you complete each item:

  • Tests have been included for all bug fixes or added functionality.
  • The changelog.rst has been updated with any significant changes.
  • GitHub Issues which may be closed by this Pull Request have been linked.

@rmorshea rmorshea marked this pull request as ready for review February 3, 2023 19:26
@rmorshea rmorshea requested a review from Archmonger February 3, 2023 23:10
@Archmonger Archmonger linked an issue Feb 3, 2023 that may be closed by this pull request
Archmonger
Archmonger previously approved these changes Feb 3, 2023
@@ -64,7 +64,7 @@ function normalizeAttribute([key, value]) {
key.startsWith("aria_") ||
DASHED_HTML_ATTRS.includes(key)
) {
normKey = key.replace("_", "-");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Archmonger
Copy link
Contributor

This PR seems moot, since aria attributes are going to be handled via dashes - after reverting to the old API.

@rmorshea rmorshea closed this Feb 10, 2023
@rmorshea rmorshea deleted the fix-data-aria-attr-conv branch March 21, 2023 21:53
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.

data-* string mutations are broken
3 participants