RFR (JDK10/jaxp) 8183583: LSSerializer docs have invalid character

Joe Wang huizhe.wang at oracle.com
Wed Jul 5 21:11:32 UTC 2017


A quick fix as Jon suggested: replacing \u00f1 with ñ

--- a/src/java.xml/share/classes/org/w3c/dom/ls/LSSerializer.java
+++ b/src/java.xml/share/classes/org/w3c/dom/ls/LSSerializer.java
@@ -136,7 +136,7 @@
   * <p> Within markup, but outside of attributes, any occurrence of a 
character
   * that cannot be represented in the output character encoding is reported
   * as a <code>DOMError</code> fatal error. An example would be serializing
- * the element <LaCa\u00f1ada/> with 
<code>encoding="us-ascii"</code>.
+ * the element <LaCañada/> with 
<code>encoding="us-ascii"</code>.
   * This will result with a generation of a <code>DOMError</code>
   * "wf-invalid-character-in-node-name" (as proposed in "<a 
href='http://www.w3.org/TR/DOM-Level-3-Core/core.html#parameter-well-formed'>
   * well-formed</a>").

Thanks,
Joe


More information about the core-libs-dev mailing list