Provides helper functions for wica-aware html pages.
Methods
(inner) findWicaChannelElements(rootElement) → {Array.<Element>}
Finds all wica-channel-related HTML elements in the current document. That's to say, all elements
which include an attribute which defines the name of the wica channel.
Parameters:
Name | Type | Description |
---|---|---|
rootElement |
Element | the document element at which to start searching. |
Returns:
- The result list.
- Type
- Array.<Element>
(inner) findWicaElementsWithAttributeNameAlsoInShadowDom(parentNodenon-null, attributeNamenon-null) → {Array.<Element>}
Finds all HTML elements in the current document whose attribute name matches the specified value.
Continue search into subtrees that are DOM shadow roots.
Parameters:
Name | Type | Description |
---|---|---|
parentNode |
ParentNode | the node at which to start searching. |
attributeName |
string | The attribute name to target. |
Returns:
- The result list.
- Type
- Array.<Element>
(inner) findWicaStreamElements() → {Array.<Element>}
Finds all wica-stream-related HTML elements in the current document. That's to say, all elements
which include an attribute which defines the name or properties of a stream.
Returns:
- The result list.
- Type
- Array.<Element>