diff options
author | timmywil <timmywillisn@gmail.com> | 2012-06-20 16:19:06 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2012-06-21 11:38:31 -0400 |
commit | c20e031058c6210a1ed753f75af80588f076d60d (patch) | |
tree | f4db91d701dcd2d23147294aa5374846adb12962 /test/unit/core.js | |
parent | bc9945a6a466e3431260615c2e663ca8848095e7 (diff) | |
download | jquery-c20e031058c6210a1ed753f75af80588f076d60d.tar.gz jquery-c20e031058c6210a1ed753f75af80588f076d60d.zip |
Revert "Adjust jQuery('html') detection to only match when html starts with '<' (counting space characters). Fixes #11290"
This reverts commit 239fc86b01d52fd9df6d1963027ed37b4f6251fc.
The consensus is that this would change behavior too abruptly. We will warn in 1.8 and do this in 1.9.
Diffstat (limited to 'test/unit/core.js')
-rw-r--r-- | test/unit/core.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index 200f045db..0b392adf1 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -27,7 +27,7 @@ test("jQuery()", function() { div = jQuery("<div/><hr/><code/><b/>"), exec = false, long = "", - expected = 24, + expected = 26, attrObj = { click: function() { ok( exec, "Click executed." ); }, text: "test", @@ -132,12 +132,14 @@ test("jQuery()", function() { elem.remove(); equal( jQuery(" <div/> ").length, 1, "Make sure whitespace is trimmed." ); + equal( jQuery(" a<div/>b ").length, 1, "Make sure whitespace and other characters are trimmed." ); for ( i = 0; i < 128; i++ ) { long += "12345678"; } equal( jQuery(" <div>" + long + "</div> ").length, 1, "Make sure whitespace is trimmed on long strings." ); + equal( jQuery(" a<div>" + long + "</div>b ").length, 1, "Make sure whitespace and other characters are trimmed on long strings." ); }); test("selector state", function() { |