]> source.dussan.org Git - jquery.git/commitdiff
Removed some cases of strict errors.
authorJohn Resig <jeresig@gmail.com>
Wed, 20 May 2009 21:52:47 +0000 (21:52 +0000)
committerJohn Resig <jeresig@gmail.com>
Wed, 20 May 2009 21:52:47 +0000 (21:52 +0000)
src/selector.js
test/index.html

index 5bde726ecf10cb66b3c21eb840801b82121502d7..96e339d1a27593d3b7bae3a15745ba630be8a0a4 100644 (file)
@@ -551,7 +551,7 @@ var Expr = Sizzle.selectors = {
                        } else if ( name === "not" ) {
                                var not = match[3];
 
-                               for ( var i = 0, l = not.length; i < l; i++ ) {
+                               for ( i = 0, l = not.length; i < l; i++ ) {
                                        if ( not[i] === elem ) {
                                                return false;
                                        }
@@ -565,13 +565,13 @@ var Expr = Sizzle.selectors = {
                        switch (type) {
                                case 'only':
                                case 'first':
-                                       while (node = node.previousSibling)  {
+                                       while ( (node = node.previousSibling) )  {
                                                if ( node.nodeType === 1 ) return false;
                                        }
                                        if ( type == 'first') return true;
                                        node = elem;
                                case 'last':
-                                       while (node = node.nextSibling)  {
+                                       while ( (node = node.nextSibling) )  {
                                                if ( node.nodeType === 1 ) return false;
                                        }
                                        return true;
index d6bea7044248979e2ebb5a1a8d9e2644da6d183e..bec2da75ad5e2af311337e6fa878e26602c93ac8 100644 (file)
        <script type="text/javascript" src="unit/css.js"></script>
        <script type="text/javascript" src="unit/traversing.js"></script>
        <script type="text/javascript" src="unit/manipulation.js"></script>
-       <script type="text/javascript" src="unit/dimensions.js"></script>
-       <script type="text/javascript" src="unit/selector.js"></script>
-       <script type="text/javascript" src="unit/event.js"></script>
-       <script type="text/javascript" src="unit/ajax.js"></script>
-       <script type="text/javascript" src="unit/fx.js"></script>
-</head>
-
 <body id="body">
        <h1 id="header">jQuery Test Suite</h1>
        <h2 id="banner"></h2>
@@ -77,7 +70,7 @@
                        <input type="text" id="name" name="name" value="name" />
                        <input type="search" id="search" name="search" value="search" />
                        
-                       <button id="button" name="button" type="button">Button</button>
+                       <button id="button" name="button">Button</button>
                        
                        <textarea id="area1" maxlength="30">foobar</textarea>
                        
@@ -209,7 +202,7 @@ Z</textarea>
                </div>
        </div>
        </dl>
-       <div id="fx-test-group" style="position:absolute;width:1px;height:1px;overflow:hidden;">
+       <div id="fx-test-group" style="width:1px;height:1px;overflow:hidden;">
                <div id="fx-queue" name="test">
                        <div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div>
                        <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>