diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-03-25 11:52:53 +0000 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2007-03-25 11:52:53 +0000 |
commit | 4e7c9b08a0fb6142755e39cfaae2f8330831008c (patch) | |
tree | 1ae470bc5a730788a8b11d7a042e1d8abecec8f3 | |
parent | 707f23f83a59e692454eb18285a610889ce8102f (diff) | |
download | jquery-4e7c9b08a0fb6142755e39cfaae2f8330831008c.tar.gz jquery-4e7c9b08a0fb6142755e39cfaae2f8330831008c.zip |
Added test for #945
-rw-r--r-- | build/test/index.html | 5 | ||||
-rw-r--r-- | src/selector/selectorTest.js | 6 |
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('<input name="length"> cannot be found under IE, see #945', function() { + expect(2); + ok( $("#length").length ); + ok( $("#lengthtest input").length ); +}); |