Merge "Test improperly quoted attribute values in HTML tags and table cells"
authorSubramanya Sastry <ssastry@wikimedia.org>
Fri, 25 Jan 2013 18:15:45 +0000 (18:15 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 25 Jan 2013 18:15:45 +0000 (18:15 +0000)
tests/parser/parserTests.txt

index 8a9791b..e6d6c2c 100644 (file)
@@ -13568,6 +13568,29 @@ HTML tag with 'unnecessary' entity encoding in attributes
 </p>
 !! end
 
+!! test
+HTML tag with broken attribute value quoting
+!! input
+<span title="Hello world>Foo</span>
+!! result
+<p><span>Foo</span>
+</p>
+!! end
+
+!! test
+Table with broken attribute value quoting
+!! input
+{|
+| title="Hello world|Foo
+|}
+!! result
+<table>
+<tr>
+<td>Foo
+</td></tr></table>
+
+!! end
+
 TODO:
 more images
 more tables