Skip to content

Commit bf6a4e2

Browse files
committedSep 4, 2023
Fix a few markup errors and a warning
1 parent 89c40b1 commit bf6a4e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎dom-mark.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -685,14 +685,14 @@ <h2>DOM traversal: <code>NodeIterator</code></h2>
685685
</tbody></table>
686686
<p>DOM4J is not included as it lacks a <code>NodeIterator</code>.</p>
687687
<p><em>Note:</em> sometimes the <code>NodeIterator</code> created by the JDK is in an inconsistent state, and fails with an exception like:</p>
688-
<pre class="code"># Warmup Iteration 1: <failure>
688+
<pre class="code"># Warmup Iteration 1: &lt;failure&gt;
689689

690690
java.lang.ArrayIndexOutOfBoundsException: Index 34 out of bounds for length 33
691691
at java.base/java.util.ArrayList.add(ArrayList.java:455)
692692
at java.base/java.util.ArrayList.add(ArrayList.java:467)
693693
at java.xml/com.sun.org.apache.xerces.internal.dom.DocumentImpl.createNodeIterator(DocumentImpl.java:255)
694694
at io.sf.carte.mark.dom.DOMIteratorMark.markNodeIteratorJdk(DOMIteratorMark.java:46)
695-
</failure></pre>
695+
&lt;/failure&gt;</pre>
696696
<p>But I have observed this only while benchmarking, and not in other cases.</p>
697697
</div>
698698
<div class="tema" id="treewalker-small">

‎resolver.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
44
<meta name="viewport" content="width=device-width, initial-scale=1" />
55
<link href="code-c.css" rel="stylesheet" type="text/css" />
6-
<script src="js/code-a.js" type="text/javascript" charset="utf-8"></script>
6+
<script src="js/code-a.js" charset="utf-8"></script>
77
</head>
88
<body>
99
<div class="layout">
@@ -40,7 +40,7 @@ <h2>Overview</h2>
4040
(Note: <a href="https://www.w3.org/TR/xml-entity-names/predefined.html">predefined entities</a> like "<code>&amp;amp;</code>" are not affected)</li>
4141
<li>Enabling the feature <a href="https://xerces.apache.org/xerces2-j/features.html#disallow-doctype-decl">http://apache.org/xml/features/disallow-doctype-decl</a>,
4242
which throws an error if the parsed document contains a <code>DOCTYPE</code> declaration.
43-
Since many documents contain <code>DOCTYPE</code> declarations, that prevents the parsing of a lot of documents.</p>
43+
Since many documents contain <code>DOCTYPE</code> declarations, that prevents the parsing of a lot of documents.</li>
4444
</ol>
4545
<p>Those two workarounds assume that your XML parser is based on <a href="https://xerces.apache.org/xerces2-j/">Apache Xerces2</a>,
4646
although other parsers are sometimes still in use (for example variants of the <a href="http://saxon.sourceforge.net/aelfred.html">Ælfred XML Parser</a>)

0 commit comments

Comments
 (0)
Please sign in to comment.