query-selector-shadow-dom
query-selector-shadow-dom copied to clipboard
Escape class names
When an element has class names starting with number, the Element.matches is failing to identify the right element.
Ex: div.classA.2f683ff1c2173060crd67792e542ss17Expected: Should identify element with classA and 2f683ff1c2173060crd67792e542ss17 as classes Actual: Element.matches throws Error as it is invalid id
@Georgegriff Let me know your thoughts on this
https://stackoverflow.com/questions/21227702/is-there-a-workaround-to-make-css-classes-with-names-that-start-with-numbers-val according to this you need to escape the first digit for it to be a valid query selector
Closing, package moving to new owner