rstudio / htmltools

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

`tagAppend*(.cssSelector = "foo")` et al should warn when it does nothing #344

Open cpsievert opened 1 year ago

cpsievert commented 1 year ago

Currently, when .cssSelector returns empty results, the tagAppend*() family does nothing to warn you about it (it probably should?)

tagAppendChild(span(), .cssSelector = ".foo", 1)
<span></span>

Same goes for any function that has a .cssSelector argument