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
Note also that it's an HTMLCollection, so a normal for loop will need to be used (may well also speed up the code as currently it's a forEach function-calling loop).
The text was updated successfully, but these errors were encountered:
@BillyRayPreachersSon suggested I check out
ParentNode.children
instead ofNode.childNodes
so that I can remove the check for each node being visited being an element node. Perhaps the check for the existence of the element could be skipped too.Note also that it's an
HTMLCollection
, so a normalfor
loop will need to be used (may well also speed up the code as currently it's aforEach
function-calling loop).The text was updated successfully, but these errors were encountered: