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

Implement tagQuery()$matches(fn) #351

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Implement tagQuery()$matches(fn) #351

wants to merge 9 commits into from

Conversation

schloerke
Copy link
Collaborator

Fixes #350

(html <- tagList(div(), span()))
#> <div></div>
#> <span></span>
tagQ <- tagQuery(html)
tagQ$matches("span")
#> [1] FALSE TRUE
tagQ$matches(function(el, i) { el$name == "span" })
#> [1] FALSE TRUE

schloerke and others added 5 commits November 1, 2022 14:49
* main:
  CSS selection rules should include hyphens and underscores (#354)
  `document()` (#360)
  Start new version
  v0.5.4 release candidate (#357)
  Fix bindFillRole() documentation example
  roxygenize
  Fix outdated news
R/tag_query.R Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

Add tagQuery() $matches(cssSelector) functionality
2 participants