From 26185bb4f1824d3cc96824d94f35cb241d344028 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 14 Oct 2025 16:48:37 +0200 Subject: Simplify js() function and fix boolean attributes like 'async' => true, add tests for it --- test/it_html.t | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/it_html.t') 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'), "\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'), "\n", "escape js script content with CDATA in xml mode"); # XML generation unset($GLOBALS['it_html']); -- cgit v1.2.3