summaryrefslogtreecommitdiff
path: root/test/it_html.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/it_html.t')
-rwxr-xr-xtest/it_html.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/it_html.t b/test/it_html.t
index 15f444d..20ab65f 100755
--- a/test/it_html.t
+++ b/test/it_html.t
@@ -260,6 +260,18 @@ is(
);
is(
+ it_html::sanitize('<a href="http://search.ch/"><strong>foo</strong></a>'),
+ '<a href="http://search.ch/"><strong>foo</strong></a>',
+ 'it_html::sanitize handle nesting of tags inside <a>'
+);
+
+is(
+ it_html::sanitize('<a href="mailto:neuman@example.com">foo</a>'),
+ '<a href="mailto:neuman@example.com">foo</a>',
+ 'it_html::sanitize handle mailto links'
+);
+
+is(
it_html::sanitize("<a href='http://search.ch/'>foo</a>"),
'<a href="http://search.ch/">foo</a>',
'TODO it_html::sanitize handle anchors with single quotes at attribute value'