I've noticed something very bizarre. For a NodeList called examples...
examples.elementAt(0).toHtml() => <div class="example"> <p>...</p> <pre class="code"> ... </pre> </div>
examples.elementAt(0).getChildren().extractAllNodesThatMatch(new TagNameFilter("pre")).toHtml() => <pre class="code">
Where did the body go? Turns out it's a *sibling* to the pre tag. :-(
Log in to post a comment.
I've noticed something very bizarre. For a NodeList called examples...
examples.elementAt(0).toHtml()
=>
<div class="example">
<p>...</p>
<pre class="code">
...
</pre>
</div>
examples.elementAt(0).getChildren().extractAllNodesThatMatch(new TagNameFilter("pre")).toHtml()
=>
<pre class="code">
Where did the body go? Turns out it's a *sibling* to the pre tag. :-(