-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Line 1538 in f1664d8
| (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
malte-laukoetter
Metadata
Metadata
Assignees
Labels
No labels