[html5] r1526 - /

whatwg at whatwg.org whatwg at whatwg.org
Mon May 5 22:37:45 PDT 2008


Author: ianh
Date: 2008-05-05 22:37:44 -0700 (Mon, 05 May 2008)
New Revision: 1526

Modified:
   index
   source
Log:
[e] (0) Add examples for how to handle Java using <object>, add name='' to the list of <object> attributes.

Modified: index
===================================================================
--- index	2008-05-06 05:15:16 UTC (rev 1525)
+++ index	2008-05-06 05:37:44 UTC (rev 1526)
@@ -14144,6 +14144,8 @@
 
    <dd><code title=attr-object-type><a href="#type6">type</a></code>
 
+   <dd><code title=attr-object-name><a href="#name2">name</a></code>
+
    <dd><code title=attr-hyperlink-usemap><a href="#usemap1">usemap</a></code>
 
    <dd><code title=attr-dim-width><a href="#width4">width</a></code>
@@ -14421,6 +14423,34 @@
    href="#reflect">reflect</a> the respective content attributes of the same
    name.
 
+  <div class=example>
+   <p>In the following example, a Java applet is embedded in a page using the
+    <code><a href="#object">object</a></code> element. (Generally speaking,
+    it is better to avoid using applets like these and instead use native
+    JavaScript and HTML to provide the functionality, since that way the
+    application will work on all Web browsers without requiring a third-party
+    plugin. Many devices, especially embedded devices, do not support
+    third-party technologies like Java.)</p>
+
+   <pre><figure>
+ <object type="application/x-java-applet">
+  <param name="code" value="MyJavaClass">
+  <p>You do not have Java available, or it is disabled.</p>
+ </object>
+ <legend>My Java Clock</legend>
+</figure></pre>
+  </div>
+
+  <div class=example>
+   <p>In this example, an HTML page is embedded in another using the <code><a
+    href="#object">object</a></code> element.</p>
+
+   <pre><figure>
+ <object data="clock.html"></object>
+ <legend>My HTML Clock</legend>
+</figure></pre>
+  </div>
+
   <h4 id=the-param><span class=secno>3.12.6 </span>The <dfn
    id=param><code>param</code></dfn> element</h4>
 

Modified: source
===================================================================
--- source	2008-05-06 05:15:16 UTC (rev 1525)
+++ source	2008-05-06 05:37:44 UTC (rev 1526)
@@ -12147,6 +12147,7 @@
    <dt>Element-specific attributes:</dt>
    <dd><code title="attr-object-data">data</code></dd>
    <dd><code title="attr-object-type">type</code></dd>
+   <dd><code title="attr-object-name">name</code></dd>
    <dd><code title="attr-hyperlink-usemap">usemap</code></dd>
    <dd><code title="attr-dim-width">width</code></dd>
    <dd><code title="attr-dim-height">height</code></dd>
@@ -12443,9 +12444,41 @@
   <span>reflect</span> the respective content attributes of the same
   name.</p>
 
+  <div class="example">
 
+   <p>In the following example, a Java applet is embedded in a page
+   using the <code>object</code> element. (Generally speaking, it is
+   better to avoid using applets like these and instead use native
+   JavaScript and HTML to provide the functionality, since that way
+   the application will work on all Web browsers without requiring a
+   third-party plugin. Many devices, especially embedded devices, do
+   not support third-party technologies like Java.)</p>
 
+   <pre><figure>
+ <object type="application/x-java-applet">
+  <param name="code" value="MyJavaClass">
+  <p>You do not have Java available, or it is disabled.</p>
+ </object>
+ <legend>My Java Clock</legend>
+</figure></pre>
 
+  </div>
+
+  <div class="example">
+
+   <p>In this example, an HTML page is embedded in another using the
+   <code>object</code> element.</p>
+
+   <pre><figure>
+ <object data="clock.html"></object>
+ <legend>My HTML Clock</legend>
+</figure></pre>
+
+  </div>
+
+
+
+
   <h4>The <dfn><code>param</code></dfn> element</h4>
 
   <dl class="element">




More information about the Commit-Watchers mailing list