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

[Custom Elements]: When is "created" callback invoked? (bugzilla: 14987) #262

Closed
hayatoito opened this issue Jul 6, 2015 · 1 comment
Closed

Comments

@hayatoito
Copy link
Contributor

Title: [Custom Elements]: When is "created" callback invoked? (bugzilla: 14987)

Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=14987


comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=14987#c0
Dimitri Glazkov wrote on 2011-11-29 00:31:57 +0000.

As raised by Jonas:

The "created" callback is the way for custom elements to participate in construction of the element, set up event listeners, private state, etc.

However, this means that there's an undesirable side effect of running script at parse time, which will affect performance and possibly introduce security troubles.

If we invoke the callback after construction, it's a bit too late and the element is already set up.

Gotta figure out something in between here.

@annevk
Copy link
Collaborator

annevk commented Mar 1, 2016

There's no created callback anymore and we already have plenty of issues on IDL integration and HTML Parser for what remains.

@annevk annevk closed this as completed Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants