Make sure Parsoid doesn't get snobbish and treat non-html5 tags badly.
authorSubramanya Sastry <ssastry@wikimedia.org>
Wed, 6 Mar 2013 00:11:44 +0000 (18:11 -0600)
committerSubramanya Sastry <ssastry@wikimedia.org>
Wed, 6 Mar 2013 00:11:44 +0000 (18:11 -0600)
* A recent patch to handle extension tags broke handling of html4
  tags like <big>, <center>, etc.
* The new test make sure we catch such regressions before going to
  RT testing.

Change-Id: Ia1f9247d2172d2d4c8d39cce838f896cf9e81fd7

tests/parser/parserTests.txt

index 492edb6..cbb687a 100644 (file)
@@ -512,6 +512,27 @@ The ''[[Main Page]]'''s talk page.
 </p>
 !! end
 
+###
+### Non-html5 tags
+###
+
+!! test
+Non-html5 tags should be accepted
+!! input
+<center>''foo''</center>
+<big>''foo''</big>
+<font>''foo''</font>
+<strike>''foo''</strike>
+<tt>''foo''</tt>
+!! result
+<center><i>foo</i></center>
+<p><big><i>foo</i></big>
+<font><i>foo</i></font>
+<strike><i>foo</i></strike>
+<tt><i>foo</i></tt>
+</p>
+!! end
+
 ###
 ### <nowiki> test cases
 ###