A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.
To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).
Custom Elements
Jump to navigation
Jump to search
Upgrading
Upgrading is the concept of going from a piece of markup, such as <my-div data-teehee="💩"></my-div>
, to an object in a tree.
Tactic | Explanation | Drawbacks |
---|---|---|
Brain transplant | A basic element is created by the parser and a callback registered by the developer is invoked at a later point to turn that basic element into a custom element. |
|
Dummy replacement | A dummy element is created by the parser and replaced at a later point by an actual instance of the custom element created by invoking the constructor registered by the developer. |
|
Synchronous constructor | The constructor registered by the developer is invoked by the parser at the point the custom element is created and inserted into the tree. |
|