DomNodeList
This adapter class just lifts the DOM API NodeList type into Kotlin's collection API.
In order to improve the further processing of typical DOM native calls, it makes sense to offer an adapter type.
To ease the usage further, there is a factory extension defined on NodeList named asElementList.
Example usage:
domnode // some DOM node
.querySelectorAll("") // DOM API's NodeList as result -> cumbersome iterating and processing!
.asElementList() // create this type via extension factory
.filter { it.hasAttribute("data-myData") } // process the result in some way...
.map { ... }
Content copied to clipboard
Parameters
base
the initial NodeList
Properties
Link copied to clipboard
Returns true when the list contains no ValidationMessage which is marked with ValidationMessage.isError.