modernweb ships its own fork of dom5, but doesn't use all of it (see here).
There's likely flexibility in changing interfaces via contributions.
| function |
summary |
migration/action |
| queryAll |
traverses the tree of a node depth-first by a filter |
use queryAll with a condition |
| getAttribute |
gets the string value of an attribute by name |
use getAttribute |
| hasAttribute |
determines if an attribute exists by name |
use hasAttribute |
| getTextContent |
gets the text content of a node |
use getTextContent |
| remove |
removes a node |
use tree adapter (detachNode) |
| setTextContent |
sets the text content of a node |
use setTextContent |
modernweb ships its own fork of dom5, but doesn't use all of it (see here).
There's likely flexibility in changing interfaces via contributions.
queryAllwith a conditiongetAttributehasAttributegetTextContentdetachNode)setTextContent