summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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",