jquery/jquery — pull request #799 by orkel (2012-05-28 07:49:32+00:00)
Title: Avoid try-catch in oldIE, fixes test failures in oldIE

My IE6/7 updated themselfs to IE8, i did not notice that when i run the tests :-(.
Okey, in order to understand why jQuery need a try-catch i did additional checks, based on – https://github.com/jquery/jquery/commit/cf672a2e7a886cac5ae62f6772c6b4b43b19a2fc#commitcomment-159402

There is three types of disconnected nodes, when –

parentNode == null

parentNode == documentFragment

some of parents of the node is parentNode == null or parentNode == documentFragment

IE6/7 throws an exception only in first case, for other disconnected nodes it will return 0.
This means jQuery do not need a try-catch, only test for any type of disconnected nodes. There should not be any speed diff, and it saves 16 bytes.