diff options
-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 ); +}); |