querySelectorEscape() fails to escape an id with a trailing dot
This bug was first declared here: https://github.com/rstudio/pagedown/issues/84
When an element id
contains a trailing dot, querySelectorEscape()
fails.
Using the built-in Chrome (72.0.3626.121) CSS.escape()
function instead of querySelectorEscape()
introduced in 0e4e6ec1 solves the bug for me.