rstudio / htmltools

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

Support hyphens in tag/element css selectors #355

Closed slodge closed 1 year ago

slodge commented 1 year ago

We're using some libraries at the moment which have hyphened tag names.

This is an increasingly common scenario because of web components and the Custom Elements spec

The current selector implementation doesn't seem to support hyphens (or some other characters like underscores) - so I'm looking at extending this - see start of work in https://github.com/rstudio/htmltools/pull/354

slodge commented 1 year ago

PR is now ready for review 👍