Skip to content

Compatibility with modernweb #4

@43081j

Description

@43081j

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions