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

prefer-dom-node-dataset: Fix name conversion #1674

Merged
merged 2 commits into from Dec 30, 2021

Conversation

fisker
Copy link
Collaborator

@fisker fisker commented Dec 30, 2021

According to https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset#name_conversion, the attribute name should be lowercased first.

data- is also a valid dataset attribute.

I'll wait for #1673 merge first. Done

# Conflicts:
#	test/snapshots/prefer-dom-node-dataset.mjs.md
#	test/snapshots/prefer-dom-node-dataset.mjs.snap
@fisker fisker marked this pull request as ready for review December 30, 2021 06:58
@sindresorhus sindresorhus merged commit 7fb6f7b into sindresorhus:main Dec 30, 2021
@fisker fisker deleted the name-conversion branch December 30, 2021 23:32
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.

None yet

2 participants