rstudio / htmltools

Tools for HTML generation and output
https://rstudio.github.io/htmltools/
214 stars 67 forks source link

`tagQuery()`'s `find()` method error out on objects that contain formulas #364

Closed cpsievert closed 1 year ago

cpsievert commented 1 year ago

cc @schloerke

library(htmltools)
tagQuery(div(div(plotly::plot_ly(mtcars, x = ~wt))))$find("div")
tagQueryFindDescendants_() - Unknown Type! This has not happened before:
Class 'formula'  language ~wt
  ..- attr(*, ".Environment")=<environment: R_GlobalEnv> 
Error in .f(.x[[i]], ...) : Unknown type in tagQueryFindDescendants_()