#!/www/server/bin/php -qC "html")); is( a(array('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => ""), "bar"), 'bar', "tag with attributes" ); is( div(), "
\n", "empty script tag" ); is( img(array('src' => "foo.png")), '
',
"empty link tag"
);
is(
tag('link'),
"\n",
"empty link tag"
);
is(
tag('link', "foo"),
"foo\n",
"link tag with data"
);
is(
it::replace('\n+\s*' => "", select('name' => "gna", 'multiple' => true, '1:foo,2:bar', '1,2')),
'',
"select tag with multiselect",
);
is(
it::replace('\n+\s*' => "", select('name' => "gna", array("1" => "foo", "2" => 'bar', '1,2' => "qux"), '1,2')),
'',
"link tag without multiselect",
);
# XML generation
unset($GLOBALS['it_html']);
new it_html(array('htmltype' => "xhtml", 'tags' => "xmltest"));
is(
xmltest(),
"
',
"it_html inheritance"
);
is(
it_html::sanitize(" \r \n " . ' swisspics posted < < ä & yesterday a photo tag missmatch:
