Re: [xml] empty CDATA sections




On 03/03/2008, at 22:47, Daniel Veillard wrote:

On Mon, Mar 03, 2008 at 09:45:18AM -0800, Darin Adler wrote:
Hi folks.

As you may know, WebKit currently uses libxml2 to handle XML
documents, including XHTML. I recently discovered that a number of Ian Hickson's test cases that work fine in other browsers fail in browsers based on WebKit. That's because libxml2 discards empty CDATA sections.
I filed this bug:

    http://bugzilla.gnome.org/show_bug.cgi?id=514181

And Mark Rowe attached a patch that resolves the issue.

Daniel pointed out that some clients of libxml2 may be depending on
the current behavior; some may see this as a feature rather than a bug.

Does anyone have any comments, objections to this change perhaps or
support for the change?

 One of the things which should probably be reviewed is the impact
when doing XPath/XSLT, i.e. check that with the settings needed to build
an XPath tree we don't end up with extra text nodes which would break
XPath adressing, and probably check also the impact when doing type
validation, i.e. how an empty CDATA added in an element content should
affect (or not) XSD/RelaxNG. That mean at least a few tests to be added
to libxml2 regression test suite.

Where can I find documentation about how to write tests for the regression test suite? README.tests in the source tree talks briefly about how to run existing tests, but I have been unable to find any documentation, either in the source or on the website, about the creation of new tests.

Thanks,

Mark

Attachment: smime.p7s
Description: S/MIME cryptographic signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]