dom5
Utilities for using parse5
Utilities for working with parse5 ASTs
Utilities for using parse5
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
'dom5/lib/index-next.js'
to receive
the new API. This will be the API exposed in the next major version.
Specifically, the nodeWalk
, nodeWalkAll
, nodeWalkPrior
,
nodeWalkAllPrior
, and nodeWalkAncestors
APIs are replaced by depthFirst
,
prior
, and ancestors
APIs, which simply iterators now. In addition
queryAll
will return an iterator rather than an array.insertAfter()
functionremoveFakeRootElements
and removeNodeSaveChildren
functions.parse5@^v2.2.1
.<template>
elements,
the nodeWalk* and query* functions will no longer return results from within
<template>
s. Code that relied on this must explicitly walk into template
content documents.parse()
, parseFragment()
and serialize()
. Use
parse5.parse()
, etc., instead.null
childNodes
array.childNodes
array cleared,
rather than getting a new empty childNodes
instance.