--- old/src/java.desktop/share/classes/javax/swing/text/html/HTMLDocument.java 2017-05-04 17:01:38.000000000 -0700 +++ new/src/java.desktop/share/classes/javax/swing/text/html/HTMLDocument.java 2017-05-04 17:01:38.000000000 -0700 @@ -1,5 +1,5 @@ /* - * 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 @@ -999,17 +999,17 @@ * * *
Invoking setInnerHTML(elem, "<ul><li>")
- * results in the following structure (new elements are in red).
* <body> * | * <div> * \ - * <ul> + * <ul> * \ - * <li> + * <li> ** *
Parameter elem
must not be a leaf element,
@@ -1083,15 +1083,15 @@
*
*
*
Invoking setOuterHTML(elem, "<ul><li>")
- * results in the following structure (new elements are in red).
* <body> * | - * <ul> + * <ul> * \ - * <li> + * <li> ** *
If either elem
or htmlText
@@ -1157,16 +1157,16 @@
*
*
Invoking insertAfterStart(elem,
* "<ul><li>")
results in the following structure
- * (new elements are in red).
* <body> * | * <div> * / | \ - * <ul> <p> <p> + * <ul> <p> <p> * / - * <li> + * <li> ** *
Unlike the insertBeforeStart
method, new
@@ -1229,17 +1229,17 @@
*
*
*
Invoking insertBeforeEnd(elem, "<ul><li>")
- * results in the following structure (new elements are in red).
* <body> * | * <div> * / | \ - * <p> <p> <ul> + * <p> <p> <ul> * \ - * <li> + * <li> ** *
Unlike the insertAfterEnd
method, new elements
@@ -1300,14 +1300,14 @@
*
*
Invoking insertBeforeStart(elem,
* "<ul><li>")
results in the following structure
- * (new elements are in red).
* <body> * / \ - * <ul> <div> + * <ul> <div> * / / \ - * <li> <p> <p> + * <li> <p> <p> ** *
Unlike the insertAfterStart
method, new
@@ -1360,15 +1360,15 @@
*
*
*
Invoking insertAfterEnd(elem, "<ul><li>")
- * results in the following structure (new elements are in red).
* <body> * / \ - * <div> <ul> + * <div> <ul> * / \ \ - * <p> <p> <li> + * <p> <p> <li> ** *
Unlike the insertBeforeEnd
method, new elements