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

Docs: Add hyperlink to official HTML specifications for data-* prefix #2071

Closed
thadguidry opened this issue Dec 6, 2023 · 0 comments · Fixed by #2072
Closed

Docs: Add hyperlink to official HTML specifications for data-* prefix #2071

thadguidry opened this issue Dec 6, 2023 · 0 comments · Fixed by #2072

Comments

@thadguidry
Copy link
Contributor

In section https://htmx.org/docs/#introduction , we currently mention that

It’s worth mentioning that, if you prefer, you can use the data- prefix when using htmx:
<a data-hx-post="/click">Click Me!</a>

But there is no reference link for what the data- prefix is. We are assuming our audience has a full understanding of all elements (even newer ones) of HTML, and instead we should be good citizens and hyperlink to standards as necessary when we mention them in our docs.

The link we should refer to the data-* attribute is https://html.spec.whatwg.org/multipage/dom.html#attr-data-*

@thadguidry thadguidry changed the title Add hyperlink to official HTML specifications for data-* prefix Docs: Add hyperlink to official HTML specifications for data-* prefix Dec 6, 2023
thadguidry added a commit to thadguidry/htmx that referenced this issue Dec 6, 2023
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 a pull request may close this issue.

1 participant