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

Update CustomElementsRegistry whenDefined to resolve to Class #5831

Closed
wants to merge 1 commit into from
Closed

Update CustomElementsRegistry whenDefined to resolve to Class #5831

wants to merge 1 commit into from

Conversation

nostalic
Copy link

@nostalic nostalic commented Aug 17, 2020

Closes #5552.

As per issue discussion, the currently specified behavior is to resolve with undefined, which requires an extra step if the user want to extend the custom element by calling customElements.get() to get the element constructor first.

(See WHATWG Working Mode: Changes for more details.)


/custom-elements.html ( diff )

Closes #5552. As per issue discussion, the currently specified
behavior is to resolve with undefined, which requires an extra
step if the user want to extend the custom element by calling
customElements.get() to get the element constructor first.

Updated tests on web-platform-tests/wpt#25030
@annevk
Copy link
Member

annevk commented Aug 17, 2020

This seems equivalent to #5833. I'll leave feedback there.

@nostalic
Copy link
Author

This seems equivalent to #5833. I'll leave feedback there.

Right, and #5833 is already farther along with review comments, so I'll be closing this one, thanks for having a look @annevk !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

CustomElementsRegistry whenDefined then => Class
2 participants