[2.0] Fix #13265 #13332: traversing methods with text nodes

Partially reverts 65bdfbf07f911d5014e32ab126ef0c568c22bf49

+11 bytes to jquery.min.js.gz