diff options
author | Nathan Gass | 2012-08-13 13:50:53 +0000 |
---|---|---|
committer | Nathan Gass | 2012-08-13 13:50:53 +0000 |
commit | e72d6723cd8a290d53ccf08f5fed9e31d7aa832e (patch) | |
tree | 99b6eaeddc5469269a3e322bc4c59cbbb76cdbb2 /tests/it_html.t | |
parent | 63905bb0a9c91e6ff61bcc5896246ec9a8d632bc (diff) | |
download | itools-e72d6723cd8a290d53ccf08f5fed9e31d7aa832e.tar.gz itools-e72d6723cd8a290d53ccf08f5fed9e31d7aa832e.tar.bz2 itools-e72d6723cd8a290d53ccf08f5fed9e31d7aa832e.zip |
add test for unprintable characters in attribute *name*
Diffstat (limited to 'tests/it_html.t')
-rwxr-xr-x | tests/it_html.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/it_html.t b/tests/it_html.t index 2ed151c..c8e6fd2 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -58,6 +58,12 @@ is( ); is( + div("arg\x03\x0e\x0f\xc2\x80\xc2\x9fendarg" => "value", "content"), + "<div arg\x03\x0e\x0f\xc2\x80\xc2\x9fendarg=\"value\">content</div>\n", + "don't blank unprintable characters and illegal utf8 in attribute names" +); + +is( div('arg' => "abc äüö éá© œàè îôÇ xyz", "abc äüö éá© œàè îôÇ xyz"), "<div arg=\"abc äüö éá© œàè îôÇ xyz\">abc äüö éá© œàè îôÇ xyz</div>\n", "leave legal utf8 intact", |