Revert the changes from 65ebf57c1e
, they were ineffectual against IE's insanity: http://ejohn.org/files/bugs/fragment/ Used a different tactic instead (just don't return a fragment from .parent()). Fixes #5638.
This commit is contained in:
parent
ba86cc0294
commit
ed5731dcc4
2 changed files with 3 additions and 8 deletions
|
@ -161,7 +161,7 @@ jQuery.fn.extend({
|
|||
});
|
||||
|
||||
jQuery.each({
|
||||
parent: function(elem){return elem.parentNode;},
|
||||
parent: function(elem){var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null;},
|
||||
parents: function(elem){return jQuery.dir(elem,"parentNode");},
|
||||
parentsUntil: function(elem,i,until){return jQuery.dir(elem,"parentNode",until);},
|
||||
next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue