The next node? I think you might mean the parent `li`'s `.nextSibling`. That would be surprising, if so. But we've already seen some bugs in our time.

Nope. Yours (current master) implementation would return the whole five of them—as is reasonable to expect. But the array is sorted wrong.