Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tripple negation and text nodes #2808
A while back, A.Wolff found an inconsistency in jQuery and posted it on StackOverflow.
In short; non-element (e.g. text) nodes in recursive
I dug into the issue and found the cause. I'm not sure whether to consider this a bug or not, but there is an easy fix (in the answer) to make it atleast consistent. The cost of the fix is quite low.