summaryrefslogtreecommitdiff
path: root/test/it_html.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/it_html.t')
-rwxr-xr-xtest/it_html.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/it_html.t b/test/it_html.t
index 13e2bc5..90af4b6 100755
--- a/test/it_html.t
+++ b/test/it_html.t
@@ -81,6 +81,8 @@ is(
"leave legal utf8 intact"
);
+is(js(['async' => true], 'foo'), "<script async>foo</script>\n", 'boolean attribute for js script tag');
+
unset($GLOBALS['debug_utf8check']);
is(
div(['arg' => "value \xc2", "content"]),
@@ -136,6 +138,7 @@ is(
"xhtml doctype"
);
+is(js('foo'), "<script type=\"text/javascript\"><!--//--><![CDATA[//><!--\nfoo\n//--><!]]></script>\n", "escape js script content with CDATA in xml mode");
# XML generation
unset($GLOBALS['it_html']);