From: Arlo Breault
a
b
foo!! html a
foob
foo- !! html+tidy
a
foo
b
@@ -2118,15 +2106,13 @@ c d e xfoo
a
b c d e
-x
z -
+xz
!! end !! test @@ -2156,7 +2142,6 @@ b
@@ -2239,7 +2224,6 @@ No paragraph necessary for SOL transparent template
!! html/php
Blah
- !! end !! test @@ -2509,7 +2490,6 @@ Bar
Bar
- !! end !! test @@ -2523,7 +2503,6 @@ FooFoo bar baz quux
!! html/parsoid ad @@ -23753,7 +23407,6 @@ language=sr [[ÐаÑоÑека:Foobar.jpg|thumb|-{R|caption:}-]] !! html/php - !! html/parsoid !! end @@ -23766,7 +23419,6 @@ language=zh variant=zh-cn [[File:Foobar.jpg|thumb|-{|zh-cn:blog (hk: -{zh-hans|WEBJOURNAL}-, tw: -{zh-hans|WEBLOG}-)}-]] !! html/php - !! html/parsoid !! end @@ -23798,7 +23450,6 @@ File:foobar.jpg|{{Test|unamedParam|alt=-{R|param}-}}|alt=galleryalt - !! html/parsoidFoo
barbaz quux @@ -2539,7 +2518,6 @@ T17491: /in blockquote (2) !! htmlFoo- !! html+tidybarbaz quux@@ -2551,7 +2529,6 @@ T17491: /Foo
barbaz quuxin blockquote (2)Bluescreen of WikiDeath!! htmlBluescreen of WikiDeath- !! end !! test @@ -2560,7 +2537,6 @@ T17491: /in blockquote (2)Narrow screen goodies!! htmlNarrow screen goodies- !! end !! test @@ -2569,7 +2545,6 @@ T17491: /in blockquote (2)Narrow screen goodies!! htmlNarrow screen goodies- !! end !! test @@ -2578,7 +2553,6 @@ Entities inside<!! html<- !! end !! test @@ -2587,7 +2561,6 @@ Entities insideNarrow screen goodies!! htmlNarrow screen goodies- !! end !! test @@ -2608,7 +2581,6 @@ Entities inside<nowiki>Foo</nowiki>- !! end !! test @@ -2617,7 +2589,6 @@ Entities inside{{#tag:pre|Foo→bar }} !! html/phpFoo →bar- !! html/parsoidFoo âbar
!! end @@ -2726,8 +2697,7 @@ Templates: Indent-Pre: 1a. Templates that break a line should suppress!! wikitext {{echo|}} !! html - -!!end +!! end !!test Templates: Indent-Pre: 1b. Templates that break a line should suppress@@ -2850,7 +2820,6 @@ parsoid=wt2html,html2html two">hi!! html/phphi- !! html/parsoidhi!! end @@ -2882,7 +2851,6 @@ parsoid=wt2html !! html/phpx<pre
- !! html/php+tidyx<pre@@ -2916,7 +2884,6 @@ parsoid=wt2html
{{echo|foo}}!! html/php{{echo|foo}}- !! html/parsoid{{echo|foo}}!! end @@ -2927,7 +2894,6 @@ Self-closed pre !! html/php - !! html/parsoid !! end @@ -3403,7 +3369,6 @@ cfoo bar - !!end !!test @@ -3419,7 +3384,6 @@ c- !!end !!test @@ -3436,7 +3400,6 @@ c foo - !!end !!test @@ -3453,7 +3416,6 @@ c bar - !! html/parsoid b a@@ -3512,7 +3474,6 @@ a
- !! end !! test @@ -3551,7 +3512,6 @@ parsoid=wt2html,html2htmlbam- !! html/parsoid- !!end ## NOTE: the leading white-space chars on empty line are significant @@ -3999,7 +3955,6 @@ HTML-pre: 2: indented text
@@ -3601,7 +3561,6 @@ parsoid=wt2html,html2html a foo
bfoo- !! html/parsoida foo
b
foo@@ -3725,7 +3684,6 @@ array (hi!! html/phphi- !! html/parsoidhi!! end @@ -3744,7 +3702,6 @@ Render paragraphs when indent-pre is suppressed in blocklevelsbar
- !!end !!test @@ -3763,7 +3720,6 @@ Render paragraphs when indent-pre is suppressed in blocklevelsfoo foo- !!end !!test @@ -4020,7 +3975,6 @@ HTML-pre: 3: other wikitext '' no-italic '' [[ NoLink ]] - !! html/parsoid* foo # bar @@ -4171,7 +4125,6 @@ T13748: Literal closing tagstest 2 test test test test test - !! end !! test @@ -4187,7 +4140,6 @@ Definition and unordered list using wiki syntax nested in unordered list using hdescription - !! end !! test @@ -4213,7 +4165,6 @@ Nested definition lists using html syntax
- unordered
- !! end !! test @@ -4349,7 +4300,6 @@ Definition Lists: Hacky use to indent tables (WS-insensitive)
- x
- a
- b
- !! html/parsoid a - !! end !!test @@ -4470,8 +4419,6 @@ Definition Lists: Nesting: Multi-level (Parsoid only) - - !! end @@ -4821,7 +4768,6 @@ Definition Lists: colons and tables 1
@@ -4415,7 +4365,6 @@ Table / list interaction: indented table with lists in table contents a c
- d
- !! html/parsoid y - !! end !! test @@ -6606,7 +6539,6 @@ Accept "!!" in templates
- !! end !! test @@ -6365,7 +6308,6 @@ A table with nothing but a caption
@@ -6281,10 +6227,8 @@ parsoid=wt2html !! wikitext {||} !! html/php - !! html/parsoid - !! end !! test @@ -6340,7 +6284,6 @@ parsoid=wt2html
foo - !! html/parsoid
caption !! end @@ -6385,7 +6327,6 @@ A table with caption with default-spaced attributes and a table row
caption - !! end !! test @@ -6406,7 +6347,6 @@ A table with captions with non-default spaced attributes and a table row foo - !! end !! test @@ -6431,7 +6371,6 @@ Table td-cell syntax variations foo style='color:red;' baz - !! end !! test @@ -6452,7 +6391,6 @@ Simple table3 4 - !! end !! test @@ -6471,7 +6409,6 @@ Simple table but with multiple dashes for row wikitext- !! end !! test @@ -6542,7 +6479,6 @@ Multiplication table bar 10 15 - !! end !! test @@ -6557,7 +6493,6 @@ Accept "||" in table headingsh1 h2 - !! end !! test @@ -6572,7 +6507,6 @@ Accept "!!" in table dataFoo!! - !! html/parsoid
@@ -6591,7 +6525,6 @@ Accept "||" in indented table headings Foo!! h1 h2 a b c - !! html/parsoid- !! html/parsoid
@@ -6626,7 +6558,6 @@ b!!c a b c b!!c
- !! end !!test @@ -6684,7 +6614,6 @@ Accept "| !" at start of line in tables (ignore !-attribute)
a @@ -6668,7 +6599,6 @@ Accept empty attributes in td/th cells (td/th cells starting with leading ||) a - !!end !!test @@ -6723,7 +6652,6 @@ Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present bar -1 - !!end !! test @@ -6751,7 +6679,6 @@ Table rowspanCell 3, row 2 - !! end !! test @@ -6783,7 +6710,6 @@ Nested tablethe original table again - !! end !! test @@ -6797,7 +6723,6 @@ Invalid attributes in table cell (T3830)- !! end !! test @@ -6817,7 +6742,6 @@ Table cell attributes: Pipes protected by nowikis should be treated as a plain c broken title="foo|" bar - !! html/parsoid- !! html/parsoid
bar @@ -6844,7 +6768,6 @@ parsoid=wt2html,html2html- !! html/parsoid
@@ -6862,7 +6785,6 @@ Element attributes with double ! should not be broken up by hi haho- !! html/parsoid
@@ -6880,7 +6802,6 @@ Element attributes with double ! should not be broken up by hi haho hi- !! html/parsoid
@@ -6902,7 +6823,6 @@ parsoid=wt2html histyle="color: red !important;" data-contrived="put this here foo - !! html/parsoid
@@ -6961,7 +6881,6 @@ parsoid=wt2html style="color: red !important;" data-contrived="put this here foo 2 - !! end !! test @@ -7037,7 +6955,6 @@ parsoid={
@@ -7020,7 +6939,6 @@ parsoid={ Foo Bar Baz - !! html/parsoid- !! html/parsoid
Foo @@ -7065,7 +6982,6 @@ parsoid={Bar Foo and Baz - !! html/parsoid
Foo Bar Foo and Baz @@ -7093,7 +7009,6 @@ parsoid={ Bar Foo and Baz - !! end !! test @@ -7154,7 +7068,6 @@ parsoid=wt2html,html2html
@@ -7134,7 +7049,6 @@ parsoid=wt2html,html2html Foo Bar Foo and Baz foo - !! end !! test @@ -7170,7 +7083,6 @@ parsoid=wt2html,html2html foo - !! html/parsoid hello - !! end !! test @@ -7234,7 +7145,6 @@ b
@@ -7197,7 +7109,6 @@ Wikitext table with a lot of comments hello b
- !! end !! test @@ -7251,7 +7161,6 @@ Table cell with a single commenta - !! end !! test @@ -7269,14 +7178,12 @@ Table-cell after a comment-only-empty-lineb - !! html/parsoid- !! end !! test @@ -7299,7 +7206,6 @@ Build table with {{!}}
a b data second data - !! end !! test @@ -7334,7 +7240,6 @@ Build table with pipe as datadata with | second data with | - !! end !! test @@ -7361,7 +7266,6 @@ Build table with wikilinkdata second data link|text with pipe - !! end # The expected HTML structure in this test is debatable. The PHP parser does @@ -7396,7 +7300,6 @@ a a - !! html/php+tidy @@ -7423,7 +7326,6 @@ parsoid=wt2html,html2html- !! html/php+tidy
- a
- a
@@ -7477,8 +7379,7 @@ parsoid=wt2html,wt2wt
baz - quux -
+quux
!! end !! test @@ -7519,7 +7420,6 @@ parsoid=wt2html,wt2wtbaz quux - !! html/parsoid- !! html/parsoid
foo bar @@ -9686,8 +9586,7 @@ Handling html with a div self-closing tag -+ !! html/parsoid @@ -9768,8 +9667,7 @@ foo-
-foo
bar -
+foobar
!! end !! test @@ -9778,7 +9676,6 @@ Horizontal ruler -- 4+ dashes render hr ---- !! html
- !! end !! test @@ -9787,7 +9684,6 @@ Horizontal ruler -- eats additional dashes on the same line --------- !! html
- !! end !! test @@ -9798,7 +9694,6 @@ Horizontal ruler -- does not collapse dashes on consecutive lines !! html
- !! end !! test @@ -9816,10 +9711,8 @@ Horizontal ruler -- Supports content following dashes on same line ---- Foo !! html
Foo - !! html+tidy -Foo -
+Foo
!! end ### @@ -10115,12 +10008,10 @@ Multiple list tags generated by templates - !! html+tidya b - c - +c !! html/parsoida b @@ -10234,8 +10125,7 @@ parsoid=wt2html,wt2wtnot a li-hack - -!!end +!! end !! test Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines @@ -10668,7 +10558,6 @@ parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SUBJECTSPACE}} !! html/* - !! end !! test @@ -10930,7 +10819,6 @@ parsoid={ "modes": ["wt2html","wt2wt"], "normalizePhp": true } !! wikitext {{SCRIPTPATH}} !! html/* - !! end !! test @@ -11089,7 +10977,6 @@ Namespace 0 {{ns:0}} (T6783) !! wikitext {{ns:0}} !! html - !! end !! test @@ -11097,7 +10984,6 @@ Namespace 0 {{ns:00}} (T6783) !! wikitext {{ns:00}} !! html - !! end !! test @@ -11673,7 +11559,6 @@ Template with thumb image (with link in description) {{paramtest|param=[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}} !! html/php This is a test template with parameter - !! html+tidyThis is a test template with parameter
!! html/parsoid @@ -11709,7 +11594,6 @@ T2553: link with two variables in a piped link[[{{{1}}}|{{{2}}}]] - !! html/parsoid
@@ -11737,7 +11621,6 @@ Abort table cell attribute parsing on wikilink [[{{{1}}}|{{{2}}}]] testing="two" |three four - !! end !! test @@ -11906,7 +11788,6 @@ foo
testing two |three four @@ -11886,7 +11769,6 @@ foo {{table}}3 4 3 4 - !! end !! test @@ -12143,7 +12024,6 @@ Unbalanced includeonly and noinclude tagsd</includeonly></includeonly> - !!end !! article @@ -12162,7 +12042,6 @@ T8563: Edit link generation for section shown by!! html Includeonly section[edit]
Section T-1[edit]
- !! end # Uses same input as the contents of [[Template:Includeonly section]] @@ -12188,7 +12067,6 @@ T8563: Edit link generation for section suppressed by==Section 1== !! html Section 1[edit]
- !! end !! test @@ -12246,7 +12124,6 @@ some* stuff
- here
here
- !! html/parsoidhu
@@ -12260,7 +12137,6 @@ some* stuff
- here
here
- !! end # TODO: test with DOM fragment reuse! @@ -12407,7 +12283,6 @@ Parsoid: Merge double tds in nested transclusion content (T52603)a - !!end ### @@ -13021,7 +12896,6 @@ Templates: 2. Inside a block tag !! htmlFooFoo- !! html+tidyFoo@@ -13061,7 +12935,6 @@ Templates: P-wrapping: 1c. Templates on consecutive linesFoo
Foo
barbaz- !! html+tidyFoo
@@ -13121,7 +12994,6 @@ Templates: Block Tags: 1. Multiple template uses {{echo|
Foo}}bar{{echo|baz}} !! htmlFoobarbaz- !!end !!test @@ -13130,7 +13002,6 @@ Templates: Block Tags: 2. Back-to-back template uses {{echo|Foo}}{{echo|bar}} !! htmlFoobar- !!end ## Parsoid drops empty elements in templates. @@ -13223,7 +13094,6 @@ Templates: HTML Tag: 1. Generation of HTML attr. keyfoo!! htmlfoo- !!end !!test @@ -13232,7 +13102,6 @@ Templates: HTML Tag: 2. Generation of HTML attr. valuefoo!! htmlfoo- !!end !!test @@ -13241,7 +13110,6 @@ Templates: HTML Tag: 3. Generation of HTML attr key and valuefoo!! htmlfoo- !!end !!test @@ -13250,7 +13118,6 @@ Templates: HTML Tag: 4. Generation of starting piece of HTML attr valuefoo!! htmlfoo- !!end !!test @@ -13259,7 +13126,6 @@ Templates: HTML Tag: 5. Generation of middle piece of HTML attr valuefoo!! htmlfoo- !!end !!test @@ -13268,7 +13134,6 @@ Templates: HTML Tag: 6. Generation of end piece of HTML attr valuefoo!! htmlfoo- !!end # SSS FIXME: While it is great we added support for all this, @@ -13280,7 +13145,6 @@ Templates: HTML Tag: 7. Generation of partial attribute key stringfoo!! htmlfoo- !!end !! test @@ -13289,7 +13153,6 @@ Templates: HTML Tag: 8. Template-generated attribute (k=v)bar!! htmlbar- !!end !! test @@ -13298,7 +13161,6 @@ Templates: HTML Tag: 9. Multiple template-generated attributesbar!! htmlbar- !!end !! test @@ -13317,7 +13179,6 @@ Templates: Support for templates generating attributes and content- !! html/parsoid bar - !! html/parsoid
@@ -13351,7 +13212,6 @@ Table cell with attribute before expanded attribute foo!! html/phpfoo- !! html/parsoidfoo!! end @@ -13367,7 +13227,6 @@ Table cell with attribute before expanded attributeFoo - !! html/parsoid
@@ -13385,7 +13244,6 @@ Table cell with attribute before expanded attribute Foo Foo - !! html/parsoid
@@ -13404,7 +13262,6 @@ Table cell with attribute before expanded attribute Foo hi - !! html/php+tidy
@@ -13417,7 +13274,6 @@ Templates: HTML Tables: 1. Generating start of a HTML table {{echo| hi !! html
foo }}- !!end !!test @@ -13426,7 +13282,6 @@ Templates: HTML Tables: 2a. Generating middle of a HTML table
foo !! html
{{echo| foo }}- !!end !!test @@ -13435,7 +13290,6 @@ Templates: HTML Tables: 2b. Generating middle of a HTML table
foo {{echo|
!! html}} foo - !!end !!test @@ -13444,8 +13298,7 @@ Templates: HTML Tables: 3. Generating end of a HTML table
foo }} !! html
{{echo| foo - -!!end +!! end !!test Templates: HTML Tables: 4a. Generating a single tag of a HTML table @@ -13453,8 +13306,7 @@ Templates: HTML Tables: 4a. Generating a single tag of a HTML table {{echo|
foo }}
!! htmlfoo - -!!end +!! end !!test Templates: HTML Tables: 4b. Generating a single tag of a HTML table @@ -13462,8 +13314,7 @@ Templates: HTML Tables: 4b. Generating a single tag of a HTML table
foo {{echo|
!! html}} foo - -!!end +!! end !!test Templates: HTML Tables: 4c. Generating a single tag of a HTML table @@ -13471,8 +13322,7 @@ Templates: HTML Tables: 4c. Generating a single tag of a HTML table
foo !! html
{{echo| }}foo - -!!end +!! end !!test Templates: HTML Tables: 4d. Generating a single tag of a HTML table @@ -13480,8 +13330,7 @@ Templates: HTML Tables: 4d. Generating a single tag of a HTML table
foo !! html
foo{{echo| }}- -!!end +!! end !!test Templates: HTML Tables: 4e. Generating a single tag of a HTML table @@ -13489,8 +13338,7 @@ Templates: HTML Tables: 4e. Generating a single tag of a HTML table
foo !! html
}} foo {{echo|- -!!end +!! end !!test Templates: HTML Tables: 4f. Generating a single tag of a HTML table @@ -13498,8 +13346,7 @@ Templates: HTML Tables: 4f. Generating a single tag of a HTML table
foo }} !! html
{{echo| foo - -!!end +!! end !!test Templates: HTML Tables: 5. Proper fostering of categories from inside @@ -13529,7 +13376,6 @@ Templates: Wiki Tables: 1a. Fostering of entire template content
foo a
- !! html/php+tidy a @@ -13555,7 +13401,6 @@ foo !! html/phpfoo @@ -13584,7 +13429,6 @@ Templates: Wiki Tables: 2. Fostering of partial template content a
b- !! html/php+tidy a @@ -13608,8 +13452,7 @@ Templates: Wiki Tables: 3. td-content via multiple templates - -!!end +!! end !!test Templates: Wiki Tables: 4. Templated tags, no content @@ -13619,8 +13462,7 @@ Templates: Wiki Tables: 4. Templated tags, no content !! html ab - -!!end +!! end !!test Templates: Wiki Tables: 5. Templated tags, regular td-tags @@ -13633,8 +13475,7 @@ Templates: Wiki Tables: 5. Templated tags, regular td-tags
- -!!end +!! end !!test Templates: Wiki Tables: 6. Templated tags, templated td-tags @@ -13647,8 +13488,7 @@ Templates: Wiki Tables: 6. Templated tags, templated td-tags foo - -!!end +!! end ## This test case is very specific to Parsoid's internals ## and is hence only tested for Parsoid's code. Parsoid uses @@ -13741,10 +13581,8 @@ Templates: Ugly nesting: 4. Divs opened/closed across templates a foo b{{echo|cd}}e !! html abcde - !! html+tidy -a
bcde -
+a
bcde
!! end !! test @@ -14621,7 +14459,6 @@ Right-aligned image [[File:Foobar.jpg|right]] !! html/php - !! html/parsoid !! end @@ -14632,7 +14469,6 @@ Image with caption [[File:Foobar.jpg|right|Caption text]] !! html/php - !! html/parsoid !! end @@ -14643,7 +14479,6 @@ Image with caption, T55312 #1 [[File:Foobar.jpg|right|Caption page stuff]] !! html/php - !! html/parsoid !! end @@ -14654,7 +14489,6 @@ Image with caption, T55312 #2 [[File:Foobar.jpg|right|Caption page=]] !! html/php - !! html/parsoid !! end @@ -14665,7 +14499,6 @@ Image with caption, T55312 #3 [[File:Foobar.jpg|right|Caption page=stuff]] !! html/php - !! html/parsoid !! end @@ -14678,7 +14511,6 @@ Image caption with pipe entity !! html/php - !! html/parsoid @@ -14695,7 +14527,6 @@ thumbsize=220 ]] !! html/php - !! html/parsoidCaption Link1 [[]] @@ -14742,7 +14573,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|right||Caption text]] !! html/php - !! html/parsoid !! end @@ -14753,7 +14583,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]] !! html/php - !! html/parsoid !! end @@ -14764,7 +14593,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]] !! html/php - !! html/parsoid !! end @@ -14788,7 +14616,6 @@ Image with multiple attributes from the same template [[File:Foobar.jpg|{{image_attribs}}]] !! html/php - !! html/parsoid !! end @@ -14806,13 +14633,11 @@ thumbsize=220 123456 123456 - !! html/php+tidy 123
456 -123
456 -
+123456
!! html/parsoid123
456 @@ -14825,7 +14650,6 @@ Image with multiple captions -- only last one is accepted [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]] !! html/php
- !! html/parsoid !! end @@ -14868,7 +14692,6 @@ Image with width attribute at different positions - !! html/parsoid @@ -15029,7 +14852,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb|link=http://example.com/|Title]] !! html/php - !! html/parsoid !! end @@ -15042,7 +14864,6 @@ thumbsize=220 [[File:Foobar.jpg|thumbnail=Thumb.png|Title]] !! html/php - !! html/parsoid !! end @@ -15056,7 +14877,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]] !! html/php - !! html/parsoid !! end @@ -15070,7 +14890,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]] !! html/php - !! html/parsoid !! end @@ -15084,7 +14903,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]] !! html/php- !! html/parsoid !! end @@ -15098,7 +14916,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]] !! html/php - !! html/parsoid !! end @@ -15111,7 +14928,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]] !! html/php - !! html/parsoid !! end @@ -15124,7 +14940,6 @@ parsoid=wt2html,wt2wt,html2html [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]] !! html/php - !! html/parsoid !! end @@ -15151,7 +14966,6 @@ Alt image option should handle most kinds of wikitext without barfing [[Image:Foobar.jpg|thumb|This is the image caption|alt=This is a [[link]] and a {{echo|''bold template''}}.]] !! html/php - !! html/parsoid !! end @@ -15586,7 +15400,6 @@ Image with heading and horizontal rule in caption ]] !! html/php - !! html/parsoidTesting
@@ -15633,7 +15446,6 @@ parsoid=wt2html,wt2wt,html2html - !! html/parsoid @@ -15652,7 +15464,6 @@ parsoid=wt2html,wt2wt,html2html - !! html/parsoid @@ -15712,7 +15523,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb|50px]] !! html/php - !! html/parsoid !! end @@ -15728,7 +15538,6 @@ parsoid=wt2html,wt2wt,html2html !! html/php - !! html/parsoid @@ -15781,7 +15590,6 @@ parsoid=wt2html,wt2wt,html2html - !! html/parsoid @@ -15830,7 +15638,6 @@ thumbsize=220 [[File:Foobar.jpg|thumb|http://example.com]] !! html/php - !! html/parsoid !! end @@ -15844,7 +15651,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]] !! html/php - !! html/parsoid !! end @@ -15856,7 +15662,6 @@ SVG thumbnails with no language set [[File:Foobar.svg|thumb|caption]] !! html/php - !! html/parsoid !! end @@ -15869,7 +15674,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.svg|thumb|caption|lang=de]] !! html/php - !! html/parsoid !! end @@ -15882,7 +15686,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.svg|thumb|caption|lang=invalid:language:code]] !! html/php - !! html/parsoid !! end @@ -15915,7 +15718,6 @@ T3887: A ISBN with a thumbnail [[File:Foobar.jpg|thumb|ISBN 1235467890]] !! html/php - !! html/parsoid !! end @@ -15926,7 +15728,6 @@ T3887: A RFC with a thumbnail [[File:Foobar.jpg|thumb|This is RFC 12354]] !! html/php - !! html/parsoid !! end @@ -15937,7 +15738,6 @@ T3887: A mailto link with a thumbnail [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]] !! html/php - !! html/parsoid !! end @@ -16060,7 +15860,6 @@ Image caption containing another image [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]] !! html/php - !! html/parsoid !! end @@ -16084,7 +15883,6 @@ Image: caption containing leading space [[File:Foobar.jpg|thumb| bar]] !! html/php - !! html/parsoid !!end @@ -16107,7 +15905,6 @@ parsoid=wt2html,wt2wt,html2html and some more text.]] !! html/php - !! html/parsoidThis is an example image thumbnail caption with a table @@ -16124,7 +15921,6 @@ T5090: External links other than http: in image captions [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]] !! html/php - !! html/parsoid !! end @@ -16151,7 +15947,6 @@ language=es [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]] !! html/php - !! html/parsoid !! end @@ -16166,7 +15961,6 @@ language=es [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]] !! html/php - !! html/parsoid !! end @@ -16212,7 +16006,6 @@ parsoid=wt2html,wt2wt,html2html - !! html/parsoid @@ -17064,7 +16857,6 @@ parsoid=wt2html,html2html !! html/php
- !! html/parsoida Foo- !! html/parsoida @@ -17320,7 +17112,6 @@ Some textSome text
Another headline[edit]
- !! end !! test @@ -17345,7 +17136,6 @@ __FORCETOC__Headline[edit]
Headline 2[edit]
Headline[edit]
- !! end # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10' @@ -17406,7 +17196,6 @@ parsoid=wt2html==Level 8 Heading==[edit]
===Level 9 Heading===[edit]
====Level 10 Heading====[edit]
- !! html/parsoidLevel 1 Heading
Level 2 Heading
@@ -17456,7 +17245,6 @@ TOC regression (T11764)title 1.2[edit]
title 2[edit]
title 2.1[edit]
- !! end !! test @@ -17472,7 +17260,6 @@ __FORCETOC__New title[edit]
- !! end !! test @@ -17509,7 +17296,6 @@ wgMaxTocLevel=3title 1.2[edit]
title 2[edit]
title 2.1[edit]
- !! end !! test @@ -17539,7 +17325,6 @@ wgMaxTocLevel=3Section 1.1.1[edit]
Section 1.1.1.1[edit]
Section 2[edit]
- !! end @@ -17551,7 +17336,6 @@ Resolving duplicate section names !! htmlFoo bar[edit]
Foo bar[edit]
- !! end !! test @@ -17562,7 +17346,6 @@ Resolving duplicate section names with differing case (T12721) !! htmlFoo bar[edit]
Foo Bar[edit]
- !! end !! article @@ -17584,7 +17367,6 @@ __NOTOC__Section 1[edit]
Section 2[edit]
Section 4[edit]
- !! end !! test @@ -17596,7 +17378,6 @@ __NOEDITSECTION__ !! htmlSection 1
Section 2
- !! end !! test @@ -17605,7 +17386,6 @@ Link inside a section heading ==Section with a [[Main Page|link]] in it== !! htmlSection with a link in it[edit]
- !! end !! test @@ -17630,7 +17410,6 @@ __TOC__title 1[edit]
title 1.1[edit]
title 2[edit]
- !! end !! test @@ -17857,7 +17636,6 @@ parsoid=wt2html,wt2wt,html2html=foo[edit]
italic heading=[edit]
=italic heading[edit]
- !! html/parsoidfoo=
=foo
@@ -17903,7 +17681,6 @@ __NOEDITSECTION__Header 2.1
Header 2.2
- !! html/parsoidHeader 1
Header 1.1
@@ -17930,7 +17707,6 @@ c3-->foo[edit]
bar[edit]
baz[edit]
- !! html/parsoidfoo
bar
@@ -17989,7 +17765,6 @@ div with no attributesHTML rocks!! htmlHTML rocks- !! end !! test @@ -17998,7 +17773,6 @@ div with double-quoted attributeHTML rocks!! htmlHTML rocks- !! end !! test @@ -18007,7 +17781,6 @@ div with single-quoted attributeHTML rocks!! htmlHTML rocks- !! end !! test @@ -18016,7 +17789,6 @@ div with unquoted attributeHTML rocks!! htmlHTML rocks- !! end !! test @@ -18025,8 +17797,7 @@ div with illegal double attributesHTML rocks!! htmlHTML rocks- -!!end +!! end !! test div with empty attribute value, space before equals @@ -18036,7 +17807,6 @@ parsoid=wt2html,html2htmlHTML rocks!! html/phpHTML rocks- !! html/parsoidHTML rocks!! end @@ -18051,7 +17821,6 @@ parsoid=wt2html,html2htmlHTML rocks!! html/phpHTML rocks- !! html/parsoidHTML rocks!! end @@ -18083,7 +17852,6 @@ parsoid=wt2html,html2htmlhi - -!!end +!! end !! test DIV IN UPPERCASE @@ -18143,8 +17907,7 @@ DIV IN UPPERCASE
@@ -18096,7 +17864,6 @@ div with braces in attribute value hi Foo!! html/phpFoo- !! html/parsoidFoo!! end @@ -18109,7 +17876,6 @@ parsoid=wt2html,html2htmlHTML rocks!! html/phpHTML rocks- !! html/parsoidHTML rocks!! end @@ -18120,8 +17886,7 @@ HTML multiple attributes correctionAwesome!
!! htmlAwesome!
- -!!end +!! end !! test Table multiple attributes correction @@ -18134,8 +17899,7 @@ Table multiple attributes correctionstatus HTML ROCKS!! htmlHTML ROCKS- -!!end +!! end !! test Non-ASCII pseudo-tags are rendered as text @@ -18233,7 +17996,6 @@ parsoid=wt2html !! html/phphiho- !! html/parsoidhiho@@ -18375,7 +18137,6 @@ parsoid=wt2html,html2html [[Media:Foobar.jpg|Safe Link ]] !! html/php Safe Link<div style="display:none">" onmouseover="alert(document.cookie)" onfoo="</div> - !! html/php+tidy !! html/parsoid @@ -18628,7 +18389,6 @@ T4304: HTML attribute safety (safe template; regression T4309) !! html/php - !! html/parsoid !! end @@ -18640,7 +18400,6 @@ T4304: HTML attribute safety (dangerous template; 2309) !! html/php - !! html/parsoid !! end @@ -18651,7 +18410,6 @@ T4304: HTML attribute safety (dangerous style template; 2309) !! html/php - !! html/parsoid !! end @@ -18662,7 +18420,6 @@ T4304: HTML attribute safety (safe parameter; 2309) {{div style|width: 200px}} !! html/phpMagic div- !! html/parsoidMagic div!! end @@ -18673,7 +18430,6 @@ T4304: HTML attribute safety (unsafe parameter; 2309) {{div style|width: expression(alert(document.cookie))}} !! html/phpMagic div- !! html/parsoidMagic div!! end @@ -18685,7 +18441,6 @@ T4304: HTML attribute safety (unsafe breakout parameter; 2309) {{div style|">}} !! html<script>alert(document.cookie)</script>">Magic div- !! end ## Parsoid output here differs; needs investigation. @@ -18695,7 +18450,6 @@ T4304: HTML attribute safety (unsafe breakout parameter 2; 2309) {{div style|" >}} !! html<script>alert(document.cookie)</script>">Magic div- !! end !! test @@ -18704,7 +18458,6 @@ T4304: HTML attribute safety (link) !! html/php - !! html/parsoid !! end @@ -18715,7 +18468,6 @@ T4304: HTML attribute safety (italics) !! html - !! end !! test @@ -18724,7 +18476,6 @@ T4304: HTML attribute safety (bold) !! html - !! end !! test @@ -18733,7 +18484,6 @@ T4304: HTML attribute safety (ISBN) !! html - !! end !! test @@ -18742,7 +18492,6 @@ T4304: HTML attribute safety (RFC) !! html - !! end !! test @@ -18751,7 +18500,6 @@ T4304: HTML attribute safety (PMID) !! html - !! end !! test @@ -18760,7 +18508,6 @@ T4304: HTML attribute safety (web link) !! html - !! end !! test @@ -18769,7 +18516,6 @@ T4304: HTML attribute safety (named web link) !! html/php - !! html/parsoid !! end @@ -18780,7 +18526,6 @@ T5244: HTML attribute safety (extension; safe) !! html/php - !! html/parsoid !! end @@ -18791,7 +18536,6 @@ T5244: HTML attribute safety (extension; unsafe) !! html/php - !! html/parsoid !! end @@ -18804,7 +18548,6 @@ MSIE CSS safety test: spurious slashevil!! html/phpevil- !! html/parsoidevil!! end @@ -18815,7 +18558,6 @@ MSIE CSS safety test: hex codeevil!! html/phpevil- !! html/parsoidevil!! end @@ -18826,7 +18568,6 @@ MSIE CSS safety test: comment in urlevil!! html/phpevil- !! html/parsoidevil!! end @@ -18837,7 +18578,6 @@ MSIE CSS safety test: comment in expressionevil4!! html/phpevil4- !! html/parsoidevil4!! end @@ -18848,7 +18588,6 @@ CSS safety test (all browsers): vertical tab (T57332 / CVE-2013-4567)A
!! html/phpA
- !! html/parsoidA
!! end @@ -18861,7 +18600,6 @@ MSIE 6 CSS safety test: Fullwidth (T57332) !! html/phpA
B- !! html/parsoidA
B@@ -18875,7 +18613,6 @@ MSIE 6 CSS safety test: IPA extensions (T57332) !! html/phpAB
- !! html/parsoidAB
@@ -18891,7 +18628,6 @@ MSIE 6 CSS safety test: sup/sub script (T57332)ABC
- !! html/parsoidAB@@ -18908,7 +18644,6 @@ title="data:text/htm style="-o-link:attr(title);-o-link-source:current">XX- !! html/parsoidX!! end @@ -18931,7 +18666,6 @@ MSIE 6 CSS safety test: Repetition markers (T57332)E
F
G
- !! html/parsoidA
B
@@ -18953,8 +18687,7 @@ Table attribute legitimate extension- -!!end +!! end !! test Table attribute safety @@ -18967,7 +18700,6 @@ Table attribute safety status - !! end !! test @@ -18976,7 +18708,6 @@ CSS line continuation 1 !! html - !! end !! test @@ -18985,7 +18716,6 @@ CSS line continuation 2 !! html - !! end !! article @@ -19000,7 +18730,6 @@ Expansion of multi-line templates in attribute values (T8255) status -!! html-- !! end !! test @@ -19010,7 +18739,6 @@ Expansion of multi-line templates in attribute values (T8255 sanity check) #00FF00">- !! html/php-- !! html/parsoid-@@ -19022,7 +18750,6 @@ Expansion of multi-line templates in attribute values (T8255 sanity check 2)-!! html-- !! end !! test @@ -19048,7 +18775,6 @@ Parser hook: empty input array ( ) - !! html/parsoid !! end @@ -19066,7 +18792,6 @@ NULL array ( ) - !! html/parsoid !! end @@ -19081,7 +18806,6 @@ NULL array ( ) - !! html/parsoid !! end @@ -19096,7 +18820,6 @@ Parser hook: basic input array ( ) - !! html/parsoid !! end @@ -19114,7 +18837,6 @@ parsoid=wt2html,html2html array ( ) - !! html/parsoid !! end @@ -19132,7 +18854,6 @@ parsoid=wt2html,html2html array ( ) - !! html/parsoid !! end @@ -19149,13 +18870,11 @@ parsoid=wt2html array ( ) </tag> - !! html/php+tidy'' array ( ) - </tag> -
+</tag>
!! html/parsoid</tag>
!! end @@ -19174,7 +18893,6 @@ array ( 'square' => '', ) - !! html/parsoid !! end @@ -19196,7 +18914,6 @@ array ( 'square' => '', ) - !! html/parsoid !! end @@ -19212,7 +18929,6 @@ array ( 'filename' => '/tmp/bla', ) - !! html/parsoid !! end @@ -19231,7 +18947,6 @@ array ( 'foo' => 'bar', ) text - !! html/parsoidtext
!! end @@ -19301,7 +19016,6 @@ Goodbye array ( ) - !! end ### @@ -19402,8 +19116,7 @@ parsoid=wt2html !! wikitext Table not started !! html+tidy -Table not started -
+Table not started
!! end !! test @@ -19476,7 +19189,6 @@ Sanitizer: Validating that and work, but only for Microdata - !! end !! test @@ -19591,8 +19303,7 @@ Punctuation: CSS !important (T13874)important!! htmlimportant- -!!end +!! end !! test Punctuation: CSS ! important (T13874; with space after) @@ -19600,8 +19311,7 @@ Punctuation: CSS ! important (T13874; with space after)important!! htmlimportant- -!!end +!! end !! test HTML bullet list, closed tags (T7497) @@ -19615,13 +19325,11 @@ HTML bullet list, closed tags (T7497)One Two - !! html/parsoid- !! end !! test @@ -19641,7 +19349,6 @@ HTML bullet list, unclosed tags (T7497)
- One
- Two
One Two - !! end !! test @@ -19656,13 +19363,11 @@ HTML ordered list, closed tags (T7497)One Two - !! html/parsoid- !! end !! test @@ -19683,7 +19388,6 @@ HTML ordered list, unclosed tags (T7497)
- One
- Two
One Two - !! end !! test @@ -19708,7 +19412,6 @@ HTML nested bullet list, closed tags (T7497) - !! html/parsoid- !! html/parsoid
- One
@@ -19765,7 +19468,6 @@ HTML nested ordered list, closed tags (T7497) - !! end !! test @@ -19788,7 +19490,6 @@ HTML nested ordered list, open tags (T7497)- Sub-two - !! html/parsoid
- !! end !! test @@ -19813,7 +19513,6 @@ HTML ordered list item with parameters oddity !! html
- One @@ -19802,7 +19503,6 @@ HTML nested ordered list, open tags (T7497)
- !! end # parsoid doesn't explicitly mark autonumbered links, see T55505 @@ -19862,7 +19561,6 @@ Fuzz testing: Parser13 - !! end # Note that Parsoid output differs from the PHP parser here: the PHP @@ -19881,7 +19579,6 @@ http://
- One
onmouseover=[edit]http://
@@ -19906,7 +19603,6 @@ parsoid=wt2html,html2htmlContents
- !! html/php+tidy
a[edit]
@@ -19951,7 +19647,6 @@ Fuzz testing: Parser21
- !! end !! test @@ -19966,7 +19661,6 @@ http://===r:::https://b- !! end ## Remex doesn't account for fostered content. @@ -19996,7 +19690,6 @@ MOVE YOUR MOUSE CURSOR OVER THIS TEXT - !! html/php+tidy {{{| @@ -20008,8 +19701,7 @@ MOVE YOUR MOUSE CURSOR OVER THIS TEXT
- -
+ !! html/parsoid{{{| @@ -20072,7 +19764,6 @@ Fuzz testing: URL adjacent extension (no space, dirty; pre) http://example.com
junk!! html/php http://example.comjunk- !! html/php+tidyjunk!! html/parsoid @@ -20085,7 +19776,6 @@ Fuzz testing: image with bogus manual thumbnail [[Image:foobar.jpg|thumbnail= ]] !! html/php- !! html/parsoid !! end @@ -20099,7 +19789,6 @@ parsoid=wt2html !! html/php - !! html/parsoid @@ -20117,7 +19806,6 @@ parsoid=html2wt "> !! html/php - !! end !! test @@ -20126,7 +19814,6 @@ Templates in extension attributes are not expanded !! html/php - !! html/parsoid !! end @@ -20150,7 +19837,6 @@ Parsing optional HTML elements (T8171)Error creating thumbnail:And yet som tabular data - !! end !! test @@ -20172,7 +19858,6 @@ Correct handling of, (T8171) - !! end @@ -20250,7 +19935,6 @@ Special page transclusion !! html - !! end !! test @@ -20264,7 +19948,6 @@ Special page transclusion twice (T7021) - !! end !! test @@ -20656,8 +20339,7 @@ section=2 ==sec1== ==sec2== !! html/php - -!!end +!! end # Formerly testing for T4607, now resolved by the use of unmarked sections # instead of respecting HTML-style headings @@ -21280,7 +20962,6 @@ File:File:Foobar.jpgAnd yet som tabular data - !! html/parsoid
- @@ -21343,7 +21024,6 @@ image4 |300px| centre
- !! html/parsoid
- @@ -21405,7 +21085,6 @@ image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
- !! html/parsoid @@ -21466,7 +21145,6 @@ image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
- !! html/parsoid @@ -21492,7 +21170,6 @@ File:Foobar.jpg
- !! html/parsoid
- @@ -21513,7 +21190,6 @@ File:Foobar.jpg
- !! html/parsoid
- @@ -21553,7 +21229,6 @@ image:foobar.jpg|link=Main Page#section|caption
- !! html/parsoid
- @@ -21583,7 +21258,6 @@ File:Foobar.jpg|{{echo|ho}}
- !! end !! test @@ -21643,7 +21316,6 @@ File:Foobar.jpg|alt=galleryalt|{{Test|unamedParam|alt=param}} - !! html/parsoid @@ -21612,7 +21286,6 @@ File:Foobar.jpg|Image caption
- !! html/parsoid
- @@ -21697,7 +21369,6 @@ some caption Main Page
- !! html/parsoid
- @@ -21745,7 +21416,6 @@ foobar.jpg
File:Nonexistent.jpgcaption- !! html/parsoid
- @@ -21773,7 +21443,6 @@ File:Foobar.jpg|alt=galleryalt|link=Wikilink
- !! html/parsoid
- @@ -21798,7 +21467,6 @@ File:Foobar.jpg|alt=galleryalt|link=http://www.example.org
- !! html/parsoid
- @@ -21823,7 +21491,6 @@ File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
- !! html/parsoid
- @@ -21849,7 +21516,6 @@ File:Foobar.jpg|alt=galleryalt|link=" onclick="alert('malicious javascript code!
caption- !! html/parsoid
- @@ -21876,7 +21542,6 @@ File:Foobar.jpg|link=<
- !! html/parsoid
- @@ -21919,7 +21584,6 @@ File:Foobar.jpg
link=<- !! html/parsoid
- @@ -21944,7 +21608,6 @@ File:Foobar.jpg
cell |
Two
paragraphs
@@ -24947,13 +24579,11 @@ Play a bit with r67090 and T5158Baz
Quuz
- !! html/parsoidBaz
Quuz
@@ -25009,7 +24638,6 @@ Strip reserved data attributesQuote[edit]
Bar[edit]
××××××ר ×× ×× (×ר×ס×ת: ÐÐ»Ð°Ð´Ð¸Ð¼Ð¸Ñ Ðенин, 24 ××פר×× 1870â22 ××× ××ר 1924) ××× ×× ××× ×¤××××× ×§×××× ×ס×× ×¨×ס×.
!! html××××××ר ×× ×× (×ר×ס×ת: ÐÐ»Ð°Ð´Ð¸Ð¼Ð¸Ñ Ðенин, 24 ××פר×× 1870â22 ××× ××ר 1924) ××× ×× ××× ×¤××××× ×§×××× ×ס×× ×¨×ס×.
- -!!end +!! end !! test Ignore pipe between table row attributes @@ -25658,7 +25271,6 @@ Ignore pipe between table row attributesfoo
bar -
+foo
bar
!! html/parsoidfoo
bar
!! end @@ -26072,8 +25682,7 @@ parsoid=html2wt ===== ==
@@ -26316,7 +25924,6 @@ new ==A== a - !! end !! test @@ -26329,7 +25936,6 @@ parsoid=wt2html =============== !! html/phpFoo -
+Foo
!! html/parsoidFoo
!! end @@ -27914,13 +27508,11 @@ parsoid=wt2html,html2htmlFoo |
Foo | Bar |
foo |
foo @@ -28138,7 +27720,6 @@ Indented block & table |
foo |
there |
hello -
+hihello
!! html/parsoidhi
hello
!! end @@ -28532,7 +28110,6 @@ hello {{OpenTable}} |} !! html/parsoid - !! end !! test @@ -30676,7 +30253,6 @@ parsoid={ [[foo]] x - !! end !! test @@ -31680,7 +31256,6 @@ Decoding of HTML entities in embedded HTML tagsx |
x |
x |
Bold\n
", ], 'No section edit links' => [ [ '== Title ==' ], - "* Not a list
', ], 'No section edit links' => [ [ '== Title ==' ], - "\nMy message" ], - '
' . "\nMy message\n
" + '' . "\nMy message
" ], 'List at start' => [ [ '* List' ], "* Some page
", ], 'EditPage' => [ [ "text\n
text
text
wrappers' => [ [ 'two classes', "1\n\n2\n\n3" ], "
1\n
2\n
3\n