From 96572ab88fa35a88266188a1ad774701ceaa6c98 Mon Sep 17 00:00:00 2001 From: Subramanya Sastry Date: Wed, 26 Sep 2012 18:27:40 -0500 Subject: [PATCH] Added tests to spec out behavior of html with self-closing tags. Change-Id: I370bc0ddd2c838bb64239e3c075fc941e55f30b7 --- tests/parser/parserTests.txt | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) 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 -- 2.20.1