aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/test/index.html2
-rw-r--r--src/jquery/coreTest.js9
2 files changed, 10 insertions, 1 deletions
diff --git a/build/test/index.html b/build/test/index.html
index 8fead08ef..85a7fa4ed 100644
--- a/build/test/index.html
+++ b/build/test/index.html
@@ -85,7 +85,7 @@
<span id="utf8class2" class="台北"></span>
</form>
<b id="floatTest">Float test.</b>
- <iframe id="iframe"></iframe>
+ <iframe id="iframe" name="iframe"></iframe>
</div>
</dl>
diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js
index 98a1ba815..77fd17e52 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('<script type="text/javascript">ok( true, "execute script" );</script>').evalScripts();
});
+
+test("$('<tag>') needs optional document parameter to ease cross-frame DOM wrangling, see #968", function() {
+ var f = frames["iframe"].document;
+ f.open();
+ f.write("<html><body></body></html>");
+ f.close();
+ $("<div>Testing</div>").appendTo(f.body);
+ ok( true, "passed" );
+}); \ No newline at end of file