src/share/classes/javax/swing/text/html/HTMLDocument.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -181,11 +181,11 @@
* <h3>Summary</h3>
*
* <p>The following table shows the example document and the results
* of various methods described above.</p>
*
- * <table border=1 cellspacing=0>
+ * <table border=1 cellspacing=0 summary="HTML Content of example above">
* <tr>
* <th>Example</th>
* <th><code>insertAfterStart</code></th>
* <th><code>insertBeforeEnd</code></th>
* <th><code>insertBeforeStart</code></th>
@@ -992,20 +992,20 @@
* <p> <p>
* </pre>
*
* <p>Invoking <code>setInnerHTML(elem, "<ul><li>")</code>
* results in the following structure (new elements are <font
- * color="red">in red</font>).</p>
+ * style="color: red;">in red</font>).</p>
*
* <pre>
* <body>
* |
* <b><div></b>
* \
- * <font color="red"><ul></font>
+ * <font style="color: red;"><ul></font>
* \
- * <font color="red"><li></font>
+ * <font style="color: red;"><li></font>
* </pre>
*
* <p>Parameter <code>elem</code> must not be a leaf element,
* otherwise an <code>IllegalArgumentException</code> is thrown.
* If either <code>elem</code> or <code>htmlText</code> parameter
@@ -1073,18 +1073,18 @@
* <p> <p>
* </pre>
*
* <p>Invoking <code>setOuterHTML(elem, "<ul><li>")</code>
* results in the following structure (new elements are <font
- * color="red">in red</font>).</p>
+ * style="color: red;">in red</font>).</p>
*
* <pre>
* <body>
* |
- * <font color="red"><ul></font>
+ * <font style="color: red;"><ul></font>
* \
- * <font color="red"><li></font>
+ * <font style="color: red;"><li></font>
* </pre>
*
* <p>If either <code>elem</code> or <code>htmlText</code>
* parameter is <code>null</code>, no changes are made to the
* document.</p>
@@ -1143,20 +1143,20 @@
* <p> <p>
* </pre>
*
* <p>Invoking <code>insertAfterStart(elem,
* "<ul><li>")</code> results in the following structure
- * (new elements are <font color="red">in red</font>).</p>
+ * (new elements are <font style="color: red;">in red</font>).</p>
*
* <pre>
* <body>
* |
* <b><div></b>
* / | \
- * <font color="red"><ul></font> <p> <p>
+ * <font style="color: red;"><ul></font> <p> <p>
* /
- * <font color="red"><li></font>
+ * <font style="color: red;"><li></font>
* </pre>
*
* <p>Unlike the <code>insertBeforeStart</code> method, new
* elements become <em>children</em> of the specified element,
* not siblings.</p>
@@ -1213,20 +1213,20 @@
* <p> <p>
* </pre>
*
* <p>Invoking <code>insertBeforeEnd(elem, "<ul><li>")</code>
* results in the following structure (new elements are <font
- * color="red">in red</font>).</p>
+ * style="color: red;">in red</font>).</p>
*
* <pre>
* <body>
* |
* <b><div></b>
* / | \
- * <p> <p> <font color="red"><ul></font>
+ * <p> <p> <font style="color: red;"><ul></font>
* \
- * <font color="red"><li></font>
+ * <font style="color: red;"><li></font>
* </pre>
*
* <p>Unlike the <code>insertAfterEnd</code> method, new elements
* become <em>children</em> of the specified element, not
* siblings.</p>
@@ -1280,18 +1280,18 @@
* <p> <p>
* </pre>
*
* <p>Invoking <code>insertBeforeStart(elem,
* "<ul><li>")</code> results in the following structure
- * (new elements are <font color="red">in red</font>).</p>
+ * (new elements are <font style="color: red;">in red</font>).</p>
*
* <pre>
* <body>
* / \
- * <font color="red"><ul></font> <b><div></b>
+ * <font style="color: red;"><ul></font> <b><div></b>
* / / \
- * <font color="red"><li></font> <p> <p>
+ * <font style="color: red;"><li></font> <p> <p>
* </pre>
*
* <p>Unlike the <code>insertAfterStart</code> method, new
* elements become <em>siblings</em> of the specified element, not
* children.</p>
@@ -1338,18 +1338,18 @@
* <p> <p>
* </pre>
*
* <p>Invoking <code>insertAfterEnd(elem, "<ul><li>")</code>
* results in the following structure (new elements are <font
- * color="red">in red</font>).</p>
+ * style="color: red;">in red</font>).</p>
*
* <pre>
* <body>
* / \
- * <b><div></b> <font color="red"><ul></font>
+ * <b><div></b> <font style="color: red;"><ul></font>
* / \ \
- * <p> <p> <font color="red"><li></font>
+ * <p> <p> <font style="color: red;"><li></font>
* </pre>
*
* <p>Unlike the <code>insertBeforeEnd</code> method, new elements
* become <em>siblings</em> of the specified element, not
* children.</p>