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

find() can not find tag when it is only-one #329

Closed
yikeshu0611 opened this issue Jul 17, 2022 · 1 comment
Closed

find() can not find tag when it is only-one #329

yikeshu0611 opened this issue Jul 17, 2022 · 1 comment

Comments

@yikeshu0611
Copy link

yikeshu0611 commented Jul 17, 2022

(html <- span("bar"))
tagQ <- tagQuery(html)
tagQ$find('span')

Result:

`$allTags()`:
<span>bar</span>

`$selectedTags()`: (Empty selection)

html is only one tag of span. So if I use find() to locate span tag, the result should be it self.

@cpsievert
Copy link
Collaborator

cpsievert commented Apr 14, 2023

Thanks. We're aware of the confusion, and will likely fix this behavior. Closing here since this is essentially a duplicate of #334

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants