My problem is best explained with examples:
This works:
$(startContainer).parents().each(function(index, parentNode) {
if (parentNode.isSameNode(commonContainer)) return false;
console.log("start vert struc: " + parentNode.nodeName);
});
While, this does not work:
$(startContainer).parentsUntil(commonContainer).each(function(index, parentNode) {
console.log("start vert struc: " + parentNode.nodeName);
});
Basically, the second version should work too as far as I know, but it doesn't. It simply does not stop when commonContainer hits, yet the first version does. Why is this?