@get-advantage/advantage / utils/misc
Module: utils/misc
Variables
supportsAdoptingStyleSheets
• Const
supportsAdoptingStyleSheets: boolean
Checks if the browser supports adopting style sheets.
Defined in
Functions
collectIframes
▸ collectIframes(node
): HTMLIFrameElement
[]
Collects all the iframes within a given node and its children.
Parameters
Name | Type | Description |
---|---|---|
node | Node | The node to start collecting iframes from. |
Returns
HTMLIFrameElement
[]
An array of HTMLIFrameElement objects representing the iframes found.
Defined in
traverseNodes
▸ traverseNodes(node
, func
): void
Traverses the DOM tree starting from a given node and applies a function to each element node.
Parameters
Name | Type | Description |
---|---|---|
node | Node | The starting node for traversal. |
func | (node : HTMLElement ) => void | The function to be applied to each element node. |
Returns
void