You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
The endpoint fails to return a NodeList or HTMLCollection in the proper format. It instead returns {0={}}.
What you expected to happen:
The endpoint should return an array of elements.
How to reproduce it (as minimally and precisely as possible):
Attempt to execute return document.querySelectorAll('body'); or return document.getElementsByTagName('body').
Anything else we need to know?:
This is likely caused by NodeList and HTMLCollection not being detected as array-like objects. One possible solution may be to convert them with Array.from() before passing them on to the element handler.
The text was updated successfully, but these errors were encountered:
What happened:
The endpoint fails to return a
NodeList
orHTMLCollection
in the proper format. It instead returns{0={}}
.What you expected to happen:
The endpoint should return an array of elements.
How to reproduce it (as minimally and precisely as possible):
Attempt to execute
return document.querySelectorAll('body');
orreturn document.getElementsByTagName('body')
.Anything else we need to know?:
This is likely caused by
NodeList
andHTMLCollection
not being detected as array-like objects. One possible solution may be to convert them withArray.from()
before passing them on to the element handler.The text was updated successfully, but these errors were encountered: