Fixed CDATA parsing bug
parent
c5f760da65
commit
bd42403835
|
@ -42,3 +42,4 @@ SYMBOL: xml-file
|
|||
] unit-test
|
||||
[ "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
|
||||
[ "foo" ] [ "<boo><![CDATA[foo]]></boo>" string>xml children>string ] unit-test
|
||||
|
|
|
@ -137,7 +137,7 @@ SYMBOL: ns-stack
|
|||
CHAR: > expect ;
|
||||
|
||||
: take-cdata ( -- string )
|
||||
"[CDATA[" expect-string "]]>" take-string next ;
|
||||
"[CDATA[" expect-string "]]>" take-string ;
|
||||
|
||||
: take-directive ( -- directive )
|
||||
CHAR: > take-char <directive> next ;
|
||||
|
|
Loading…
Reference in New Issue