|
(element.className ? '.' + escape(element.classList[0]) : '')); |
Here a proper MDN: CSS.escape is required. Otherwise a perfectly valid CSS class w-1/3 will throw an error.
I do not know why the escape is used here and will backwards compatibility allow it to be replaced with CSS.escape, but may I suggest to at least additionally wrap with CSS.escape?
Or create any tool to be able to override the escaping for this particular code line. Otherwise it is a hard blocker to use this library. Because it itself creates an invalid selector and then throws an exception.
Btw, thanks for the library :)
Spent some nice time debugging through it
nwsapi/src/nwsapi.js
Line 1538 in f1664d8
Here a proper MDN: CSS.escape is required. Otherwise a perfectly valid CSS class
w-1/3will throw an error.I do not know why the
escapeis used here and will backwards compatibility allow it to be replaced withCSS.escape, but may I suggest to at least additionally wrap withCSS.escape?Or create any tool to be able to override the escaping for this particular code line. Otherwise it is a hard blocker to use this library. Because it itself creates an invalid selector and then throws an exception.
Btw, thanks for the library :)
Spent some nice time debugging through it