embed-in-object-fallback-2.html (2314B)
1 <!doctype html> 2 <html> 3 <head> 4 <meta charset=utf-8> 5 <title></title> 6 <script src=/resources/testharness.js></script> 7 <script src=/resources/testharnessreport.js></script> 8 <script> 9 var loadedCount = 0; 10 var nestingTest = async_test("Test <embed> nesting inside <object>"); 11 onload = nestingTest.step_func_done(function() { 12 assert_equals(loadedCount, 12, "Should have loaded all should-load elements"); 13 }); 14 </script> 15 </head> 16 <body> 17 <object data="../resources/should-load.html" style="width: 100px; height: 100px"> 18 <embed type="text/html" src="../resources/should-not-load.html" 19 test-description="<embed> inside <object>"> 20 </object> 21 <object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test"> 22 <embed type="text/html" src="../resources/should-load.html" /> 23 </object> 24 <object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test"> 25 <div></div> 26 <embed type="text/html" src="../resources/should-load.html" /> 27 </object> 28 <object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test"> 29 <div> 30 <embed type="text/html" src="../resources/should-load.html" /> 31 </div> 32 </object> 33 <object style="width: 100px; height: 100px" data="data:application/x-does-not-exist,test"> 34 <embed type="text/html" src="../resources/should-load.html" /> 35 <embed type="text/html" src="../resources/should-load.html" /> 36 <object data="../resources/should-load.html"> 37 <embed type="text/html" src="../resources/should-not-load.html" 38 test-description="<embed> inside loaded <object> inside non-loaded <object>"> 39 </object> 40 <object data="data:application/x-does-not-exist,test"> 41 <embed type="text/html" src="../resources/should-load.html" /> 42 </object> 43 </object> 44 <div> 45 <object data="../resources/should-load.html" style="width: 100px; height: 100px"></object> 46 <embed type="text/html" src="../resources/should-load.html" /> 47 </div> 48 <div> 49 <embed type="text/html" src="../resources/should-load.html" /> 50 <object data="../resources/should-load.html" style="width: 100px; height: 100px"></object> 51 </div> 52 </body> 53 </html>