From: Subramanya Sastry Date: Wed, 26 Sep 2012 23:27:40 +0000 (-0500) Subject: Added tests to spec out behavior of html with self-closing tags. X-Git-Tag: 1.31.0-rc.0~22261 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=96572ab88fa35a88266188a1ad774701ceaa6c98;p=lhc%2Fweb%2Fwiklou.git Added tests to spec out behavior of html with self-closing tags. Change-Id: I370bc0ddd2c838bb64239e3c075fc941e55f30b7 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index dacc726ad5..0ba21d9487 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2852,6 +2852,47 @@ Failing to transform badly formed HTML into correct XHTML

!!end +!! test +Handling html with a div self-closing tag +!! input +
+
+
+
+
+
+!! result +

<div title /> +<div title/> +

+
+

<div title=bar /> +<div title=bar/> +

+
+
+ +!! end + +!! test +Handling html with a br self-closing tag +!! input +
+
+
+
+
+
+!! result +


+
+
+
+
+
+

+!! end + !! test Horizontal ruler (should it add that extra space?) !! input