Element Upgrades
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩
- example
If browser encounters <custom-element> before customElements.define(), the element is yet , just like any non-standard tag. can be styled with CSS selector.
When customElement.define() is called, they are “upgraded”: a new instance of CustomElement is created for each, and connectedCallback
is called. They become :defined
.