Skip to content

Chrome 143 / Firefox 149 allow more characters in DOM APIs#29217

Open
hamishwillee wants to merge 5 commits intomdn:mainfrom
hamishwillee:ff149_allow_more_chars_in_dom_names
Open

Chrome 143 / Firefox 149 allow more characters in DOM APIs#29217
hamishwillee wants to merge 5 commits intomdn:mainfrom
hamishwillee:ff149_allow_more_chars_in_dom_names

Conversation

@hamishwillee
Copy link
Copy Markdown
Contributor

@hamishwillee hamishwillee commented Mar 10, 2026

FF149 adds support for additional characters to be allowed in attribute and element names in https://bugzilla.mozilla.org/show_bug.cgi?id=1773312.

Previously you could only use the chars allowed in XML names - now the rules are less restrictive to allow the same chars as the HTML parser.

Spec update: whatwg/html#7991

Chrome states support in 143:

Webkit added support in https://bugs.webkit.org/show_bug.cgi?id=241419 but I don't think this made it to Safari yet.

Related docs work can be tracked in mdn/content#43218

@github-actions github-actions bot added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed labels Mar 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 10, 2026

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@hamishwillee hamishwillee requested a review from ddbeck March 23, 2026 01:53
@hamishwillee hamishwillee force-pushed the ff149_allow_more_chars_in_dom_names branch from 8b70db3 to fe9b650 Compare March 29, 2026 21:48
@hamishwillee hamishwillee requested a review from caugner March 29, 2026 22:02
@caugner caugner changed the title FF149 Allow more characters in DOM APIs Chrome 143 / Firefox 149 allow more characters in DOM APIs Apr 3, 2026
},
"html_name_validity": {
"__compat": {
"description": "Emoji and more Unicode in element names (valid names match HTML parser)",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we intentionally omitting namespaces and attribute names? (Also applies to the other ones.)

Suggested change
"description": "Emoji and more Unicode in element names (valid names match HTML parser)",
"description": "Emoji and more Unicode in namespace, element, and attribute names (valid names match HTML parser)",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@caugner No we are not - definitely an omission. I applied the following slight variation as search-replace.

Emoji and more Unicode in element and attribute names and namespace prefix (valid names match HTML parser)

The namespace we're talking about here is the namespace prefix to an element and attribute name: it isn't a thing on its own which this proposal might imply.

@hamishwillee hamishwillee force-pushed the ff149_allow_more_chars_in_dom_names branch from f4ac840 to bd54d00 Compare April 6, 2026 00:10
@hamishwillee hamishwillee requested a review from caugner April 6, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API size:l [PR only] 101-1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants