From: C. Scott Ananian Date: Thu, 4 Apr 2013 22:27:50 +0000 (-0400) Subject: Move table parsing tests from Parsoid's whitelist into upstream parserTests. X-Git-Tag: 1.31.0-rc.0~20091^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=1367671e066ef046d67b26a96fa7a1f441158baf;p=lhc%2Fweb%2Fwiklou.git Move table parsing tests from Parsoid's whitelist into upstream parserTests. A few more differences between Parsoid and the PHP parser. Change-Id: Ic12c93fef905b65ffa459bb15920ea7edd9f2238 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 0d7b4e21a4..55605d05f2 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -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 +
!! end # A table with nothing but a caption is invalid XHTML, we might want to render # this as

caption

!! 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 +!! 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 +
caption
!! end !! test