Add htmlParser.element.findOne method #2698
Labels
changelog:api
A changelog entry should be put in the API section of the changelog.
status:confirmed
An issue confirmed by the development team.
target:major
Any docs related issue that should be merged into a major branch.
type:feature
A feature request.
Milestone
Type of report
Task
Provide description of the task
There are some situations, in which we want to get only the first element that matches all criteria. We can use
find
and fetch only the first element from the returned array, but DOM counterpart ofhtmlParser.element
API has dedicated method for it,findOne
. It'd be nice to introduce it also tohtmlParser
.The text was updated successfully, but these errors were encountered: