Tests: Add custom attribute getter tests to the selector module
[jquery.git] / test / data / manipulation / iframe-denied.html
blob030ca717bcca38675b35e78c542af52c7770a91d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset=utf-8 />
5 <title>body</title>
6 </head>
7 <body>
8 <div id="qunit-fixture"></div>
9 <script src="../../jquery.js"></script>
10 <script src="../iframeTest.js"></script>
11 <script>
12 var script = document.getElementsByTagName( "script" )[ 0 ],
13 div = document.createElement( "div" ),
14 src = "https://" + window.parent.externalHost,
15 success = true,
16 error = "";
18 script.parentNode.appendChild( div );
19 div.innerHTML = "<iframe name=\"test\" src=\"" + src + "\">";
21 jQuery(function() {
22 try {
23 jQuery( "<div>hello<div>world</div>!</div>" ).appendTo( "#qunit-fixture" );
24 } catch( e ) {
25 success = false;
26 error = e;
29 startIframeTest({
30 status: success,
31 description: "buildFragment sets the context without throwing an exception" +
32 ( error ? ": " + error : "" )
33 });
34 });
35 </script>
36 </body>
37 </html>