+
+ // Test .closest() limited by the context
+ var jq = jQuery("#nothiddendivchild");
+ isSet( jq.closest("html", document.body).get(), [], "Context limited." );
+ isSet( jq.closest("body", document.body).get(), [], "Context limited." );
+ isSet( jq.closest("#nothiddendiv", document.body).get(), q("nothiddendiv"), "Context not reached." );