From dc6c5002cf22f8c9bc0d5ee6ce773c1c4a77ba35 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Tue, 6 Mar 2018 17:26:16 -0500 Subject: [PATCH] Sync up with Parsoid parserTests.txt This now aligns with Parsoid commit 7d2a92f81ebbc0941e8fba2a136f5929406ea5e6 Change-Id: I0b57b1bd3b0802ce08249dd0bf376b931d8c7698 --- tests/parser/parserTests.txt | 662 +++++++++++++++++++---------------- 1 file changed, 363 insertions(+), 299 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index fc90010265..6da23e1c46 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -279,12 +279,6 @@ Template:EmptyTRWithHTMLAttrTest !!endarticle -!! article -Template:CircularRef -!! text -{{CircularRef}} -!! endarticle - !! article Template:With: Colon !! text @@ -294,22 +288,13 @@ Template with colon ### ### Basic tests ### + !! test Blank input !! wikitext !! html !! end -!! test -CircularRef -!! wikitext -{{CircularRef}} - -!! html/parsoid -

[1]

-
  1. ↑ Error: Expansion loop detected at Template:CircularRef
-!! end - !! test Simple paragraph !! wikitext @@ -1876,6 +1861,7 @@ IE conditional comments ### ### paragraph wrapping tests ### + !! test No block tags !! wikitext @@ -2110,9 +2096,55 @@ parsoid=wt2html

a

!! end +!! test +No paragraph necessary for SOL transparent template +!! wikitext +
foo
+[[Category:Foo]] + +
foo
+{{echo|[[Category:Foo]]}} +!! html/php +
foo
+
foo
+ +!! html/parsoid +
foo
+ + +
foo
+ +!! end + +!! test +Avoid expanding multiline sol transparent template ranges unnecessarily +!! wikitext +hi + + +{{echo|
+}} + +[[Category:Ho]] +!! html/php +

hi +


+
+

+!! html/parsoid +

hi

+ +


+
+

+ + +!! end + ### ### Preformatted text ### + !! test Preformatted text !! wikitext @@ -2657,6 +2689,17 @@ parsoid=wt2html !! end +!! test +Self-closed pre +!! wikitext +
+!! html/php
+

+
+!! html/parsoid
+

+!! end
+
 !! test
 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
 !! options
@@ -2916,7 +2959,7 @@ Parsoid: Pipes in external links in template parameter
 

link

!! html/parsoid -

link

+

link

!! end !! test @@ -2927,9 +2970,7 @@ Parsoid: pipe in transclusion parameter

http://foo.com/a%7Cb

!! html/parsoid -

http://foo.com/a%7Cb

+

http://foo.com/a%7Cb

!! end !! test @@ -3724,7 +3765,7 @@ Definition list with news link containing colon
This isn't even a real newsgroup!
!! html/parsoid -
news:alt.wikipedia.rox
This isn't even a real newsgroup!
+
news:alt.wikipedia.rox
This isn't even a real newsgroup!
!! end !! test @@ -4494,9 +4535,9 @@ Numbered: [3]

!! html/parsoid -

Numbered: -Numbered: -Numbered:

+

Numbered: +Numbered: +Numbered:

!!end !! test @@ -4535,7 +4576,7 @@ External links: dollar sign in URL (autonumber)

[1]

!! html/parsoid -

+

!!end !! test @@ -4548,7 +4589,7 @@ http://example.com/1[2345

http://example.com/1[2345

!! html/parsoid -

http://example.com/1[2345

+

http://example.com/1[2345

!! end !! test @@ -4561,7 +4602,7 @@ parsoid=wt2html,html2html

[2345

!! html/parsoid -

[2345

+

[2345

!!end # parsoid adds a space before the link name @@ -4622,7 +4663,7 @@ External links: protocol-relative URL in brackets without text

[1]

!! html/parsoid -

+

!! end !! test @@ -4660,7 +4701,7 @@ parsoid=wt2html,wt2wt

Bar

!! html/parsoid -

+

Bar

Bar

!! end @@ -4709,25 +4750,25 @@ http://example.com/url_with_entity< http://example.com/url_with_entity<

!! html/parsoid -

http://example.com, -http://example.com; -http://example.com\ -http://example.com. -http://example.com: -http://example.com! -http://example.com? -http://example.com) -http://example.com/url_with_(brackets) -(http://example.com/url_without_brackets) -http://example.com/url_with_entity& -http://example.com/url_with_entity& -http://example.com/url_with_entity& -http://example.com/url_with_entity  -http://example.com/url_with_entity  -http://example.com/url_with_entity  -http://example.com/url_with_entity< -http://example.com/url_with_entity< -http://example.com/url_with_entity<

+

http://example.com, +http://example.com; +http://example.com\ +http://example.com. +http://example.com: +http://example.com! +http://example.com? +http://example.com) +http://example.com/url_with_(brackets) +(http://example.com/url_without_brackets) +http://example.com/url_with_entity& +http://example.com/url_with_entity& +http://example.com/url_with_entity& +http://example.com/url_with_entity  +http://example.com/url_with_entity  +http://example.com/url_with_entity  +http://example.com/url_with_entity< +http://example.com/url_with_entity< +http://example.com/url_with_entity<

!! end !! test @@ -4740,7 +4781,7 @@ http://example.com/url_with_entity&amp;

http://example.com/url_with_entity&amp;

!! html/parsoid -

http://example.com/url_with_entity&amp;

+

http://example.com/url_with_entity&amp;

!! end !! test @@ -4755,7 +4796,7 @@ news:'a'b''c''d e

!! html/parsoid

News: Stuff here

-

news:'a'bcd e

+

news:'a'bcd e

!! end !! test @@ -4766,7 +4807,7 @@ External links: with entity

Libraries without borders

!! html/parsoid -

Libraries without borders

+

Libraries without borders

!! end !! test @@ -4899,7 +4940,7 @@ URL in text: [http://example.com http://example.com]

URL in text: http://example.com

!! html/parsoid -

URL in text: http://example.com

+

URL in text: http://example.com

!! end !! test @@ -4910,7 +4951,7 @@ ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/

ja-style clickable images: Ncwikicol.png

!! html/parsoid -

ja-style clickable images: Ncwikicol.png

+

ja-style clickable images: Ncwikicol.png

!! end !! test @@ -4930,7 +4971,7 @@ Old & use: http://x&y

Old & use: http://x&y

!! html/parsoid -

Old & use: http://x&y

+

Old & use: http://x&y

!! end !! test @@ -4941,7 +4982,7 @@ http://example.com/?foo=bar

http://example.com/?foo=bar

!! html/parsoid -

http://example.com/?foo=bar

+

http://example.com/?foo=bar

!! end ## @@ -4958,7 +4999,7 @@ Old & use: [http://x&y]

Old & use: [1]

!! html/parsoid -

Old & use:

+

Old & use:

!! end # note that parsoid html is identical to [raw ampersand] case; so html2wt @@ -4973,7 +5014,7 @@ Old & use: [http://x&y]

Old & use: [1]

!! html/parsoid -

Old & use:

+

Old & use:

!! end !! test @@ -4984,7 +5025,7 @@ External links: [raw equals]

[1]

!! html/parsoid -

+

!! end # note that parsoid html is identical to [raw equals] case; so html2wt @@ -4999,7 +5040,7 @@ parsoid=wt2html,wt2wt,html2html

[1]

!! html/parsoid -

+

!! end # xxx parsoid strips the IDN character, so the round-trip tests will @@ -5014,7 +5055,7 @@ parsoid=wt2html,wt2wt,html2html

[1]

!! html/parsoid -

+

!! end # FIXME: This test (the IDN characters in the text of a link) is an inconsistency. @@ -5046,7 +5087,7 @@ http://e‌xample.com/

http://example.com/

!! html/parsoid -

http://example.com/

+

http://example.com/

!! end !! test @@ -5067,7 +5108,7 @@ External links: URL within URL (T2002)

[1]

!! html/parsoid -

+

!! end !! test @@ -5105,7 +5146,7 @@ http://www.example.com/html

http://www.example.com/html

!! html/parsoid -

http://www.example.com/html

+

http://www.example.com/html

!! end !! test @@ -5164,17 +5205,22 @@ External links: link text with spaces

!! end +# Note edge case difference between PHP and Parsoid here. !! test External links: wiki links within external link (T5695) !! options parsoid=wt2html,html2html !! wikitext [http://example.com [[wikilink]] embedded in ext link] + +[http://example.com test [[wikilink]] embedded in ext link] !! html/php

wikilink embedded in ext link +

test wikilink embedded in ext link

!! html/parsoid -

wikilink embedded in ext link

+

wikilink embedded in ext link

+

test wikilink embedded in ext link

!! end !! test @@ -5218,8 +5264,8 @@ parsoid=wt2html

{{echo|[[Foo}}

!! html/parsoid -

[http://example.com x

-

[http://example.com x

+

[http://example.com x

+

[http://example.com x

[[Foo

{{echo|[[Foo}}

!! end @@ -5282,7 +5328,7 @@ http://www.example.com/?title=AT%26T

http://www.example.com/?title=AT%26T

!! html/parsoid -

http://www.example.com/?title=AT%26T

+

http://www.example.com/?title=AT%26T

!! end # According to https://www.w3.org/TR/2011/WD-html5-20110525/Overview.html#parsing-urls a plain @@ -5295,7 +5341,7 @@ http://www.example.com/?title=100%25_Bran

http://www.example.com/?title=100%25_Bran

!! html/parsoid -

http://www.example.com/?title=100%25_Bran

+

http://www.example.com/?title=100%25_Bran

!! end !! test @@ -5306,7 +5352,7 @@ http://www.example.com/?title=Ben-Hur_%281959_film%29

http://www.example.com/?title=Ben-Hur_%281959_film%29

!! html/parsoid -

http://www.example.com/?title=Ben-Hur_%281959_film%29

+

http://www.example.com/?title=Ben-Hur_%281959_film%29

!! end @@ -5318,7 +5364,7 @@ T6781: %26 in autonumber URL

[1]

!! html/parsoid -

+

!! end !! test @@ -5329,7 +5375,7 @@ T6781, T7267: %26 in autonumber URL

[1]

!! html/parsoid -

+

!! end !! test @@ -5340,7 +5386,7 @@ T6781, T7267: %28, %29 in autonumber URL

[1]

!! html/parsoid -

+

!! end @@ -5352,7 +5398,7 @@ T6781: %26 in bracketed URL

link

!! html/parsoid -

link

+

link

!! end !! test @@ -5372,7 +5418,7 @@ T6781, T7267: %28, %29 in bracketed URL

link

!! html/parsoid -

link

+

link

!! end !! test @@ -5386,8 +5432,8 @@ External link containing a period in the anchor. (T65947)

bang

!! html/parsoid -

bang

-

bang

+

bang

+

bang

!! end !! test @@ -5401,8 +5447,8 @@ External link containing a single quote. (T65947)

bang

!! html/parsoid -

-

bang

+

+

bang

!! end !! test @@ -5432,7 +5478,7 @@ External link containing double-single-quotes with no space separating the url f

La muerte de Casagemas (1901) en el sitio de Museo Picasso.

!! html/parsoid -

La muerte de Casagemas (1901) en el sitio de Museo Picasso.

+

La muerte de Casagemas (1901) en el sitio de Museo Picasso.

!! end !! test @@ -5443,7 +5489,7 @@ External link with comments in link text

Google

!! html/parsoid -

Google

+

Google

!! end !! test @@ -5454,7 +5500,7 @@ External link to bare IPv4 address

Link

!! html/parsoid -

Link

+

Link

!! end !! test @@ -5486,9 +5532,9 @@ http://example.com/index.php?foozoid[]=bar

http://example.com/index.php?foozoid%5B%5D=bar

!! html/parsoid -

http://example.com/index.php?foozoid%5B%5D=bar

+

http://example.com/index.php?foozoid%5B%5D=bar

-

http://example.com/index.php?foozoid%5B%5D=bar

+

http://example.com/index.php?foozoid%5B%5D=bar

!! end !! test @@ -5534,24 +5580,24 @@ Examples from RFC 2732, section 2:
  • http://[2010:836B:4179::836B:4179]
  • !! html/parsoid -

    http://[2404:130:0:1000::187:2]/index.php

    +

    http://[2404:130:0:1000::187:2]/index.php

    -

    Examples from RFC 2373, section 2.2:

    - +

    Examples from RFC 2373, section 2.2:

    + -

    Examples from RFC 2732, section 2:

    - +

    Examples from RFC 2732, section 2:

    + !! end !! test @@ -5597,24 +5643,24 @@ Examples from RFC 2732, section 2:
  • 7
  • !! html/parsoid -

    test

    +

    test

    -

    Examples from RFC 2373, section 2.2:

    - +

    Examples from RFC 2373, section 2.2:

    + -

    Examples from RFC 2732, section 2:

    - +

    Examples from RFC 2732, section 2:

    + !! end !! test @@ -5654,13 +5700,13 @@ Non-extlinks in brackets [foo bar] [fool's] errand [fool's errand] -[foo] -[foo bar] -[foo bar] -[fool's] errand -[fool's errand] -[url=foo] -[url=http://example.com] +[foo] +[foo bar] +[foo bar] +[fool's] errand +[fool's errand] +[url=foo] +[url=http://example.com] [http:// bare protocols don't count]

    !! end @@ -5672,8 +5718,7 @@ Percent encoding in external links

    Search

    !! html/parsoid -

    Search

    +

    Search

    !! end !! test @@ -5684,7 +5729,7 @@ http://example.com

    http://example.com

    !! html/parsoid -

    http://example.com

    +

    http://example.com

    !! end !! test @@ -5716,14 +5761,14 @@ http://example.com/a)b

    foo

    !! html/parsoid -

    http://example.com)

    -

    http://example.com/test)

    -

    http://example.com/(test)

    -

    http://example.com/((test)

    -

    (http://example.com/(test))

    -

    (http://example.com/(test)))))

    -

    http://example.com/a)b

    -

    foo

    +

    http://example.com)

    +

    http://example.com/test)

    +

    http://example.com/(test)

    +

    http://example.com/((test)

    +

    (http://example.com/(test))

    +

    (http://example.com/(test)))))

    +

    http://example.com/a)b

    +

    foo

    !! end !! test @@ -5737,9 +5782,9 @@ Parenthesis in external links, w/ transclusion or comment

    (http://example.com)

    !! html/parsoid -

    (http://example.com/hi)

    +

    (http://example.com/hi)

    -

    (http://example.com)

    +

    (http://example.com)

    !! end !! test @@ -6432,7 +6477,7 @@ parsoid=wt2html,html2html !! html/parsoid -
    [ftp://%7Cx]" onmouseover="alert(document.cookie)">test
    +[ftp://%7Cx]" onmouseover="alert(document.cookie)">test !! end !! test @@ -6521,7 +6566,7 @@ Don't break on | in extension attribute in template !! html/parsoid -

    [1]

    +

    [1]

    1. ↑ ha
    !! end @@ -6696,7 +6741,7 @@ T107652: s in templates that also generate table cell attributes should be !! html/parsoid - +
    Foo[1]
    Foo[1]
    1. ↑ foo
    !! end @@ -7933,7 +7978,7 @@ Plain link to URL

    [[1]]

    !! html/parsoid -

    []

    +

    []

    !! end !! test @@ -7953,7 +7998,7 @@ Plain link to protocol-relative URL

    [[1]]

    !! html/parsoid -

    []

    +

    []

    !! end !! test @@ -7996,7 +8041,7 @@ Piped link to URL: [[http://www.example.com|an example URL]]

    Piped link to URL: [example URL]

    !! html/parsoid -

    Piped link to URL: [example URL]

    +

    Piped link to URL: [example URL]

    !! end !! test @@ -8018,13 +8063,13 @@ parsoid=wt2html

    [http://www.example.com

    !! html/parsoid -

    [http://www.example.com

    +

    [http://www.example.com

    -

    [|123]

    +

    [|123]

    -

    {{echo|[|123}}

    +

    {{echo|[|123}}

    -

    [http://www.example.com

    +

    [http://www.example.com

    !! end !! test @@ -8600,8 +8645,8 @@ Interwiki links that cannot be represented in wiki syntax

    meatball:ok ok with fragment ok ending with ? mark -has query -is just fragment

    +has query +is just fragment

    !! end !! test @@ -10826,7 +10871,7 @@ RFC 822

    RFC 822

    !! html/parsoid -

    RFC 822

    +

    RFC 822

    !! end !! test @@ -10837,7 +10882,7 @@ This is RFC 822 but thisRFC 822 is not RFC 822linked.

    This is RFC 822 but thisRFC 822 is not RFC 822linked.

    !! html/parsoid -

    This is RFC 822 but thisRFC 822 is not RFC 822linked.

    +

    This is RFC 822 but thisRFC 822 is not RFC 822linked.

    !! end !! test @@ -10852,7 +10897,7 @@ RFC 822

    !! html/parsoid -

    RFC       822 +

    RFC       822 RFC 822

    !! end @@ -10910,7 +10955,7 @@ PMID 1234

    PMID 1234

    !! html/parsoid -

    PMID 1234

    +

    PMID 1234

    !! end !! test @@ -10921,7 +10966,7 @@ This is PMID 1234 but thisPMID 1234 is not PMID 1234linked.

    This is PMID 1234 but thisPMID 1234 is not PMID 1234linked.

    !! html/parsoid -

    This is PMID 1234 but thisPMID 1234 is not PMID 1234linked.

    +

    This is PMID 1234 but thisPMID 1234 is not PMID 1234linked.

    !! end !! test @@ -10936,7 +10981,7 @@ PMID 1234

    !! html/parsoid -

    PMID       1234 +

    PMID       1234 PMID 1234

    !! end @@ -10955,7 +11000,7 @@ X[https://tools.ietf.org/html/rfc1234 foo]

    !! html/parsoid

    Xfoo

    -

    Xfoo

    +

    Xfoo

    !! end !! test @@ -12293,9 +12338,9 @@ parsoid=wt2html
  • {{echo|Breaks template, however}}
  • !! html/parsoid !! end @@ -13120,7 +13165,7 @@ Templates: Wiki Tables: 7. Fosterable s should get fostered !!html/parsoid -[1] +[1]
    @@ -13203,73 +13248,6 @@ a
    bc
    de

    !! end -!!test -Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting -(Parsoid-centric) -!! options -parsoid -!! wikitext -{| -|{{echo|foo}} -|bar -|} -!! html - - - - -
    foo
    -|bar -|} -!!end - -!!test -Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting -(Parsoid-centric) -!! options -parsoid -!! wikitext - - - - -
    - - -
    1. {{echo|foo
    }}
    bar 2. {{echo|baz
    }} - - - abc - - - - - - xyz - - -!! html - - - - -
    - - -
    1. foo
    bar 2. baz
    - - - abc - - - - - - xyz - - -!!end - !! test Templates: Ugly templates: 3. newline-only template parameter !! wikitext @@ -14202,6 +14180,8 @@ Titles in unlinked images (T23454) !! html/php

    stuff

    +!! html/parsoid +

    !! end !! test @@ -14449,7 +14429,7 @@ Image with link parameter, wgNoFollowLinks set to false [[Image:foobar.jpg|link=http://example.com/]] !! config wgNoFollowLinks=false -!! html +!! html/php

    Foobar.jpg

    !! end @@ -14460,7 +14440,7 @@ Image with link parameter, wgNoFollowDomainExceptions [[Image:foobar.jpg|link=http://example.com/]] !! config wgNoFollowDomainExceptions='example.com' -!! html +!! html/php

    Foobar.jpg

    !! end @@ -14941,7 +14921,7 @@ thumbsize=220 !! html/parsoid -
    http://example.com
    +
    http://example.com
    !! end !! test @@ -14955,7 +14935,7 @@ parsoid=wt2html,wt2wt,html2html !! html/parsoid -
    Alteration
    http://example.com
    +
    Alteration
    http://example.com
    !! end !! test @@ -15015,7 +14995,7 @@ T3887: A RFC with a thumbnail
    This is RFC 12354
    !! html/parsoid -
    This is RFC 12354
    +
    This is RFC 12354
    !! end !! test @@ -15026,7 +15006,7 @@ T3887: A mailto link with a thumbnail !! html/parsoid -
    Please mailto:nobody@example.com
    +
    Please mailto:nobody@example.com
    !! end # Pending resolution to T2368 @@ -15209,7 +15189,7 @@ T5090: External links other than http: in image captions
    This caption has irc and Secure ext links in it.
    !! html/parsoid -
    This caption has irc and Secure ext links in it.
    +
    This caption has irc and Secure ext links in it.
    !! end !! test @@ -15545,7 +15525,7 @@ T93580: 1. Templated inside block images !! html/parsoid -
    Caption with templated ref: [1]
    +
    Caption with templated ref: [1]
    1. ↑ foo
    !! end @@ -15557,7 +15537,7 @@ T93580: 2. inside inline images !! html/parsoid -

    +

    1. ↑ foo
    !! end @@ -15569,7 +15549,7 @@ T93580: 3. Templated inside inline images !! html/parsoid -

    +

    1. ↑ foo
    !! end @@ -15710,7 +15690,7 @@ Render invalid page names as plain text (T53090) [[.]] [[..]] [[foo././bar]] -[[fooxyz]]

    +[[fooxyz]]

    [[./../foo|bar]] [[foo/.|bar]] @@ -15923,7 +15903,8 @@ Bar

    Foo Bar

    Foo Bar

    Foo Bar

    -

    Foo Bar

    +

    Foo Bar

    + !! end @@ -16689,7 +16670,7 @@ http://example.com [[File:Foobar.jpg]]

    http://example.com Foobar.jpg

    !! html/parsoid -

    http://example.com

    +

    http://example.com

    !!end # Parsoid doesn't wt2wt this cleanly because it adds s. @@ -16994,7 +16975,7 @@ http://example.com[[File:Foobar.jpg]]

    http://example.comFoobar.jpg

    !! html/parsoid -

    http://example.com

    +

    http://example.com

    !!end !! test @@ -17103,6 +17084,20 @@ parsoid=wt2html,html2html
    HTML rocks
    !! end +# FIXME Parsoid doesn't actually match PHP here. +# Probably we should use the synthetic or +# extensions for this test, which are enabled when running parser tests. +!! test +Extension tag in attribute value +!! wikitext +ok +!! html/php+disabled +

    <span title="<translate>123</translate>">ok</span> +

    +!! html/parsoid +

    ok

    +!! end + !! test table with multiple empty attribute values !! options @@ -18506,7 +18501,7 @@ language=sr variant=sr-el !! html/parsoid

    -

    foAjrjvi

    +

    foAjrjvi

    !! end !! test @@ -18780,11 +18775,11 @@ mailto:inline@mail.tld

    mailto:inline@mail.tld

    !! html/parsoid -

    -

    ftp://inlineftp

    -

    With target

    -

    -

    mailto:inline@mail.tld

    +

    +

    ftp://inlineftp

    +

    With target

    +

    +

    mailto:inline@mail.tld

    !! end @@ -18834,7 +18829,7 @@ http://

    <
    !! html/parsoid

    onmouseover=

    -

    http://__TOC__

    +

    http://__TOC__

    !! end !! test @@ -18983,7 +18978,7 @@ http://example.com junk

    http://example.com junk

    !! html/parsoid -

    http://example.com junk

    +

    http://example.com junk

    !! end !!test @@ -18994,7 +18989,7 @@ http://example.comjunk

    http://example.comjunk

    !! html/parsoid -

    http://example.comjunk

    +

    http://example.comjunk

    !! end !! test @@ -19007,7 +19002,7 @@ http://example.com
    junk
    !! html/php+tidy

    http://example.com

    junk
    !! html/parsoid -

    http://example.com

    junk
    +

    http://example.com

    junk
    !! end !! test @@ -20066,7 +20061,7 @@ Handling of in URLs !! html/parsoid - + !! end !! test @@ -20077,7 +20072,7 @@ Handling of %0A in URLs !! html/parsoid - + !! end # The PHP parser strips the empty tags out for giggles; parsoid doesn't. @@ -20280,7 +20275,7 @@ image4 |300px| centre
  • -
  • +
  • !! end @@ -20682,7 +20677,7 @@ File:Foobar.jpg|alt=galleryalt|link=Wikilink !! html/parsoid - !! end -# FIXME: Why is there no html/parsoid section here? !! test Thumbnail output !! wikitext [[File:Thumb.png|thumb]] !! html/php+tidy
    Thumb.png
    +!! html/parsoid +
    !! end !! test @@ -29882,8 +29946,8 @@ T51672: Test for brackets in attributes of elements in external link texts link span

    !! html/parsoid -

    link span -link span

    +

    link span +link span

    !! end !! test -- 2.20.1