ShadowRoot | - createShadowRoot()
- When invoked, these steps must be run:
If the context object is not an element, throw an InvalidNodeTypeError.Otherwise:
Create a new instance of the ShadowRoot objectEstablish the context object as the shadow host of the ShadowRoot objectAdd the ShadowRoot object at the top of the tree stack of its hostReturn ShadowRoot object.
|