Skip to content

Document custom DOM data attributes - #947

Open
anmonteiro wants to merge 13 commits into
mainfrom
anmonteiro/docs-dom-data-attributes
Open

anmonteiro wants to merge 13 commits into
mainfrom
anmonteiro/docs-dom-data-attributes

Conversation

@anmonteiro

Copy link
Copy Markdown
Member

Document the DOM data attributes introduced in #933 and link the updated guide from the JSX docs. Stacked on #933.

01a17001-efda-7320-8b10-3844e629533f

Use an erased DOM prop checker for typing and Merlin while emitting a single object constructor. Preserve identifier locations without duplicating complex expressions, restore the generated JavaScript snapshot, and cover nested JSX completion.
Hyphenate digits and underscores, and accept data-prefixed names while keeping standard data and datatype props on their existing DOM path. Update output snapshots, runtime coverage, and documentation.
Follow ml-in-barcelona/server-reason-react#412 for underscores, acronyms, and digits. Cover collisions between names after conversion.
Base automatically changed from anmonteiro/proposal-data-attrs to main November 16, 2026 04:51

This branch has not been deployed

No deployments
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