X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fcore.js;h=3a9eaa7de7741a93b646a54ec9f79a8bf433e427;hb=0ae78024c23dd3ef4bcea883338d975dcf843597;hp=3f6c1f75af840c15900a7d17363a8112895cbff3;hpb=6b938e1c162877ee62681f8aefe6f64ba208eead;p=jquery.git diff --git a/src/core.js b/src/core.js index 3f6c1f7..3a9eaa7 100644 --- a/src/core.js +++ b/src/core.js @@ -855,7 +855,7 @@ jQuery.extend({ }); // Trim whitespace, otherwise indexOf won't work as expected - var tags = jQuery.trim( elem ).toLowerCase(); + var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase(); var wrap = // option or optgroup @@ -895,11 +895,12 @@ jQuery.extend({ if ( !jQuery.support.tbody ) { // String was a , *may* have spurious - var tbody = !tags.indexOf(" or - wrap[1] == "
" && tags.indexOf("" && !hasBody ? div.childNodes : [];