| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <title>Fix for 13636</title> | |
| 4 <script> | |
| 5 if (window.testRunner) { | |
| 6 testRunner.dumpAsText(); | |
| 7 } | |
| 8 | |
| 9 function outputAppletsLength() { | |
| 10 document.write("<p>"); | |
| 11 if (document.applets) | |
| 12 document.write("Applets length is currently " + document.applets.len
gth); | |
| 13 else | |
| 14 document.write("There is no applets collection yet"); | |
| 15 document.write("</p>"); | |
| 16 } | |
| 17 | |
| 18 </script> | |
| 19 </head> | |
| 20 <body> | |
| 21 <p>This test demonstrates a couple of object tags being added that do not contai
n Java applets. Previously these Object element would be included in the docume
nt.applets collection even though the spec says that collection should contain o
nly Applet elements and Object elements that contain applets.</p> | |
| 22 <p>As the document is parsed, javascript will output the size of the document.ap
plets collection after each Object tag is inserted into the document. For this
test the count should always be zero.</p> | |
| 23 <p>Tragically we cannot have any actual Java Applets referenced here because whe
n DRT loads the Java VM it hangs. If that bug is resolved this test should also
be amended to add a dummy Applet using both the Applet tag and a few different
uses of the Object tag.</p> | |
| 24 | |
| 25 <script>outputAppletsLength();</script> | |
| 26 | |
| 27 <object type="application/not-a-real-applet" width=500 height=50> | |
| 28 <param name="code" value="ZOMG.class"> | |
| 29 <param name="text" value="ZOMG OBJECT JAVA APPLET (but not really!)"> | |
| 30 </object> | |
| 31 | |
| 32 <script>outputAppletsLength();</script> | |
| 33 | |
| 34 <object width=500 height=50> | |
| 35 Nothing here! | |
| 36 </object> | |
| 37 | |
| 38 <script>outputAppletsLength();</script> | |
| 39 | |
| 40 <object data="w3c_main.png" type="image/png"> | |
| 41 </object> | |
| 42 | |
| 43 <script>outputAppletsLength();</script> | |
| 44 | |
| 45 </body> | |
| 46 </html> | |
| OLD | NEW |