metal.js icon indicating copy to clipboard operation
metal.js copied to clipboard

[metal-dom] handle edge cases selectors in `toElement`

Open gcmznt opened this issue 7 years ago • 0 comments

the method toElement here does not handle in a correct way selectors as #id>.class that are written without spaces.

the problem is in the if on lines 768-771.

we need to handle this edge cases as selectors starting with an # and with one character as >, ~ or + inside the string.

I am working on the fix for this issue

gcmznt avatar May 18 '18 09:05 gcmznt