< prev index next >
src/java.desktop/share/classes/javax/swing/text/html/HTMLDocument.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2017, 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
@@ -997,21 +997,21 @@
* / \
* <p> <p>
* </pre>
*
* <p>Invoking <code>setInnerHTML(elem, "<ul><li>")</code>
- * results in the following structure (new elements are <font
- * style="color: red;">in red</font>).</p>
+ * results in the following structure (new elements are <span
+ * style="color: red;">in red</span>).</p>
*
* <pre>
* <body>
* |
* <b><div></b>
* \
- * <font style="color: red;"><ul></font>
+ * <span style="color: red;"><ul></span>
* \
- * <font style="color: red;"><li></font>
+ * <span style="color: red;"><li></span>
* </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
@@ -1081,19 +1081,19 @@
* / \
* <p> <p>
* </pre>
*
* <p>Invoking <code>setOuterHTML(elem, "<ul><li>")</code>
- * results in the following structure (new elements are <font
- * style="color: red;">in red</font>).</p>
+ * results in the following structure (new elements are <span
+ * style="color: red;">in red</span>).</p>
*
* <pre>
* <body>
* |
- * <font style="color: red;"><ul></font>
+ * <span style="color: red;"><ul></span>
* \
- * <font style="color: red;"><li></font>
+ * <span style="color: red;"><li></span>
* </pre>
*
* <p>If either <code>elem</code> or <code>htmlText</code>
* parameter is <code>null</code>, no changes are made to the
* document.</p>
@@ -1155,20 +1155,20 @@
* <p> <p>
* </pre>
*
* <p>Invoking <code>insertAfterStart(elem,
* "<ul><li>")</code> results in the following structure
- * (new elements are <font style="color: red;">in red</font>).</p>
+ * (new elements are <span style="color: red;">in red</span>).</p>
*
* <pre>
* <body>
* |
* <b><div></b>
* / | \
- * <font style="color: red;"><ul></font> <p> <p>
+ * <span style="color: red;"><ul></span> <p> <p>
* /
- * <font style="color: red;"><li></font>
+ * <span style="color: red;"><li></span>
* </pre>
*
* <p>Unlike the <code>insertBeforeStart</code> method, new
* elements become <em>children</em> of the specified element,
* not siblings.</p>
@@ -1227,21 +1227,21 @@
* / \
* <p> <p>
* </pre>
*
* <p>Invoking <code>insertBeforeEnd(elem, "<ul><li>")</code>
- * results in the following structure (new elements are <font
- * style="color: red;">in red</font>).</p>
+ * results in the following structure (new elements are <span
+ * style="color: red;">in red</span>).</p>
*
* <pre>
* <body>
* |
* <b><div></b>
* / | \
- * <p> <p> <font style="color: red;"><ul></font>
+ * <p> <p> <span style="color: red;"><ul></span>
* \
- * <font style="color: red;"><li></font>
+ * <span style="color: red;"><li></span>
* </pre>
*
* <p>Unlike the <code>insertAfterEnd</code> method, new elements
* become <em>children</em> of the specified element, not
* siblings.</p>
@@ -1298,18 +1298,18 @@
* <p> <p>
* </pre>
*
* <p>Invoking <code>insertBeforeStart(elem,
* "<ul><li>")</code> results in the following structure
- * (new elements are <font style="color: red;">in red</font>).</p>
+ * (new elements are <span style="color: red;">in red</span>).</p>
*
* <pre>
* <body>
* / \
- * <font style="color: red;"><ul></font> <b><div></b>
+ * <span style="color: red;"><ul></span> <b><div></b>
* / / \
- * <font style="color: red;"><li></font> <p> <p>
+ * <span style="color: red;"><li></span> <p> <p>
* </pre>
*
* <p>Unlike the <code>insertAfterStart</code> method, new
* elements become <em>siblings</em> of the specified element, not
* children.</p>
@@ -1358,19 +1358,19 @@
* / \
* <p> <p>
* </pre>
*
* <p>Invoking <code>insertAfterEnd(elem, "<ul><li>")</code>
- * results in the following structure (new elements are <font
- * style="color: red;">in red</font>).</p>
+ * results in the following structure (new elements are <span
+ * style="color: red;">in red</span>).</p>
*
* <pre>
* <body>
* / \
- * <b><div></b> <font style="color: red;"><ul></font>
+ * <b><div></b> <span style="color: red;"><ul></span>
* / \ \
- * <p> <p> <font style="color: red;"><li></font>
+ * <p> <p> <span style="color: red;"><li></span>
* </pre>
*
* <p>Unlike the <code>insertBeforeEnd</code> method, new elements
* become <em>siblings</em> of the specified element, not
* children.</p>
< prev index next >