diff --git a/dist/javascript/jquery-1.1.js b/dist/javascript/jquery-1.1.js index 48c2660b51c2d805f7f1d52f5e35b0ab2e59466b..0d2a88658f0536e23418dc01a9df0f3788576212 100644 --- a/dist/javascript/jquery-1.1.js +++ b/dist/javascript/jquery-1.1.js @@ -7,8 +7,8 @@ if(typeof window.jQuery == "undefined") { * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * - * $Date: 2007-02-07 16:06:49 +0100 (mer, 07 feb 2007) $ - * $Rev: 1294 $ + * $Date: 2007-02-03 20:32:16 +0100 (Sat, 03 Feb 2007) $ + * $Rev: 1261 $ */ // Global undefined variable @@ -291,11 +291,6 @@ jQuery.extend({ return !!fn && typeof fn != "string" && typeof fn[0] == "undefined" && /function/i.test( fn + "" ); }, - - // check if an element is in a XML document - isXMLDoc: function(elem) { - return elem.tagName && elem.ownerDocument && !elem.ownerDocument.body; - }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); @@ -510,7 +505,7 @@ jQuery.extend({ }, attr: function(elem, name, value){ - var fix = jQuery.isXMLDoc(elem) ? {} : { + var fix = { "for": "htmlFor", "class": "className", "float": jQuery.browser.msie ? "styleFloat" : "cssFloat", @@ -541,7 +536,6 @@ jQuery.extend({ // Mozilla doesn't play well with opacity 1 if ( name == "opacity" && jQuery.browser.mozilla && value == 1 ) value = 0.9999; - // Certain attributes only work when accessed via the old DOM 0 way if ( fix[name] ) { @@ -554,10 +548,8 @@ jQuery.extend({ // IE elem.getAttribute passes even for style else if ( elem.tagName ) { if ( value != undefined ) elem.setAttribute( name, value ); - if ( name == "href" && jQuery.browser.msie && !jQuery.isXMLDoc(elem) ) return elem.getAttribute( name, 2 ); return elem.getAttribute( name ); - // elem is actually elem.style ... set the style } else { name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();}); if ( value != undefined ) elem[name] = value; @@ -830,7 +822,7 @@ jQuery.extend({ /^(\+)/, "jQuery.nth(a,2,'nextSibling')", /^(~)/, function(a){ var s = jQuery.sibling(a.parentNode.firstChild); - return s.slice(jQuery.inArray(a,s) + 1); + return s.slice(0, jQuery.inArray(a,s)); } ], @@ -1865,7 +1857,7 @@ jQuery.fn.extend({ complete: function(res, status){ if ( status == "success" || !ifModified && status == "notmodified" ) // Inject the HTML into all the matched elements - self.html(res.responseText) + self.attr("innerHTML", res.responseText) // Execute all the scripts inside of the newly-injected HTML .evalScripts() // Execute callback