attachShadow

Creates a shadow root for element and returns it.

MDN Reference