Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add htmlParser.element.findOne method #2698

Closed
Comandeer opened this issue Dec 21, 2018 · 0 comments
Closed

Add htmlParser.element.findOne method #2698

Comandeer opened this issue Dec 21, 2018 · 0 comments
Assignees
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

Comments

@Comandeer
Copy link
Member

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 of htmlParser.element API has dedicated method for it, findOne. It'd be nice to introduce it also to htmlParser.

@Comandeer Comandeer added type:task Any other issue (refactoring, typo fix, etc). changelog:api A changelog entry should be put in the API section of the changelog. labels Dec 21, 2018
@mlewand mlewand added type:feature A feature request. status:confirmed An issue confirmed by the development team. target:major Any docs related issue that should be merged into a major branch. and removed type:task Any other issue (refactoring, typo fix, etc). labels Dec 21, 2018
@engineering-this engineering-this self-assigned this Dec 21, 2018
@Comandeer Comandeer added this to the 4.12.0 milestone Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants