From 1b00e01b85e834f361296e17382b5efbae4d4c1b Mon Sep 17 00:00:00 2001
From: "C. Scott Ananian" )
-!! options
-parsoid=wt2html,html2html
!! wikitext
a
foo
@@ -2079,8 +2077,6 @@ b
) -!! options -parsoid=wt2html,html2html !! wikitext afoo@@ -2494,8 +2490,6 @@ Bar !! test T17491: /in blockquote -!! options -parsoid=wt2html !! wikitextFoobarbaz quux @@ -2515,8 +2509,6 @@ Foobarbaz quux !! test T17491: /in blockquote (2) -!! options -parsoid=wt2html !! wikitextFoo@@ -2851,6 +2843,10 @@ Barack Obamabarbaz quuxof the United States !! end ## Remex doesn't account for fostered content. +## The difference between Parsoid and the PHP parser can be attributed to core +## commit 674e8388cba and 710618f89af in Parsoid's repo. Parsoid doesn't +## tokenize unmatched extension tags that shadow html tags as strings to ease +## an escaping mechanism. See the comment in `maybeExtensionTag`. !! test Handle broken pre-like tags (T66025) !! options @@ -2869,47 +2865,36 @@ parsoid=wt2html !! html/parsoid x-<pre
+
!! end +## Similar to the above, but shows the difference between extension and html tags !! test -Parsoid: handle pre with space after attribute -!! options -parsoid=wt2html +Less than in attribute position !! wikitext -
{{echo|foo}}-!! html/php -{{echo|foo}}+123+123+!! html/php+tidy +123+<div
123!! html/parsoid -{{echo|foo}}+123+ +<div
123!! end -# TODO / maybe: fix wt2wt for this !! test -Parsoid: Don't paragraph-wrap fosterable content +Parsoid: handle pre with space after attribute !! options parsoid=wt2html !! wikitext -{| -- - - - -|} -!! html - - - -
+!! html/parsoid +- - - +- - {{echo|foo}}+!! html/php +{{echo|foo}}-{{echo|foo}}!! end !! test @@ -2920,7 +2905,7 @@ Self-closed pre !! html/parsoid - + !! end !! test @@ -3533,8 +3518,6 @@ parsoid=wt2html,html2html !! test 3a. Indent-Pre and block tags (single-line html) -!! options -parsoid=wt2html,html2html !! wikitext afoo
bfoo@@ -3654,7 +3637,7 @@ array ( ) !! html/parsoid -a
+a
!! end !! test @@ -6170,6 +6153,15 @@ Normal text. '''''Bold italic text.''''' Normal text. !! end +!! test +Quotes wrapping HTML table +!! wikitext +'''''' +!! html/php+tidy +
hi +!! html/parsoid +
hi +!! end # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP # parser strips. The wikitext contains just the first half of the bold @@ -7058,7 +7050,7 @@ T107652: s in templates that also generate table cell attributes should be
hi !! html/parsoid -
+ Foo[1] Foo[1] !! end @@ -8825,7 +8817,7 @@ Interwiki links that cannot be represented in wiki syntax !! html/parsoid
- â foo
meatball:ok ok with fragment -ok ending with ? mark +ok ending with ? mark has query is just fragment
!! end @@ -8908,6 +8900,17 @@ parsoid=wt2html,wt2wt,html2htmllocal:local:local:local:mi:local:Foo
!! end +!! test +Interwiki link with percent encoded target +!! wikitext +[[:es:Nueva Guip%C3%BAzcoa|Nueva Guipúzcoa]] +!! html/php + +!! html/parsoid + +!! end + ### ### Interlanguage links ### Language links (so that searching for '### language' matches..) @@ -9566,10 +9569,32 @@ Handling html with a div self-closing tag !! html/parsoid - +- ++!! end + +!! test +Elements with solidus in various attribute positions +!! options +parsoid=wt2html,html2html +!! wikitext +ha+ +ha+ +ha+!! html/php+tidy +ha+ha+ha+!! html/parsoid +ha+ +ha+ +ha!! end !! test @@ -9979,9 +10004,9 @@ Multiple list tags generated by templatesc !! html/parsoid -a - b - c +a +b +c !! end !! test @@ -10228,11 +10253,27 @@ parsoid=wt2html,wt2wt,html2html!! html/parsoid - +
- a
- b
!! end +# Output is ugly because of all the misnested tag fixups. +!! test +3. List embedded in a formatting tag in a misnested way +!! wikitext + + +** 123 +!! html/php+tidy +
- a
- b
+
+!! html/parsoid + + +
- 123
+!! end + ### ### Magic Words ### @@ -12042,7 +12083,7 @@ Un-closed
- 123
!! html/php !! html/parsoid - + !! end ## We used to, but no longer wt2wt this test since the default serializer @@ -12061,6 +12102,10 @@ some *stuff *here + +some * stuff +* here +can have stuff ===here=== !! html/php @@ -12069,6 +12114,10 @@ some+
- stuff
- here
+
+some* stuff +
- here
here
!! html/parsoid @@ -12079,7 +12128,11 @@ some-
- stuff
- here
here
+ +some* stuff
++ +
- here
here
!! end @@ -12734,7 +12787,7 @@ parsoid=wt2html |c |} !!html/parsoid -