7018459: javax.script code comments have issues with HTML4 validation and Accessibility compliance
Reviewed-by: jjh
--- a/jdk/src/share/classes/javax/script/ScriptEngineFactory.java Thu Feb 17 20:53:26 2011 +0000
+++ b/jdk/src/share/classes/javax/script/ScriptEngineFactory.java Fri Feb 18 12:07:46 2011 +0530
@@ -115,20 +115,19 @@
* with respect to concurrent execution of scripts and maintenance of state is also defined.
* These values for the <code><b>THREADING</b></code> key are:<br><br>
* <ul>
- * <p><code>null</code> - The engine implementation is not thread safe, and cannot
+ * <li><code>null</code> - The engine implementation is not thread safe, and cannot
* be used to execute scripts concurrently on multiple threads.
- * <p><code>"MULTITHREADED"</code> - The engine implementation is internally
+ * <li><code>"MULTITHREADED"</code> - The engine implementation is internally
* thread-safe and scripts may execute concurrently although effects of script execution
* on one thread may be visible to scripts on other threads.
- * <p><code>"THREAD-ISOLATED"</code> - The implementation satisfies the requirements
+ * <li><code>"THREAD-ISOLATED"</code> - The implementation satisfies the requirements
* of "MULTITHREADED", and also, the engine maintains independent values
* for symbols in scripts executing on different threads.
- * <p><code>"STATELESS"</code> - The implementation satisfies the requirements of
- * <code>"THREAD-ISOLATED"</code>. In addition, script executions do not alter the
+ * <li><code>"STATELESS"</code> - The implementation satisfies the requirements of
+ * <li><code>"THREAD-ISOLATED"</code>. In addition, script executions do not alter the
* mappings in the <code>Bindings</code> which is the engine scope of the
* <code>ScriptEngine</code>. In particular, the keys in the <code>Bindings</code>
* and their associated values are the same before and after the execution of the script.
- * </li>
* </ul>
* <br><br>
* Implementations may define implementation-specific keys.
@@ -145,7 +144,8 @@
* of the supported scripting language. For instance, an implementaton for a Javascript
* engine might be;
* <p>
- * <code><pre>
+ * <pre>
+ * <code>
* public String getMethodCallSyntax(String obj,
* String m, String... args) {
* String ret = obj;
@@ -159,7 +159,8 @@
* ret += ")";
* return ret;
* }
- *</pre></code>
+ *</code>
+ *</pre>
* <p>
*
* @param obj The name representing the object whose method is to be invoked. The