[i18n-drafts] [questions/qa-non-eng-tags] HTML custom elements (#729)

xfq has just created a new issue for https://github.com/w3c/i18n-drafts:

== [questions/qa-non-eng-tags]  HTML custom elements ==
[source] (https://www.w3.org/International/questions/qa-non-eng-tags) [en]

> HTML or XHTML tags are all pre-defined (in English) and must remain that way if they are to be correctly recognized by user agents (eg. browsers).

HTML custom elements can contain non-ASCII characters. According to the <a href="https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-core-concepts">HTML Standard</a>, custom element names support "a large variety of names" including examples like <code>&lt;math-α&gt;</code> and <code>&lt;emotion-😍&gt;</code>.

Requirements for custom element names:

- Must start with an ASCII lowercase letter (a-z)
- Must contain at least one hyphen (-)
- Must not contain ASCII uppercase letters
- Can contain Unicode characters after the initial requirements are met

I tried it and it works in all major browsers.

Please view or discuss this issue at https://github.com/w3c/i18n-drafts/issues/729 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 25 July 2025 09:27:48 UTC