Re: [xml] HTML parser whitespace bug
- From: Rachael Churchill <rachael churchill linguamatics com>
- To: xml gnome org
- Subject: Re: [xml] HTML parser whitespace bug
- Date: Wed, 16 Dec 2009 14:41:39 +0000
Do you need to set the ignorableWhitespace handler?
We have ours set to the same function as we use for the characters
handler, and it correctly processes whitespace in <pre> tags.
Rachael
Michael Day wrote:
Hi,
The HTML parser incorrectly throws away whitespace inside <pre>
elements, so that the following input:
<pre>x<br/> <span>try</span></pre>
is collapsed to this:
<pre>x<br/><span>try</span></pre>
This can be verified with xmllint --html. Similar problems have been
observed in the past with whitespace between adjacent <img> elements,
which can also result in incorrect output.
Best regards,
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]