diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2008-03-07 16:50:21 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2008-03-07 16:50:21 +0000 |
commit | d0d2f090dcb4774998716988255753f965912d73 (patch) | |
tree | cd8fe05a7e394a5d99f17b3237155962b724a868 /result | |
parent | 57c9db0725d63b27709a9f040888b160f29573a3 (diff) | |
download | android_external_libxml2-d0d2f090dcb4774998716988255753f965912d73.tar.gz android_external_libxml2-d0d2f090dcb4774998716988255753f965912d73.tar.bz2 android_external_libxml2-d0d2f090dcb4774998716988255753f965912d73.zip |
fix handling of empty CDATA nodes as reported and discussed around #514181
* xmlsave.c parser.c: fix handling of empty CDATA nodes as
reported and discussed around #514181 and associated patches
* test/emptycdata.xml result/emptycdata.xml*
result/noent/emptycdata.xml: added a specific test in the
regression suite.
Daniel
svn path=/trunk/; revision=3701
Diffstat (limited to 'result')
-rw-r--r-- | result/emptycdata.xml | 4 | ||||
-rw-r--r-- | result/emptycdata.xml.rde | 7 | ||||
-rw-r--r-- | result/emptycdata.xml.rdr | 7 | ||||
-rw-r--r-- | result/emptycdata.xml.sax | 10 | ||||
-rw-r--r-- | result/emptycdata.xml.sax2 | 10 | ||||
-rw-r--r-- | result/noent/emptycdata.xml | 4 |
6 files changed, 42 insertions, 0 deletions
diff --git a/result/emptycdata.xml b/result/emptycdata.xml new file mode 100644 index 00000000..bc98388a --- /dev/null +++ b/result/emptycdata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<![CDATA[]]> +</html> diff --git a/result/emptycdata.xml.rde b/result/emptycdata.xml.rde new file mode 100644 index 00000000..1c8b74ff --- /dev/null +++ b/result/emptycdata.xml.rde @@ -0,0 +1,7 @@ +0 1 html 0 0 +1 14 #text 0 1 + +1 4 #cdata-section 0 1 +1 14 #text 0 1 + +0 15 html 0 0 diff --git a/result/emptycdata.xml.rdr b/result/emptycdata.xml.rdr new file mode 100644 index 00000000..1c8b74ff --- /dev/null +++ b/result/emptycdata.xml.rdr @@ -0,0 +1,7 @@ +0 1 html 0 0 +1 14 #text 0 1 + +1 4 #cdata-section 0 1 +1 14 #text 0 1 + +0 15 html 0 0 diff --git a/result/emptycdata.xml.sax b/result/emptycdata.xml.sax new file mode 100644 index 00000000..39587c63 --- /dev/null +++ b/result/emptycdata.xml.sax @@ -0,0 +1,10 @@ +SAX.setDocumentLocator() +SAX.startDocument() +SAX.startElement(html, xmlns='http://www.w3.org/1999/xhtml') +SAX.characters( +, 1) +SAX.pcdata(, 0) +SAX.characters( +, 1) +SAX.endElement(html) +SAX.endDocument() diff --git a/result/emptycdata.xml.sax2 b/result/emptycdata.xml.sax2 new file mode 100644 index 00000000..7f80296e --- /dev/null +++ b/result/emptycdata.xml.sax2 @@ -0,0 +1,10 @@ +SAX.setDocumentLocator() +SAX.startDocument() +SAX.startElementNs(html, NULL, 'http://www.w3.org/1999/xhtml', 1, xmlns='http://www.w3.org/1999/xhtml', 0, 0) +SAX.characters( +, 1) +SAX.pcdata(, 0) +SAX.characters( +, 1) +SAX.endElementNs(html, NULL, 'http://www.w3.org/1999/xhtml') +SAX.endDocument() diff --git a/result/noent/emptycdata.xml b/result/noent/emptycdata.xml new file mode 100644 index 00000000..bc98388a --- /dev/null +++ b/result/noent/emptycdata.xml @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<html xmlns="http://www.w3.org/1999/xhtml"> +<![CDATA[]]> +</html> |