From ab4709cbff86e16a0f343cf3f8d44f05d1e53dc5 Mon Sep 17 00:00:00 2001 From: David Flatz Date: Wed, 18 Oct 2017 14:33:49 +0200 Subject: entity-encode tabs and carriage returns like new lines in attributes so that they won't get replaced by a space character when parsed see https://www.w3.org/TR/2004/REC-xml-20040204/#AVNormalize --- tests/it_html.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/it_html.t') diff --git a/tests/it_html.t b/tests/it_html.t index 77c441e..875cccd 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -52,8 +52,8 @@ is( ); is( - div(array('arg' => "val: \x03, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n", "\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n")), - "
\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n
\n", + div(array('arg' => "val: \x03, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \t, \n, \r", "\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \t, \n, \r")), + "
\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \t, \n, \r
\n", "blank unprintable characters and illegal utf8 in attributes but not in normal text" ); -- cgit v1.2.3