Show:
Pre-order depth-first DOM traversal helper.
- Source:
Classes
- DOMTraverser
- Class for helping us traverse the DOM.
Type Definitions
traverserHandler(node, env, atTopLevel, tplInfo) → {Node|null
|false
|true
}
DOM traversal handler.
DOM traversal handler.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | |
env |
MWParserEnvironment | |
atTopLevel |
boolean | |
tplInfo |
Object | Template information. |
- Source:
Returns:
Return false if you want to stop any further callbacks from being called on the node. Return the new node if you need to replace it or change its siblings; traversal will continue with the new node.
- Type
-
Node
|
null
|false
|true