Closed Hunam6 closed 2 years ago
Multiple class names are tested with AND relation, whereas your implementation seems to test them with OR relation 🤔
I'd also prefer if you could use for .. of
over .forEach
I fixed the issue you mentioned!
In addition I have two suggestions/comments/questions:
utils.ts
file somewhere? This would avoid having such a duplicated code.Formatting can be handled in a later PR maybe... Not in this one. I do need to deno fmt
Deno DOM soon...
Thanks for the improvement idea! I had tunnel vision on my implementation :)
Alrighty, thanks
Fixed
getElementsByClassName
with multiple classes separated by a space character as argumentBefore only this worked
But as described here, the first example should work too.