OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <!-- The message inserted below should be shown with some suitable style. --> | 3 <style> |
4 <object type="application/x-fake-plugin"></object> | 4 applet, embed, object { display: block; } |
| 5 </style> |
| 6 |
| 7 <!-- The placeholders inserted below should be shown with some suitable style. -
-> |
| 8 <object id="plugin1" type="application/x-fake-plugin"></object> |
| 9 <object id="plugin2" type="application/x-fake-plugin"></object> |
5 | 10 |
6 <script> | 11 <script> |
7 var plugin = document.querySelector("object"); | 12 internals.forcePluginPlaceholder(document.getElementById('plugin1'), { message:
"Sorry, but your plugin couldn't be loaded." }); |
8 internals.forcePluginPlaceholder(plugin, { message: "Sorry, but your plugin coul
dn't be loaded." }); | 13 internals.forcePluginPlaceholder(document.getElementById('plugin2'), { message:
"Sorry, but your plugin couldn't be loaded.", closeable: true }); |
9 </script> | 14 </script> |
OLD | NEW |