Skip to content

customElement.define's 2nd parameter is a constructor #815

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

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Jan 6, 2020

Previously it was a call signature, but this is not correct. I'm not sure if HTML - Custom Elements.widl is wrong or whether our interpretation of it is wrong. A call signature does not match actual usage or the semantics as implemented by Chrome, however.

Previously it was a call signature, but this is not correct.
@sandersn sandersn changed the title customElement.define's 2nd param is construct sig customElement.define's 2nd param is a constructor Jan 6, 2020
@sandersn sandersn changed the title customElement.define's 2nd param is a constructor customElement.define's 2nd parameter is a constructor Jan 6, 2020
@sandersn
Copy link
Member Author

sandersn commented Jan 6, 2020

@saschanaz I'm going to merge this since I'm pretty sure it's right based on usage from MDN's example repo, but if you have comments, please do chime in.

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