Test improperly quoted attribute values in HTML tags and table cells
authorGabriel Wicke <gwicke@wikimedia.org>
Fri, 25 Jan 2013 01:20:50 +0000 (17:20 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Fri, 25 Jan 2013 01:20:50 +0000 (17:20 -0800)
Change-Id: Iab14adcb81e32bcea2b950c7f4e68ecd69ff19d2

tests/parser/parserTests.txt

index 8f297ad..df3a9e8 100644 (file)
@@ -13453,6 +13453,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