diff options
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/it_html.t | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/it_html.t b/tests/it_html.t index 7e43faa..2d99cf3 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -49,6 +49,18 @@ is(  	"select tag without multiselect"  ); +is( +	div('arg' => "val: \x03, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n", "\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n"), +	"<div arg=\"val:  ,  ,  ,  ,  ,  , \x09, 
\">\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n</div>\n", +	"blank unprintable characters and illegal utf8 in attributes but not in normal text" +); + +is( +	div('arg' => "& \" < > \n '", "& \" < > \n '"), +	"<div arg=\"& " < > 
 '\">& \" < > \n '</div>\n", +	"use html entities in attributes but not in normal text", +); +  # XML generation  unset($GLOBALS['it_html']);  new it_html(array('htmltype' => "xhtml", 'tags' => "xmltest"));  |