summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2012-08-13 13:50:53 +0000
committerNathan Gass2012-08-13 13:50:53 +0000
commite72d6723cd8a290d53ccf08f5fed9e31d7aa832e (patch)
tree99b6eaeddc5469269a3e322bc4c59cbbb76cdbb2
parent63905bb0a9c91e6ff61bcc5896246ec9a8d632bc (diff)
downloaditools-e72d6723cd8a290d53ccf08f5fed9e31d7aa832e.tar.gz
itools-e72d6723cd8a290d53ccf08f5fed9e31d7aa832e.tar.bz2
itools-e72d6723cd8a290d53ccf08f5fed9e31d7aa832e.zip
add test for unprintable characters in attribute *name*
-rwxr-xr-xtests/it_html.t6
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",