* Thanks @SCadilhac
This commit is contained in:
Olof hagsand 2018-10-28 11:15:37 +01:00
parent 61869c8d44
commit 906763317b
5 changed files with 40 additions and 29 deletions

View file

@ -43,5 +43,11 @@ EOF
new "xml optional encode single and double quote"
expecteof "$PROG" 0 "$XML" "^<message>To allow attribute values to contain both single and double quotes, the apostrophe or single-quote character ' may be represented as ' and the double-quote character as \"</message>$"
new "Double quotes for attributes"
expecteof "$PROG" 0 '<x a="t"/>' '^<x a="t"/>$'
new "Single quotes for attributes (returns double quotes but at least parses right)"
expecteof "$PROG" 0 "<x a='t'/>" '^<x a="t"/>$'
rm -rf $dir