This PR updates utils.js to add CSS escaping to querySelectorAll. This is to deal with the case when the ID of the element starts with a numerical value, e.g. 2cdb. Try out super simple highligher on this article and you'll see the code erroring in the console when you try and highlight.
CSS escape seems to be compatible with all modern browsers.
This PR updates
utils.js
to add CSS escaping toquerySelectorAll
. This is to deal with the case when the ID of the element starts with a numerical value, e.g.2cdb
. Try out super simple highligher on this article and you'll see the code erroring in the console when you try and highlight.CSS escape seems to be compatible with all modern browsers.