aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2011-10-23 16:07:07 -0400
committertimmywil <timmywillisn@gmail.com>2011-10-23 16:08:10 -0400
commitf3a4d261ecd0e858515f6e3fa8f5ff59078ec895 (patch)
tree6672e48c062279c753e6f7ccf6ede12affb5abf1 /test
parent516f3cd7b5fd0e374b01843b5f78240feb03d959 (diff)
downloadjquery-f3a4d261ecd0e858515f6e3fa8f5ff59078ec895.tar.gz
jquery-f3a4d261ecd0e858515f6e3fa8f5ff59078ec895.zip
Landing pull request 550. IE6,7,8 cannot use cached fragments from unknown elems. Fixes #10501.
More Details: - https://github.com/jquery/jquery/pull/550 - http://bugs.jquery.com/ticket/10501
Diffstat (limited to 'test')
-rw-r--r--test/data/testsuite.css3
-rw-r--r--test/unit/manipulation.js14
2 files changed, 15 insertions, 2 deletions
diff --git a/test/data/testsuite.css b/test/data/testsuite.css
index 8c88a9334..d3e4b4e40 100644
--- a/test/data/testsuite.css
+++ b/test/data/testsuite.css
@@ -123,3 +123,6 @@ body, div { background: url(http://static.jquery.com/files/rocker/images/logo_jq
/* #6652 REMOVE FILTER:ALPHA(OPACITY=100) AFTER ANIMATION */
#t6652 div { filter: alpha(opacity=50); }
+
+/* #10501 */
+section { background:#f0f; display:block; } \ No newline at end of file
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 0b1a1e66a..e8c7cd72a 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -472,8 +472,18 @@ test("append HTML5 sectioning elements (Bug #6485)", function () {
var article = jQuery("article"),
aside = jQuery("aside");
- equal( article.css("fontSize"), "10px", 'HTML5 elements are styleable');
- equal( aside.length, 1, 'HTML5 elements do not collapse their children')
+ equal( article.css("fontSize"), "10px", "HTML5 elements are styleable");
+ equal( aside.length, 1, "HTML5 elements do not collapse their children")
+});
+
+test("HTML5 Elements inherit styles from style rules (Bug #10501)", function () {
+ expect(1);
+
+ jQuery("#qunit-fixture").append("<article id='article'></article>");
+ jQuery("#article").append("<section>This section should have a pink background.</section>");
+
+ // In IE, the missing background color will claim its value is "transparent"
+ notEqual( jQuery("section").css("background-color"), "transparent", "HTML5 elements inherit styles");
});
test("clone() (#6485)", function () {