From 707f23f83a59e692454eb18285a610889ce8102f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Sun, 25 Mar 2007 11:04:28 +0000 Subject: [PATCH] Added test for #968 --- build/test/index.html | 2 +- src/jquery/coreTest.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/build/test/index.html b/build/test/index.html index 8fead08..85a7fa4 100644 --- a/build/test/index.html +++ b/build/test/index.html @@ -85,7 +85,7 @@ Float test. - + diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 98a1ba8..77fd17e 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -826,3 +826,12 @@ test("$().html().evalScripts() Eval's Scripts Twice in Firefox, see #975", funct expect(1); $("#main").html('').evalScripts(); }); + +test("$('') needs optional document parameter to ease cross-frame DOM wrangling, see #968", function() { + var f = frames["iframe"].document; + f.open(); + f.write(""); + f.close(); + $("
Testing
").appendTo(f.body); + ok( true, "passed" ); +}); \ No newline at end of file -- 1.7.10.4