X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2Fjquery.js;h=edcaee20d3e7b0bcb99f30c952b8125b65847f78;hb=610149fd19c087e51ccd5975ba2c2e5c3bfe49a8;hp=88598678995cafdd6de6c3ddce08b5dad2657717;hpb=cb828f3dab6ec8439ac111246346a8d4b3205fed;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 8859867..edcaee2 100644 --- a/src/jquery/jquery.js +++ b/src/jquery/jquery.js @@ -1479,13 +1479,16 @@ jQuery.extend({ // Convert html string into DOM nodes if ( typeof arg == "string" ) { // Trim whitespace, otherwise indexOf won't work as expected - var s = jQuery.trim(arg), div = doc.createElement("div"), tb = []; + var s = jQuery.trim(arg).toLowerCase(), div = doc.createElement("div"), tb = []; var wrap = // option or optgroup !s.indexOf("", ""] || + !s.indexOf("", ""] || + (!s.indexOf("", ""] || @@ -1804,6 +1807,7 @@ new function() { // Figure out what browser is being used jQuery.browser = { + version: b.match(/.+[xiae][\/ ]([\d.]+)/)[1], safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b),