-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
customElements.getName() missing and invalid custom element name case handling. #1176
Labels
bug
Something isn't working
Comments
mash-graz
added a commit
to mash-graz/happy-dom
that referenced
this issue
Dec 10, 2023
mash-graz
added a commit
to mash-graz/happy-dom
that referenced
this issue
Dec 10, 2023
mash-graz
added a commit
to mash-graz/happy-dom
that referenced
this issue
Dec 10, 2023
mash-graz
added a commit
to mash-graz/happy-dom
that referenced
this issue
Dec 10, 2023
mash-graz
added a commit
to mash-graz/happy-dom
that referenced
this issue
Dec 10, 2023
mash-graz
added a commit
to mash-graz/happy-dom
that referenced
this issue
Dec 11, 2023
mash-graz
added a commit
to mash-graz/happy-dom
that referenced
this issue
Dec 11, 2023
capricorn86
added a commit
to mash-graz/happy-dom
that referenced
this issue
Feb 20, 2024
…ment() and Document.createElementNS()
capricorn86
added a commit
to mash-graz/happy-dom
that referenced
this issue
Feb 21, 2024
capricorn86
added a commit
to mash-graz/happy-dom
that referenced
this issue
Feb 21, 2024
capricorn86
added a commit
to mash-graz/happy-dom
that referenced
this issue
Feb 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The method
customElements.getName()
isn't implemented until now.And while trying to fix this issues I had to figure out, that happy-dom makes some fundamental wrong assumptions about custom element naming. It internally translates all tag names to uppercase for case-insensitive lookups, but the specification to the contrary does only allow lowercase ASCII letters in valid custom element names anyway (https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name).
I'll try to send you a PR to fix these issues soon.
The text was updated successfully, but these errors were encountered: