aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2007-03-25 11:52:53 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2007-03-25 11:52:53 +0000
commit4e7c9b08a0fb6142755e39cfaae2f8330831008c (patch)
tree1ae470bc5a730788a8b11d7a042e1d8abecec8f3
parent707f23f83a59e692454eb18285a610889ce8102f (diff)
downloadjquery-4e7c9b08a0fb6142755e39cfaae2f8330831008c.tar.gz
jquery-4e7c9b08a0fb6142755e39cfaae2f8330831008c.zip
Added test for #945
-rw-r--r--build/test/index.html5
-rw-r--r--src/selector/selectorTest.js6
2 files changed, 10 insertions, 1 deletions
diff --git a/build/test/index.html b/build/test/index.html
index 85a7fa4ed..b798a09b4 100644
--- a/build/test/index.html
+++ b/build/test/index.html
@@ -85,7 +85,10 @@
<span id="utf8class2" class="台北"></span>
</form>
<b id="floatTest">Float test.</b>
- <iframe id="iframe" name="iframe"></iframe>
+ <iframe id="iframe" name="iframe"></iframe>
+ <form id="lengthtest">
+ <input type="text" id="length" name="test">
+ </form>
</div>
</dl>
diff --git a/src/selector/selectorTest.js b/src/selector/selectorTest.js
index 59af2ff0b..d3004f05b 100644
--- a/src/selector/selectorTest.js
+++ b/src/selector/selectorTest.js
@@ -200,3 +200,9 @@ test("basic xpath", function() {
isSet( $("/p", this).get(), q("sndp", "en", "sap"), "Check XPath context" );
});
});
+
+test('&lt;input name="length"&gt; cannot be found under IE, see #945', function() {
+ expect(2);
+ ok( $("#length").length );
+ ok( $("#lengthtest input").length );
+});