pike.git/
lib/
modules/
Parser.pmod/
XML.pmod/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2005-10-31
2005-10-31 11:38:07 by Martin Nilsson <mani@lysator.liu.se>
f989a0d3be79da10bd8c9f1f8ac475596fa577fa (
5
lines) (+
4
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Test text node joining
Rev: lib/modules/Parser.pmod/XML.pmod/testsuite.in:1.6
1:
START_MARKER
-
// $Id: testsuite.in,v 1.
5
2004
/
05
/
02
18
:
31
:
43
nilsson Exp $
+
// $Id: testsuite.in,v 1.
6
2005
/
10
/
31
11
:
38
:
07
nilsson Exp $
// DOM
16:
[[ "<a>hej &x.y; hopp</a>" ]]) test_eq([[ (string)Parser.XML.Tree.parse_input("<a><b> <c/> </b></a>") ]], [[ "<a><b> <c/> </b></a>" ]])
+
test_eq([[ Parser.XML.Tree.parse_input("<p>a<![CDATA[b]""]>c</p>")[0][0]->get_text() ]],
+
[[ "abc" ]])
// NSTree