← Back to release summary

customElements.upgrade()

Category
Web Components
Type
New or changed feature
Status
Enabled by default (Chrome 68)
Intent stage
None

Summary

This function upgrades undefined custom elements explicitly. If a custom element is created with the innerHTML setter and its parent node is not connected to a document, the custom element is not upgraded until it's connected. Upgrading such elements explicitly allows developers to handle them in a single way regardless of connectedness.

Standards & signals

View on chromestatus.com