You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: