Merge "Make sure Parsoid doesn't get snobbish and treat non-html5 tags badly."
authorGWicke <gwicke@wikimedia.org>
Mon, 11 Mar 2013 16:56:07 +0000 (16:56 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 11 Mar 2013 16:56:07 +0000 (16:56 +0000)
1  2 
tests/parser/parserTests.txt

@@@ -512,6 -512,27 +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
  ###
@@@ -7752,7 -7773,7 +7773,7 @@@ http://example.com [[Image:foobar.jpg]
  !!end
  
  !! test
 -Short headings with trailing space should match behaviour of Parser::doHeadings (bug 19910)
 +Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
  !! input
  === 
  The line above must have a trailing space!
@@@ -9863,7 -9884,7 +9884,7 @@@ section=
  ==marked==
  !!end
  
 -# Test behaviour of bug 19910
 +# Test behavior of bug 19910
  !! test
  Sectiion with all-equals
  !! options