mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added test for #968
This commit is contained in:
parent
06b89271c1
commit
707f23f83a
@ -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>
|
||||
|
||||
|
9
src/jquery/coreTest.js
vendored
9
src/jquery/coreTest.js
vendored
@ -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" );
|
||||
});
|
Loading…
Reference in New Issue
Block a user