+ 2

Javascript DOM support

Does solo learn not handle querySelectorAll()

2nd Dec 2019, 3:38 AM
Deleted
Deleted - avatar
5 Answers
+ 9
That is happening because you have to handle onload of window. Sololearn by default embed JavaScript in head section, so you have to handle it first. Like so, window.onload = () => { let li = document.querySelectorAll("li"); console.log(li.length); }
2nd Dec 2019, 3:57 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 6
I just checked. Sololearn definitely handles querySelectorAll().
2nd Dec 2019, 3:51 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 2
https://code.sololearn.com/W6ueOBIIm1so/?ref=app
2nd Dec 2019, 4:16 AM
Calviղ
Calviղ - avatar
+ 1
Can you share the code that raised this doubt, so people can check the problem. I think querySelectorAll is supported
2nd Dec 2019, 3:47 AM
Ipang