Fixing XML bug

db4
Daniel Ehrenberg 2007-12-23 23:21:44 -05:00
parent 0de2e117f5
commit 0e13e2e92c
1 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ M: attrs set-at
M: attrs assoc-size attrs-alist length ;
M: attrs new-assoc drop V{ } new <attrs> ;
M: attrs >alist attrs-alist >alist ;
M: attrs >alist attrs-alist ;
: >attrs ( assoc -- attrs )
dup [
@ -130,9 +130,9 @@ M: xml clone
[ delegate clone ] keep xml-after clone <xml> ;
M: xml like
swap dup xml? [
swap dup xml? [ nip ] [
dup tag? [ tag>xml ] [ seq>xml ] if
] unless ;
] if ;
! tag with children=f is contained
: <contained-tag> ( name attrs -- tag )