attachInternals
Description
The attachInternals of HTMLElement for JS returns an ElementInternals object targeting the custom element element. Throws an exception if element is not a custom element, if the "internals" feature was disabled as part of the element definition, or if it is called twice on the same element.
Syntax
element.attachInternals()