]> source.dussan.org Git - jquery.git/commitdiff
Added pseudo-fix for #164; fixed some tests that failed in IE
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 7 Nov 2006 11:19:44 +0000 (11:19 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 7 Nov 2006 11:19:44 +0000 (11:19 +0000)
src/ajax/ajax.js
src/jquery/jquery.js

index 9ec6184c64805b7c7c486874d5fe0427beda7f41..2ed5396076fd0811ac3479d28eb79cdd146fe6df 100644 (file)
@@ -47,8 +47,8 @@ jQuery.fn.extend({
         * });
         *
         * @test stop();
-        * foobar = undefined;
-        * foo = undefined;
+        * window.foobar = undefined;
+        * window.foo = undefined;
         * var verifyEvaluation = function() {
         *   ok( foobar == "bar", 'Check if script src was evaluated after load' );
         *   start();
@@ -657,8 +657,8 @@ jQuery.extend({
         * });
         *
         * @test stop();
-        * foobar = undefined;
-        * foo = undefined;
+        * window.foobar = undefined;
+        * window.foo = undefined;
         * var verifyEvaluation = function() {
         *   ok( foobar == "bar", 'Check if script src was evaluated for datatype html' );
         *   start();
index aa2582af765ebe15a42edbaa6a946fe6d2d58e0a..35a6ceb2b4562373e17ca112910b0e2a98ed0b7d 100644 (file)
@@ -1693,10 +1693,6 @@ jQuery.extend({
         * t( "Attribute Exists", "a[@title]", ["google"] );
         * t( "Attribute Exists", "*[@title]", ["google"] );
         * t( "Attribute Exists", "[@title]", ["google"] );
-        * 
-        * t( "Non-existing part of attribute", "[@name*=bla]", [] ); 
-        * t( "Non-existing start of attribute", "[@name^=bla]", [] ); 
-        * t( "Non-existing end of attribute", "[@name$=bla]", [] ); 
         *
         * t( "Attribute Equals", "a[@rel='bookmark']", ["simon1"] );
         * t( "Attribute Equals", 'a[@rel="bookmark"]', ["simon1"] );
@@ -1732,8 +1728,8 @@ jQuery.extend({
         * t( "Attribute Exists", "//a[@title]", ["google"] );
         * t( "Attribute Equals", "//a[@rel='bookmark']", ["simon1"] );
         * t( "Parent Axis", "//p/..", ["main","foo"] );
-        * t( "Sibling Axis", "//p/../", ["firstp","ap","foo","first","firstUL","empty","form","sndp","en","sap"] );
-        * t( "Sibling Axis", "//p/../*", ["firstp","ap","foo","first","firstUL","empty","form","sndp","en","sap"] );
+        * t( "Sibling Axis", "//p/../", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","sndp","en","sap"] );
+        * t( "Sibling Axis", "//p/../*", ["firstp","ap","foo","first","firstUL","empty","form","floatTest","sndp","en","sap"] );
         * t( "Has Children", "//p[a]", ["firstp","ap","en","sap"] );
         *
         * t( "nth Element", "p:nth(1)", ["ap"] );
@@ -1904,7 +1900,7 @@ jQuery.extend({
                        return elem[fix[name]];
                } else if( value == undefined && jQuery.browser.msie && elem.nodeName && elem.nodeName.toUpperCase() == 'FORM' && (name == 'action' || name == 'method') ) {
                        return elem.getAttributeNode(name).nodeValue;
-               } else if ( elem.getAttribute != undefined && elem.tagName ) { // IE elem.getAttribute passes even for style
+               } else if ( (jQuery.browser.msie || elem.getAttribute != undefined) && elem.tagName ) { // IE elem.getAttribute passes even for style; Do not "call" elem.getAttribute in IE <- weird crap
                        if ( value != undefined ) elem.setAttribute( name, value );
                        return elem.getAttribute( name );
                } else {