From: Arlo Breault Date: Tue, 23 Oct 2018 23:26:51 +0000 (-0400) Subject: parser: Omit outputting newline after final line X-Git-Tag: 1.34.0-rc.0~2477^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=a91757523a050ac81e4e1bb022981c3184349fa1;p=lhc%2Fweb%2Fwiklou.git parser: Omit outputting newline after final line Bug: T208070 Depends-On: I47d1d9620031036b9497cacf70b34a45c3e5f409 Depends-On: I6119b4af9632496dbda81c3a3951c55217e7c2d5 Depends-On: I584f74e2ba0d14c2975fb43cc53c5e26080e6fc7 Depends-On: Ie70e1915c172d2d67b3b8b90eb35f753b800f61e Change-Id: I120ca25a77b7b933de4afddd1d458e36a95e26da --- diff --git a/includes/parser/BlockLevelPass.php b/includes/parser/BlockLevelPass.php index b8ff75692a..25f4b5c9cd 100644 --- a/includes/parser/BlockLevelPass.php +++ b/includes/parser/BlockLevelPass.php @@ -61,15 +61,26 @@ class BlockLevelPass { $this->lineStart = $lineStart; } + /** + * @return bool + */ + private function hasOpenParagraph() { + return $this->lastSection !== ''; + } + /** * If a pre or p is open, return the corresponding close tag and update * the state. If no tag is open, return an empty string. + * @param bool $atTheEnd Omit trailing newline if we've reached the end. * @return string */ - private function closeParagraph() { + private function closeParagraph( $atTheEnd = false ) { $result = ''; - if ( $this->lastSection !== '' ) { - $result = 'lastSection . ">\n"; + if ( $this->hasOpenParagraph() ) { + $result = 'lastSection . '>'; + if ( !$atTheEnd ) { + $result .= "\n"; + } } $this->inPre = false; $this->lastSection = ''; @@ -188,7 +199,8 @@ class BlockLevelPass { $pendingPTag = false; $inBlockquote = false; - foreach ( $textLines as $inputLine ) { + $lineCount = count( $textLines ); + foreach ( $textLines as $i => $inputLine ) { # Fix up $lineStart if ( !$this->lineStart ) { $output .= $inputLine; @@ -393,7 +405,11 @@ class BlockLevelPass { if ( $pendingPTag === false ) { if ( $prefixLength === 0 ) { $output .= $t; - $output .= "\n"; + // Add a newline if there's an open paragraph + // or we've yet to reach the last line. + if ( $i < $lineCount - 1 || $this->hasOpenParagraph() ) { + $output .= "\n"; + } } else { // Trim whitespace in list items $output .= trim( $t ); @@ -403,17 +419,13 @@ class BlockLevelPass { while ( $prefixLength ) { $output .= $this->closeList( $prefix2[$prefixLength - 1] ); --$prefixLength; - // Note that `lastSection` is only ever set when `prefixLength` + // Note that a paragraph is only ever opened when `prefixLength` // is zero, but we'll choose to be overly cautious. - if ( !$prefixLength && $this->lastSection !== '' ) { + if ( !$prefixLength && $this->hasOpenParagraph() ) { $output .= "\n"; } } - if ( $this->lastSection !== '' ) { - $output .= 'lastSection . '>'; - $this->lastSection = ''; - } - + $output .= $this->closeParagraph( true ); return $output; } diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index d64089b447..4c7cbdd19e 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -431,7 +431,6 @@ b b


- !! end !! test @@ -458,7 +457,6 @@ b b


- !! end !! test @@ -505,7 +503,6 @@ b b


- !! end !! test @@ -543,7 +540,6 @@ a


b[edit]

- !! end !! test @@ -643,7 +639,6 @@ C==

A B C[edit]

- !! html/parsoid

A B @@ -1459,7 +1454,6 @@ Non-word characters are valid in extension tags (T19663) array ( ) - !! html/parsoid

 !! end
@@ -1805,7 +1799,6 @@ Comment whitespace
 !! wikitext
 
 !! html
-
 !! end
 
 !! test
@@ -1813,7 +1806,6 @@ Comment semantics and delimiters
 !! wikitext
 
 !! html/php
-
 !! html/parsoid
 
 !! end
@@ -1824,7 +1816,6 @@ Comment semantics and delimiters, redux
 
 !! html/php
-
 !! html/parsoid
 
@@ -1867,7 +1858,6 @@ parsoid=wt2html,html2html
 !! wikitext
 
 !! end
@@ -2082,7 +2072,6 @@ b 
foo
!! html a
foo
b
foo
- !! html+tidy

a

foo

b

foo
@@ -2097,7 +2086,6 @@ b
foo
!! html a
foo
b
foo
- !! html+tidy

a

foo

b

foo

@@ -2118,15 +2106,13 @@ c d e

x
foo
z - !! html+tidy
foo

a

b c d e

-x

foo

z -

+x

foo

z

!! end !! test @@ -2156,7 +2142,6 @@ b


e
- !! html+tidy


@@ -2239,7 +2224,6 @@ No paragraph necessary for SOL transparent template !! html/php

foo
foo
- !! html/parsoid
foo
@@ -2454,7 +2438,6 @@ Ident preformatting with inline content <cite> <em> - !! end !! test @@ -2468,7 +2451,6 @@ Regression with preformatted in
Blah
 
- !! end !! test @@ -2492,7 +2474,6 @@ T54763: Preformatted in

- !! end !! test @@ -2509,7 +2490,6 @@ Bar

Bar

- !! end !! test @@ -2523,7 +2503,6 @@ Foo bar baz quux

Foo bar baz quux

- !! html+tidy

Foo bar baz quux @@ -2539,7 +2518,6 @@ T17491: / in blockquote (2) !! html

Foo bar baz quux
- !! html+tidy

Foo bar baz quux

@@ -2551,7 +2529,6 @@ T17491: / in blockquote (2)
Bluescreen of WikiDeath
!! html
Bluescreen of WikiDeath
- !! end !! test @@ -2560,7 +2537,6 @@ T17491: / in blockquote (2)
Narrow screen goodies
!! html
Narrow screen goodies
- !! end !! test @@ -2569,7 +2545,6 @@ T17491: / in blockquote (2)
Narrow screen goodies
!! html
Narrow screen goodies
- !! end !! test @@ -2578,7 +2553,6 @@ Entities inside
 
<
!! html
<
- !! end !! test @@ -2587,7 +2561,6 @@ Entities inside
 
Narrow screen goodies
!! html
Narrow 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/php
 
Foo →bar
- !! html/parsoid
Foo →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/php
hi
- !! html/parsoid
hi
!! end @@ -2882,7 +2851,6 @@ parsoid=wt2html !! html/php
x
<pre
- !! html/php+tidy
x
<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 @@ c
 foo
 bar
 
-
 !!end
 
 !!test
@@ -3419,7 +3384,6 @@ c
 
 foo
 
-
 !!end
 
 !!test
@@ -3436,7 +3400,6 @@ c
 
 bar
 
-
 !!end
 
 !!test
@@ -3453,7 +3416,6 @@ c
 
 b
 
-
 !! html/parsoid
 
a
@@ -3512,7 +3474,6 @@ a
- !! end !! test @@ -3551,7 +3512,6 @@ parsoid=wt2html,html2html
bam
 
- !! html/parsoid
@@ -3601,7 +3561,6 @@ parsoid=wt2html,html2html
a foo
 
b
foo
- !! html/parsoid
a foo

b

foo
@@ -3725,7 +3684,6 @@ array (
hi
!! html/php
hi
- !! html/parsoid
hi
!! end @@ -3744,7 +3702,6 @@ Render paragraphs when indent-pre is suppressed in blocklevels

bar

- !!end !!test @@ -3763,7 +3720,6 @@ Render paragraphs when indent-pre is suppressed in blocklevels
foo
- !!end ## NOTE: the leading white-space chars on empty line are significant @@ -3999,7 +3955,6 @@ HTML-pre: 2: indented text
  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 tags
 
test 2
test test test test test
- !! end !! test @@ -4187,7 +4140,6 @@ Definition and unordered list using wiki syntax nested in unordered list using h
description
  • unordered
- !! end !! test @@ -4213,7 +4165,6 @@ Nested definition lists using html syntax
x
a
b
- !! end !! test @@ -4349,7 +4300,6 @@ Definition Lists: Hacky use to indent tables (WS-insensitive) a - !! html/parsoid
@@ -4415,7 +4365,6 @@ Table / list interaction: indented table with lists in table contents
a
c
  • d
- !! end !!test @@ -4470,8 +4419,6 @@ Definition Lists: Nesting: Multi-level (Parsoid only) - - !! end @@ -4821,7 +4768,6 @@ Definition Lists: colons and tables 1 y - !! html/parsoid
@@ -6281,10 +6227,8 @@ parsoid=wt2html !! wikitext {||} !! html/php - !! html/parsoid
- !! end !! test @@ -6340,7 +6284,6 @@ parsoid=wt2html foo - !! end !! test @@ -6365,7 +6308,6 @@ A table with nothing but a caption
caption
- !! html/parsoid
caption
!! end @@ -6385,7 +6327,6 @@ A table with caption with default-spaced attributes and a table row foo - !! 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 style='color:red;' baz - !! end !! test @@ -6452,7 +6391,6 @@ Simple table 3 4 - !! end !! test @@ -6471,7 +6409,6 @@ Simple table but with multiple dashes for row wikitext bar - !! end !! test @@ -6542,7 +6479,6 @@ Multiplication table 10 15 - !! end !! test @@ -6557,7 +6493,6 @@ Accept "||" in table headings h1 h2 - !! end !! test @@ -6572,7 +6507,6 @@ Accept "!!" in table data Foo!! - !! html/parsoid @@ -6591,7 +6525,6 @@ Accept "||" in indented table headings
Foo!!
h1 h2
- !! end !! test @@ -6606,7 +6539,6 @@ Accept "!!" in templates a b c - !! html/parsoid @@ -6626,7 +6558,6 @@ b!!c

b!!c

a bc
- !! html/parsoid
a @@ -6668,7 +6599,6 @@ Accept empty attributes in td/th cells (td/th cells starting with leading ||) a
- !! end !!test @@ -6684,7 +6614,6 @@ Accept "| !" at start of line in tables (ignore !-attribute) bar - !!end !!test @@ -6723,7 +6652,6 @@ Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present -1 - !!end !! test @@ -6751,7 +6679,6 @@ Table rowspan Cell 3, row 2 - !! end !! test @@ -6783,7 +6710,6 @@ Nested table the original table again - !! end !! test @@ -6797,7 +6723,6 @@ Invalid attributes in table cell (T3830) broken - !! end !! test @@ -6817,7 +6742,6 @@ Table cell attributes: Pipes protected by nowikis should be treated as a plain c title="foo|" bar - !! html/parsoid @@ -6844,7 +6768,6 @@ parsoid=wt2html,html2html
bar
- !! html/parsoid @@ -6862,7 +6785,6 @@ Element attributes with double ! should not be broken up by
hi
ha
ho
- !! html/parsoid @@ -6880,7 +6802,6 @@ Element attributes with double ! should not be broken up by
hi
ha
ho
hi
- !! html/parsoid @@ -6902,7 +6823,6 @@ parsoid=wt2html
hi
style="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 herefoo
2
- !! html/parsoid @@ -7020,7 +6939,6 @@ parsoid={
Foo
- !! end !! test @@ -7037,7 +6955,6 @@ parsoid={ Bar Baz - !! html/parsoid @@ -7065,7 +6982,6 @@ parsoid={
FooBar Foo and Baz
- !! html/parsoid @@ -7093,7 +7009,6 @@ parsoid={
FooBarFoo and Baz
Bar Foo and Baz
- !! html/parsoid @@ -7134,7 +7049,6 @@ parsoid=wt2html,html2html
FooBarFoo and Baz
foo
- !! end !! test @@ -7154,7 +7068,6 @@ parsoid=wt2html,html2html foo - !! end !! test @@ -7170,7 +7083,6 @@ parsoid=wt2html,html2html hello - !! html/parsoid @@ -7197,7 +7109,6 @@ Wikitext table with a lot of comments
hello
- !! end !! test @@ -7234,7 +7145,6 @@ b

b

- !! end !! test @@ -7251,7 +7161,6 @@ Table cell with a single comment a - !! end !! test @@ -7269,14 +7178,12 @@ Table-cell after a comment-only-empty-line b - !! html/parsoid
a b
- !! end !! test @@ -7299,7 +7206,6 @@ Build table with {{!}} data second data - !! end !! test @@ -7334,7 +7240,6 @@ Build table with pipe as data data with | second data with | - !! end !! test @@ -7361,7 +7266,6 @@ Build table with wikilink data 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
  • a
- !! html/php+tidy
  • a
@@ -7477,8 +7379,7 @@ parsoid=wt2html,wt2wt

baz -

quux -

+

quux

!! end !! test @@ -7519,7 +7420,6 @@ parsoid=wt2html,wt2wt baz quux - !! html/parsoid
foobar @@ -9686,8 +9586,7 @@ Handling html with a div self-closing tag
-
-
+
!! html/parsoid
@@ -9768,8 +9667,7 @@ foo

-foo


bar -

+foo


bar

!! 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+tidy
  • a
  • b -
  • c -
  • +
  • c
  • !! html/parsoid
  • a
  • b
  • @@ -10234,8 +10125,7 @@ parsoid=wt2html,wt2wt
  • not 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+tidy

    This 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
    - !! html/parsoid @@ -11886,7 +11769,6 @@ foo {{table}}
    testing two |threefour3 4
    - !! end !! test @@ -11906,7 +11788,6 @@ foo 3 4 - !! end !! test @@ -12143,7 +12024,6 @@ Unbalanced includeonly and noinclude tags d</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/parsoid

    hu

    @@ -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 !! html
    Foo
    Foo
    - !! html+tidy
    Foo

    Foo

    @@ -13061,7 +12935,6 @@ Templates: P-wrapping: 1c. Templates on consecutive lines

    Foo

    bar
    baz
    - !! html+tidy

    Foo

    @@ -13121,7 +12994,6 @@ Templates: Block Tags: 1. Multiple template uses {{echo|

    Foo
    }}
    bar
    {{echo|
    baz
    }} !! html
    Foo
    bar
    baz
    - !!end !!test @@ -13130,7 +13002,6 @@ Templates: Block Tags: 2. Back-to-back template uses {{echo|
    Foo
    }}{{echo|
    bar
    }} !! html
    Foo
    bar
    - !!end ## Parsoid drops empty elements in templates. @@ -13223,7 +13094,6 @@ Templates: HTML Tag: 1. Generation of HTML attr. key
    foo
    !! html
    foo
    - !!end !!test @@ -13232,7 +13102,6 @@ Templates: HTML Tag: 2. Generation of HTML attr. value
    foo
    !! html
    foo
    - !!end !!test @@ -13241,7 +13110,6 @@ Templates: HTML Tag: 3. Generation of HTML attr key and value
    foo
    !! html
    foo
    - !!end !!test @@ -13250,7 +13118,6 @@ Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
    foo
    !! html
    foo
    - !!end !!test @@ -13259,7 +13126,6 @@ Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
    foo
    !! html
    foo
    - !!end !!test @@ -13268,7 +13134,6 @@ Templates: HTML Tag: 6. Generation of end piece of HTML attr value
    foo
    !! html
    foo
    - !!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 string
    foo
    !! html
    foo
    - !!end !! test @@ -13289,7 +13153,6 @@ Templates: HTML Tag: 8. Template-generated attribute (k=v)
    bar
    !! html
    bar
    - !!end !! test @@ -13298,7 +13161,6 @@ Templates: HTML Tag: 9. Multiple template-generated attributes
    bar
    !! html
    bar
    - !!end !! test @@ -13317,7 +13179,6 @@ Templates: Support for templates generating attributes and content bar - !! html/parsoid @@ -13351,7 +13212,6 @@ Table cell with attribute before expanded attribute
    foo
    !! html/php
    foo
    - !! html/parsoid
    foo
    !! end @@ -13367,7 +13227,6 @@ Table cell with attribute before expanded attribute
    Foo
    - !! 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/parsoid @@ -13417,7 +13274,6 @@ Templates: HTML Tables: 1. Generating start of a HTML table {{echo|
    hi
    }}
    foo
    !! html
    foo
    - !!end !!test @@ -13426,7 +13282,6 @@ Templates: HTML Tables: 2a. Generating middle of a HTML table {{echo|}}
    foo
    !! html
    foo
    - !!end !!test @@ -13435,7 +13290,6 @@ Templates: HTML Tables: 2b. Generating middle of a HTML table {{echo|}}
    foo
    !! html
    foo
    - !!end !!test @@ -13444,8 +13298,7 @@ Templates: HTML Tables: 3. Generating end of a HTML table {{echo|
    foo
    }} !! html
    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
    !! html
    foo
    - -!!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 {{echo|}}
    foo
    !! 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 {{echo|
    }}foo
    !! html
    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{{echo|
    !! html
    foo
    - -!!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 {{echo|}}
    foo
    !! html
    foo
    - -!!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 {{echo|
    foo
    }} !! html
    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 a
    - !! html/php+tidy a @@ -13555,7 +13401,6 @@ foo

    - !! html/php+tidy

    foo @@ -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 ab - -!!end +!! end !!test Templates: Wiki Tables: 4. Templated tags, no content @@ -13619,8 +13462,7 @@ Templates: Wiki Tables: 4. Templated tags, no content !! html
    - -!!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 foo - -!!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
    b{{echo|c
    d}}e !! html a
    bc
    de - !! html+tidy -

    a

    bc

    de -

    +

    a

    bc

    de

    !! end !! test @@ -14621,7 +14459,6 @@ Right-aligned image [[File:Foobar.jpg|right]] !! html/php
    Foobar.jpg
    - !! html/parsoid
    !! end @@ -14632,7 +14469,6 @@ Image with caption [[File:Foobar.jpg|right|Caption text]] !! html/php
    Caption text
    - !! html/parsoid
    Caption text
    !! end @@ -14643,7 +14479,6 @@ Image with caption, T55312 #1 [[File:Foobar.jpg|right|Caption page stuff]] !! html/php
    Caption page stuff
    - !! html/parsoid
    Caption page stuff
    !! end @@ -14654,7 +14489,6 @@ Image with caption, T55312 #2 [[File:Foobar.jpg|right|Caption page=]] !! html/php
    Caption page=
    - !! html/parsoid
    Caption page=
    !! end @@ -14665,7 +14499,6 @@ Image with caption, T55312 #3 [[File:Foobar.jpg|right|Caption page=stuff]] !! html/php
    Caption page=stuff
    - !! html/parsoid
    Caption page=stuff
    !! end @@ -14678,7 +14511,6 @@ Image caption with pipe entity !! html/php
    one | two
    one two | three
    - !! html/parsoid
    one | two
    one two | three
    @@ -14695,7 +14527,6 @@ thumbsize=220 ]] !! html/php
    Caption Link1 [[]] Link2
    - !! html/parsoid
    Caption Link1 [[]] @@ -14742,7 +14573,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|right||Caption text]] !! html/php
    Caption text
    - !! html/parsoid
    Caption text
    !! end @@ -14753,7 +14583,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]] !! html/php
    This is a caption
    - !! html/parsoid
    This is a caption
    !! end @@ -14764,7 +14593,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]] !! html/php
    This is a caption
    - !! html/parsoid
    This is a caption
    !! end @@ -14788,7 +14616,6 @@ Image with multiple attributes from the same template [[File:Foobar.jpg|{{image_attribs}}]] !! html/php
    Caption text
    - !! html/parsoid
    Caption text
    !! end @@ -14806,13 +14633,11 @@ thumbsize=220

    123
    Foobar.jpg
    456 123
    Foobar.jpg
    456 - !! html/php+tidy

    123Foobar.jpg456

    123

    Foobar.jpg

    456 -123

    Foobar.jpg

    456 -

    +123

    Foobar.jpg

    456

    !! html/parsoid

    123456

    123

    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

    Caption3 - accepted
    - !! html/parsoid
    Caption3 - accepted
    !! end @@ -14868,7 +14692,6 @@ Image with width attribute at different positions
    Caption
    Caption
    Caption
    - !! html/parsoid
    Caption
    Caption
    @@ -15029,7 +14852,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb|link=http://example.com/|Title]] !! html/php
    Title
    - !! html/parsoid
    Title
    !! end @@ -15042,7 +14864,6 @@ thumbsize=220 [[File:Foobar.jpg|thumbnail=Thumb.png|Title]] !! html/php
    Title
    - !! html/parsoid
    Title
    !! end @@ -15056,7 +14877,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]] !! html/php
    Title
    - !! html/parsoid
    Title
    !! end @@ -15070,7 +14890,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]] !! html/php
    Title
    - !! html/parsoid
    Title
    !! end @@ -15084,7 +14903,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]] !! html/php
    Title
    - !! html/parsoid
    Title
    !! end @@ -15098,7 +14916,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]] !! html/php
    alttext
    Title
    - !! html/parsoid
    alttext
    Title
    !! end @@ -15111,7 +14928,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]] !! html/php
    This is a test image Main Page
    - !! html/parsoid
    This is a test image Main Page
    !! 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
    Altitude
    This is a test image Main Page
    - !! html/parsoid
    Altitude
    This is a test image Main Page
    !! 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
    This is a link and a bold template.
    This is the image caption
    - !! html/parsoid
    This is a link and a bold template.
    This is the image caption
    !! end @@ -15586,7 +15400,6 @@ Image with heading and horizontal rule in caption ]] !! html/php

    Testing[edit]

    123
    - !! html/parsoid

    Testing

    @@ -15633,7 +15446,6 @@ parsoid=wt2html,wt2wt,html2html
    caption
    caption
    caption
    - !! html/parsoid
    caption
    caption
    @@ -15652,7 +15464,6 @@ parsoid=wt2html,wt2wt,html2html
    caption
    caption
    caption
    - !! html/parsoid
    caption
    caption
    @@ -15712,7 +15523,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb|50px]] !! html/php
    Foobar.jpg
    - !! html/parsoid
    !! end @@ -15728,7 +15538,6 @@ parsoid=wt2html,wt2wt,html2html !! html/php
    Foobar.jpg
    Foobar.svg
    - !! html/parsoid
    @@ -15781,7 +15590,6 @@ parsoid=wt2html,wt2wt,html2html
    Foobar.jpg
    Foobar.jpg
    Foobar.jpg
    - !! html/parsoid
    @@ -15830,7 +15638,6 @@ thumbsize=220 [[File:Foobar.jpg|thumb|http://example.com]] !! html/php - !! html/parsoid
    http://example.com
    !! end @@ -15844,7 +15651,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]] !! html/php - !! html/parsoid
    Alteration
    http://example.com
    !! end @@ -15856,7 +15662,6 @@ SVG thumbnails with no language set [[File:Foobar.svg|thumb|caption]] !! html/php
    caption
    - !! html/parsoid
    caption
    !! end @@ -15869,7 +15674,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.svg|thumb|caption|lang=de]] !! html/php
    caption
    - !! html/parsoid
    caption
    !! end @@ -15882,7 +15686,6 @@ parsoid=wt2html,wt2wt,html2html [[File:Foobar.svg|thumb|caption|lang=invalid:language:code]] !! html/php
    lang=invalid:language:code
    - !! html/parsoid
    lang=invalid:language:code
    !! end @@ -15915,7 +15718,6 @@ T3887: A ISBN with a thumbnail [[File:Foobar.jpg|thumb|ISBN 1235467890]] !! html/php - !! html/parsoid
    ISBN 1235467890
    !! end @@ -15926,7 +15728,6 @@ T3887: A RFC with a thumbnail [[File:Foobar.jpg|thumb|This is RFC 12354]] !! html/php
    This is RFC 12354
    - !! html/parsoid
    This is RFC 12354
    !! 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
    Please mailto:nobody@example.com
    !! 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
    This is a caption with another image inside it!
    - !! html/parsoid
    This is a caption with another inside it!
    !! end @@ -16084,7 +15883,6 @@ Image: caption containing leading space [[File:Foobar.jpg|thumb| bar]] !! html/php
    bar
    - !! html/parsoid
    bar
    !!end @@ -16107,7 +15905,6 @@ parsoid=wt2html,wt2wt,html2html and some more text.]] !! html/php
    This is an example image thumbnail caption with a table
    Foo Bar
    Foo1 Bar1
    and some more text.
    - !! html/parsoid
    This 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
    This caption has irc and Secure ext links in it.
    - !! html/parsoid
    This caption has irc and Secure ext links in it.
    !! end @@ -16151,7 +15947,6 @@ language=es [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]] !! html/php
    caption
    - !! html/parsoid
    caption
    !! end @@ -16166,7 +15961,6 @@ language=es [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]] !! html/php
    caption
    - !! html/parsoid
    caption
    !! end @@ -16212,7 +16006,6 @@ parsoid=wt2html,wt2wt,html2html
    caption
    caption
    caption
    - !! html/parsoid
    caption
    caption
    @@ -17064,7 +16857,6 @@ parsoid=wt2html,html2html !! html/php
    a Foo
    - !! html/parsoid
    a @@ -17320,7 +17112,6 @@ Some text

    Some 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/parsoid

    Level 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=3

    title 1.2[edit]

    title 2[edit]

    title 2.1[edit]

    - !! end !! test @@ -17539,7 +17325,6 @@ wgMaxTocLevel=3

    Section 1.1.1[edit]

    Section 1.1.1.1[edit]

    Section 2[edit]

    - !! end @@ -17551,7 +17336,6 @@ Resolving duplicate section names !! html

    Foo bar[edit]

    Foo bar[edit]

    - !! end !! test @@ -17562,7 +17346,6 @@ Resolving duplicate section names with differing case (T12721) !! html

    Foo 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__ !! html

    Section 1

    Section 2

    - !! end !! test @@ -17605,7 +17386,6 @@ Link inside a section heading ==Section with a [[Main Page|link]] in it== !! html

    Section 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/parsoid

    foo=

    =foo

    @@ -17903,7 +17681,6 @@ __NOEDITSECTION__

    Header 2.1

    Header 2.2

    - !! html/parsoid

    Header 1

    Header 1.1

    @@ -17930,7 +17707,6 @@ c3-->

    foo[edit]

    bar[edit]

    baz[edit]

    - !! html/parsoid

    foo

    bar

    @@ -17989,7 +17765,6 @@ div with no attributes
    HTML rocks
    !! html
    HTML rocks
    - !! end !! test @@ -17998,7 +17773,6 @@ div with double-quoted attribute
    HTML rocks
    !! html
    HTML rocks
    - !! end !! test @@ -18007,7 +17781,6 @@ div with single-quoted attribute
    HTML rocks
    !! html
    HTML rocks
    - !! end !! test @@ -18016,7 +17789,6 @@ div with unquoted attribute
    HTML rocks
    !! html
    HTML rocks
    - !! end !! test @@ -18025,8 +17797,7 @@ div with illegal double attributes
    HTML rocks
    !! html
    HTML rocks
    - -!!end +!! end !! test div with empty attribute value, space before equals @@ -18036,7 +17807,6 @@ parsoid=wt2html,html2html
    HTML rocks
    !! html/php
    HTML rocks
    - !! html/parsoid
    HTML rocks
    !! end @@ -18051,7 +17821,6 @@ parsoid=wt2html,html2html
    HTML rocks
    !! html/php
    HTML rocks
    - !! html/parsoid
    HTML rocks
    !! end @@ -18083,7 +17852,6 @@ parsoid=wt2html,html2html
    hi
    - !! html/parsoid @@ -18096,7 +17864,6 @@ div with braces in attribute value
    Foo
    !! html/php
    Foo
    - !! html/parsoid
    Foo
    !! end @@ -18109,7 +17876,6 @@ parsoid=wt2html,html2html
    HTML rocks
    !! html/php
    HTML rocks
    - !! html/parsoid
    HTML rocks
    !! end @@ -18120,8 +17886,7 @@ HTML multiple attributes correction

    Awesome!

    !! html

    Awesome!

    - -!!end +!! end !! test Table multiple attributes correction @@ -18134,8 +17899,7 @@ Table multiple attributes correction
    hi
    status
    - -!!end +!! end !! test DIV IN UPPERCASE @@ -18143,8 +17907,7 @@ DIV IN UPPERCASE
    HTML ROCKS
    !! html
    HTML ROCKS
    - -!!end +!! end !! test Non-ASCII pseudo-tags are rendered as text @@ -18233,7 +17996,6 @@ parsoid=wt2html !! html/php
    hi
    ho
    - !! html/parsoid
    hi
    ho
    @@ -18375,7 +18137,6 @@ parsoid=wt2html,html2html [[Media:Foobar.jpg|Safe Link
    " onmouseover="alert(document.cookie)" onfoo="
    ]] !! html/php Safe Link<div style="display:none">" onmouseover="alert(document.cookie)" onfoo="</div> - !! html/php+tidy

    Safe Link

    " onmouseover="alert(document.cookie)" onfoo="
    !! 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/php
    Magic div
    - !! html/parsoid
    Magic div
    !! end @@ -18673,7 +18430,6 @@ T4304: HTML attribute safety (unsafe parameter; 2309) {{div style|width: expression(alert(document.cookie))}} !! html/php
    Magic div
    - !! html/parsoid
    Magic 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 slash
    evil
    !! html/php
    evil
    - !! html/parsoid
    evil
    !! end @@ -18815,7 +18558,6 @@ MSIE CSS safety test: hex code
    evil
    !! html/php
    evil
    - !! html/parsoid
    evil
    !! end @@ -18826,7 +18568,6 @@ MSIE CSS safety test: comment in url
    evil
    !! html/php
    evil
    - !! html/parsoid
    evil
    !! end @@ -18837,7 +18578,6 @@ MSIE CSS safety test: comment in expression
    evil4
    !! html/php
    evil4
    - !! html/parsoid
    evil4
    !! end @@ -18848,7 +18588,6 @@ CSS safety test (all browsers): vertical tab (T57332 / CVE-2013-4567)

    A

    !! html/php

    A

    - !! html/parsoid

    A

    !! end @@ -18861,7 +18600,6 @@ MSIE 6 CSS safety test: Fullwidth (T57332) !! html/php

    A

    B
    - !! html/parsoid

    A

    B
    @@ -18875,7 +18613,6 @@ MSIE 6 CSS safety test: IPA extensions (T57332) !! html/php
    A

    B

    - !! html/parsoid
    A

    B

    @@ -18891,7 +18628,6 @@ MSIE 6 CSS safety test: sup/sub script (T57332)
    A
    B

    C

    - !! html/parsoid
    A
    B
    @@ -18908,7 +18644,6 @@ title="data:text/htm style="-o-link:attr(title);-o-link-source:current">X
    !! html/php
    X
    - !! html/parsoid
    X
    !! end @@ -18931,7 +18666,6 @@ MSIE 6 CSS safety test: Repetition markers (T57332)

    E

    F

    G

    - !! html/parsoid

    A

    B

    @@ -18953,8 +18687,7 @@ Table attribute legitimate extension status - -!!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)
    -
    !! 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/parsoid
     

    text

    !! 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
    !! html
    important
    - -!!end +!! end !! test Punctuation: CSS ! important (T13874; with space after) @@ -19600,8 +19311,7 @@ Punctuation: CSS ! important (T13874; with space after)
    important
    !! html
    important
    - -!!end +!! end !! test HTML bullet list, closed tags (T7497) @@ -19615,13 +19325,11 @@ HTML bullet list, closed tags (T7497)
  • One
  • Two
  • - !! html/parsoid
    • One
    • Two
    - !! end !! test @@ -19641,7 +19349,6 @@ HTML bullet list, unclosed tags (T7497)
  • One
  • Two
  • - !! end !! test @@ -19656,13 +19363,11 @@ HTML ordered list, closed tags (T7497)
  • One
  • Two
  • - !! html/parsoid
    1. One
    2. Two
    - !! end !! test @@ -19683,7 +19388,6 @@ HTML ordered list, unclosed tags (T7497)
  • One
  • Two
  • - !! end !! test @@ -19708,7 +19412,6 @@ HTML nested bullet list, closed tags (T7497) - !! 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
      1. One @@ -19802,7 +19503,6 @@ HTML nested ordered list, open tags (T7497)
    • - !! end !! test @@ -19813,7 +19513,6 @@ HTML ordered list item with parameters oddity !! html
      1. One
      - !! 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://
      onmouseover=[edit]

    http://

    Contents

    @@ -19906,7 +19603,6 @@ parsoid=wt2html,html2html
    - !! 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.com
    junk
    - !! html/php+tidy

    http://example.com

    junk
    !! html/parsoid @@ -20085,7 +19776,6 @@ Fuzz testing: image with bogus manual thumbnail [[Image:foobar.jpg|thumbnail= ]] !! html/php
    Error creating thumbnail:
    - !! 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)
          And yet som tabular data
       
     
    -
     !! end
     
     !! test
    @@ -20172,7 +19858,6 @@ Correct handling of ,  (T8171)
          And yet som tabular data
       
     
    -
     !! 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.jpg
     			
    - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! end !! test @@ -21643,7 +21316,6 @@ File:Foobar.jpg|alt=galleryalt|{{Test|unamedParam|alt=param}} - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid - !! html/parsoid