attach_shadow method
attach_shadow
Creates shadow root and attaches it to current element.
Returns
Created ShadowRoot
.
def attach_shadow(self, mode):
...
Parameter | Type | Description |
---|---|---|
mode | aspose.html.dom.ShadowRootMode | Mode in which shadow root will be created. |
Exceptions
Exception | Description |
---|---|
Error | NotSupportedError: Element does not support shadow tree. |
Error | InvalidStateError: Element already has shadow tree. |
See Also
- module
aspose.html
- class
HTMLMenuElement
- class
ShadowRoot