Don't bail on single-line definition list due to excess close tags.
[lhc/web/wiklou.git] / tests / parser / parserTests.txt
index a94b276..0ba60aa 100644 (file)
@@ -3682,6 +3682,32 @@ Definition lists: self-closed tag
 
 !! end
 
+!! test
+Definition lists: ignore colons inside tags
+!! wikitext
+;one <b>two : tag <i>fun:</i>:</b>: def
+!! html
+<dl><dt>one <b>two&#160;: tag <i>fun:</i>:</b></dt>
+<dd> def</dd></dl>
+
+!! end
+
+!! test
+Definition lists: excess closed tags
+!! wikitext
+;one</b>two : bad tag fun
+!! html/php+tidy
+<dl>
+<dt>onetwo&#160;</dt>
+<dd>bad tag fun</dd>
+</dl>
+!! html/parsoid
+<dl>
+<dt>onetwo</dt>
+<dd>bad tag fun</dd>
+</dl>
+!! end
+
 !! test
 Bug 11748: Literal closing tags
 !! wikitext