Move table parsing tests from Parsoid's whitelist into upstream parserTests.
authorC. Scott Ananian <cscott@cscott.net>
Thu, 4 Apr 2013 22:27:50 +0000 (18:27 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Fri, 5 Apr 2013 16:46:42 +0000 (12:46 -0400)
A few more differences between Parsoid and the PHP parser.

Change-Id: Ic12c93fef905b65ffa459bb15920ea7edd9f2238

tests/parser/parserTests.txt

index 0d7b4e2..55605d0 100644 (file)
@@ -3163,16 +3163,30 @@ Plain ''italic'''s plain
 # is the bare minimun required by the spec, see:
 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
 !! test
-A table with no data.
+A table with no data. (php)
+!! options
+php
+!! input
+{||}
+!! result
+!! end
+# Parsoid team replies: empty table tags are legal in HTML5
+!! test
+A table with no data. (parsoid)
+!! options
+parsoid
 !! input
 {||}
 !! result
+<table></table>
 !! end
 
 # A table with nothing but a caption is invalid XHTML, we might want to render
 # this as <p>caption</p>
 !! test
-A table with nothing but a caption
+A table with nothing but a caption (php)
+!! options
+php
 !! input
 {|
 |+ caption
@@ -3182,6 +3196,18 @@ A table with nothing but a caption
 <caption> caption
 </caption><tr><td></td></tr></table>
 
+!! end
+# Parsoid team replies: table with only a caption is legal in HTML5
+!! test
+A table with nothing but a caption (parsoid)
+!! options
+parsoid
+!! input
+{|
+|+ caption
+|}
+!! result
+<table><caption> caption</caption></table>
 !! end
 
 !! test