!! end
@@ -5650,7 +5659,7 @@ parsoid={ "modes": ["html2wt"], "suppressErrors": true }
text
*text
[[foo]]
-*a [[foo]]
+*a [[foo]]
!! end
!! test
@@ -5658,7 +5667,7 @@ mw:ExtLink -vs- mw:WikiLink (T94723)
!! options
parsoid=html2wt
!! html/parsoid
-Bar
+BarBarBarBar
@@ -7110,6 +7119,25 @@ parsoid=html2wt
|}
!! end
+!! test
+Testing serialization after deletion in references
+!! options
+parsoid={
+ "modes": ["wt2wt"],
+ "changes": [
+ ["#x", "remove"]
+ ]
+}
+!! wikitext
+hi
ho
+
+
+!! wikitext/edited
+hi
+
+
+!! end
+
!!test
Testing serialization after deletion of table cells
!!options
@@ -7572,10 +7600,10 @@ Broken image links with HTML captions (bug 39700)
abc
!! html/parsoid
-
-
-
-
+
+
+
+
!! end
!! test
@@ -8432,7 +8460,7 @@ Blah blah blah
!! wikitext
#REDIRECT [[{{echo|Foo}}bar]]
!! html/parsoid
-
+
!! end
!! test
@@ -9912,7 +9940,7 @@ Parsoid: Page property magic word with magic word contents
!! wikitext
{{DISPLAYTITLE:''{{PAGENAME}}''}}
!! html/parsoid
-
+
!! end
!! test
@@ -9920,7 +9948,7 @@ Parsoid: Template-generated DISPLAYTITLE
!! wikitext
{{{{echo|DISPLAYTITLE}}:Foo}}
!! html/parsoid
-
+
!! end
!! test
@@ -11211,10 +11239,9 @@ parsoid=wt2html
|c
|}
!!html/parsoid
-
+
c
-
!!end
###
@@ -11572,7 +11599,7 @@ Templates: Support for templates generating attributes and content
foo
!! html/parsoid
-
foo
+
foo
!! end
!! test
@@ -12931,7 +12958,7 @@ parsoid=wt2html,wt2wt,html2html
This is a caption
!! html/parsoid
-This is a caption
+This is a caption
!! end
!! test
@@ -12942,7 +12969,7 @@ parsoid=wt2html,wt2wt,html2html
This is a caption
!! html/parsoid
-This is a caption
+This is a caption
!! end
!! test
@@ -12953,7 +12980,7 @@ parsoid=wt2html,wt2wt,html2html
!! html/parsoid
-
+
!! end
## Parsoid does not provide editing support for images where templates produce multiple image attributes.
@@ -13132,7 +13159,7 @@ Image with link parameter, wgExternalLinkTarget
!! config
wgExternalLinkTarget='foobar'
!! html/php
-
+
!! end
@@ -13166,7 +13193,7 @@ Image with link parameter, wgExternalLinkTarget, unnamed parameter
!! config
wgExternalLinkTarget='foobar'
!! html/php
-
+
!! end
@@ -13323,8 +13350,9 @@ Image with wiki markup in implicit alt
!! html/parsoid
-
-
+
+
+
!! end
!! test
@@ -13335,7 +13363,7 @@ Alt image option should handle most kinds of wikitext without barfing
This is the image caption
!! html/parsoid
-This is the image caption
+This is the image caption
!! end
###################
@@ -13562,7 +13590,7 @@ Frameless image caption with a free URL
!! html/parsoid
-
+
!! end
!! test
@@ -13672,7 +13700,7 @@ BUG 648: Frameless image caption with a link
!! html/parsoid
-
+
!! end
!! test
@@ -13683,7 +13711,7 @@ BUG 648: Frameless image caption with a link (suffix)
!! html/parsoid
-
+
!! end
!! test
@@ -13694,7 +13722,7 @@ BUG 648: Frameless image caption with an interwiki link
!! html/parsoid
-
+
!! end
!! test
@@ -13705,7 +13733,7 @@ BUG 648: Frameless image caption with a piped interwiki link
!! html/parsoid
-
+
!! end
!! test
@@ -13713,7 +13741,7 @@ T107474: Frameless image caption with
!! wikitext
[[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
!! html/parsoid
-
+
!! end
!! test
@@ -13724,7 +13752,7 @@ Escape HTML special chars in image alt text
!! html/parsoid
-
+
!! end
!! test
@@ -13735,7 +13763,7 @@ BUG 499: Alt text should have Ӓ, not &1234;
!! html/parsoid
-
+
!! end
!! test
@@ -13925,7 +13953,7 @@ Redirected image
!! wikitext
[[Image:Barfoo.jpg]]
!! html/php
-
!! end
@@ -14781,7 +14809,7 @@ Parsoid: Defaultsort (template-generated)
!! wikitext
{{{{echo|DEFAULTSORT}}:Foo}}
!! html/parsoid
-
+
!! end
###
@@ -16010,7 +16038,7 @@ Bug 2304: HTML attribute safety (dangerous template; 2309)
!! html/parsoid
-
+
!! end
!! test
@@ -16549,9 +16577,12 @@ array (
text
!! end
-# should be output literally since there is no matching tag that begins it
+## should be output literally since there is no matching tag that begins it
+## Don't expect parsoid to rt this form.
!! test
Parser hook: basic arguments using terminated empty elements (bug 2374)
+!! options
+parsoid=wt2html
!! wikitext
other stuff
@@ -16569,6 +16600,28 @@ array (
other stuff
</tag>
+!! html/parsoid
+
other stuff
+</tag>
+!! end
+
+## Don't expect parsoid to rt this form.
+!! test
+Parser hook: Don't allow unclosed extension tags
+!! options
+parsoid=wt2html
+!! wikitext
+test 123
+
+this is a '''test'''
+!! html/php
+
test <tag>123
+
this is a test
+
+!! html/parsoid
+
test <tag>123
+
+
this is a test
!! end
###
@@ -16891,7 +16944,7 @@ HTML nested bullet list, closed tags (bug 5497)
-!! html
+!! html/php
!! end
@@ -22205,8 +22268,11 @@ Entities in ref name
!! end
-# This test is wt2html only because we're permitting the serializer to produce
-# dirty diffs, normalizing the unclosed references to the self-closed version.
+## The output here may look funny, but it's what the php parser will do. The
+## unclosed references tag becomes escaped text, and then a new references
+## tag is auto-generated. The test is wt2html only because it roundtrips with
+## nowiki tags, and the auto-generated references tag is only dropped in
+## rtTestMode.
!! test
Generate references for unclosed references tag
!! options
@@ -22216,9 +22282,10 @@ afoo
!! html/parsoid
-
!! end
!! test
@@ -23748,11 +23815,11 @@ a
!! test
2. Leading whitespace in non-indent-pre contexts should not be escaped
!! options
-parsoid=htm2wt
+parsoid=html2wt
!! html/parsoid