Fixed CDATA parsing bug
parent
c5f760da65
commit
bd42403835
|
@ -42,3 +42,4 @@ SYMBOL: xml-file
|
||||||
] unit-test
|
] unit-test
|
||||||
[ "foo" ] [ "<x y='foo'/>" string>xml "y" <name-tag> over
|
[ "foo" ] [ "<x y='foo'/>" string>xml "y" <name-tag> over
|
||||||
at swap "z" <name-tag> >r tuck r> swap set-at T{ name f "blah" "z" f } swap at ] unit-test
|
at swap "z" <name-tag> >r tuck r> swap set-at T{ name f "blah" "z" f } swap at ] unit-test
|
||||||
|
[ "foo" ] [ "<boo><![CDATA[foo]]></boo>" string>xml children>string ] unit-test
|
||||||
|
|
|
@ -137,7 +137,7 @@ SYMBOL: ns-stack
|
||||||
CHAR: > expect ;
|
CHAR: > expect ;
|
||||||
|
|
||||||
: take-cdata ( -- string )
|
: take-cdata ( -- string )
|
||||||
"[CDATA[" expect-string "]]>" take-string next ;
|
"[CDATA[" expect-string "]]>" take-string ;
|
||||||
|
|
||||||
: take-directive ( -- directive )
|
: take-directive ( -- directive )
|
||||||
CHAR: > take-char <directive> next ;
|
CHAR: > take-char <directive> next ;
|
||||||
|
|
Loading…
Reference in New Issue