X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=be6e3a89965a40ed398ee9976e7893ca60b5bcc5;hb=8a65a5486f3da8163c0f8609d696ff6b5a481251;hp=3853a12520e99b91b6be48dec1c0808bfb8af951;hpb=c5e41e5f942c16b30c39d6ad87cd07197212b379;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 3853a12520..be6e3a8996 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -609,7 +609,7 @@ Italics and bold !! end -# this example taken from the [[simple:Moon]] article (bug 47326) +# this example taken from the [[simple:Moon]] article (T49326) !! test Italics and possessives (1) !! wikitext @@ -619,7 +619,7 @@ obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer

!! end -# this example taken from [[en:Flaming Pie]] (bug 49926) +# this example taken from [[en:Flaming Pie]] (T51926) !! test Italics and possessives (2) !! wikitext @@ -629,7 +629,7 @@ Italics and possessives (2)

!! end -# this example taken from [[en:Dictionary]] (bug 49926) +# this example taken from [[en:Dictionary]] (T51926) !! test Italics and possessives (3) !! wikitext @@ -933,6 +933,7 @@ Italics and bold: 5-quote opening sequence: (5,6) ### ### multiple quote sequences in a line ### + !! test Italics and bold: multiple quote sequences: (2,4,2) !! options @@ -942,8 +943,7 @@ parsoid=wt2html !! html/*

foo'bar

-!!end - +!! end # same html as previous, but wikitext adjusted to match parsoid html2wt !! test @@ -955,7 +955,6 @@ Italics and bold: multiple quote sequences: (2,4,2+3) w/ nowiki

!! end - !! test Italics and bold: multiple quote sequences: (2,4,3) !! options @@ -965,8 +964,7 @@ parsoid=wt2html !! html/*

foo'bar

-!!end - +!! end # same html as previous, but wikitext adjusted to match parsoid html2wt !! test @@ -978,7 +976,6 @@ Italics and bold: multiple quote sequences: (2,4,3+2) w/ nowiki

!! end - !! test Italics and bold: multiple quote sequences: (2,4,4) !! options @@ -988,8 +985,7 @@ parsoid=wt2html !! html/*

foo'bar'

-!!end - +!! end # same html as previous, but wikitext adjusted to match parsoid html2wt !! test @@ -1001,7 +997,6 @@ Italics and bold: multiple quote sequences: (2,4,4+2) w/ nowiki

!! end - # The PHP parser strips the empty tags out for giggles; parsoid doesn't. !! test Italics and bold: multiple quote sequences: (3,4,2) @@ -1015,24 +1010,21 @@ parsoid=wt2html !! html/parsoid

foo'bar

-!!end +!! end # same html as previous, but wikitext adjusted to match parsoid html2wt !! test Italics and bold: multiple quote sequences: (3,4,2+2) w/ nowiki -!! options -parsoid !! wikitext -'''foo''''bar'''' +'''foo''''bar'''' !! html/php

foo'bar

!! html/parsoid -

foo'bar +

foo'bar

!! end - # The PHP parser strips the empty tags out for giggles; parsoid doesn't. !! test Italics and bold: multiple quote sequences: (3,4,3) @@ -1046,18 +1038,18 @@ parsoid=wt2html !! html/parsoid

foo'bar

-!!end +!! end # same html as previous, but wikitext adjusted to match parsoid html2wt !! test Italics and bold: multiple quote sequences: (3,4,3+3) w/ nowiki !! wikitext -'''foo''''bar'''''' +'''foo''''bar'''''' !! html/php

foo'bar

!! html/parsoid -

foo'bar +

foo'bar

!! end @@ -1135,7 +1127,7 @@ The ''[[Main Page]]'''s talk page.

The Main Page's talk page.

!! html/parsoid -

The Main Page's talk page.

+

The Main Page's talk page.

!! end !! test @@ -1186,7 +1178,7 @@ Non-html5 tags should be accepted !! end !! test - is valid wikitext (bug 52468) + is valid wikitext (T54468) !! wikitext !! html @@ -1301,7 +1293,7 @@ Ruby markup (W3C-style) # The next two test different paths in the sanitizer. !! test -Non-word characters don't terminate tag names (bug 17663, 40670, 52022) +Non-word characters don't terminate tag names (T19663, T42670, T54022) !! wikitext a @@ -1372,7 +1364,7 @@ array ( !! end !! test -Isolated close tags should be treated as literal text (bug 52760) +Isolated close tags should be treated as literal text (T54760) !! options parsoid=wt2html !! wikitext @@ -1390,7 +1382,7 @@ parsoid=wt2html ### !! test -Bare pipe character (bug 52363) +Bare pipe character (T54363) !! wikitext | !! html @@ -1399,7 +1391,7 @@ Bare pipe character (bug 52363) !! end !! test -Bare pipe character from a template (bug 52363) +Bare pipe character from a template (T54363) !! wikitext {{pipe}} !! html @@ -1496,9 +1488,11 @@ nowiki 3 Entities inside !! wikitext < -!! html +!! html/php

<

+!! html/parsoid +

<

!! end !! test @@ -2170,7 +2164,7 @@ Regression with preformatted in
!! end !! test -Bug 52763: Preformatted in
+T54763: Preformatted in
!! wikitext
Blah @@ -2194,7 +2188,7 @@ Bug 52763: Preformatted in
!! end !! test -Bug 51086: Double newlines in blockquotes should be turned into paragraphs +T53086: Double newlines in blockquotes should be turned into paragraphs !! wikitext
Foo @@ -2211,7 +2205,7 @@ Bar !! end !! test -Bug 15491: / in blockquote +T17491: / in blockquote !! wikitext
Foo bar baz quux @@ -2226,9 +2220,9 @@ Foo bar baz quux # Note that the p-wrapping is newline sensitive, which could be # considered a bug: tidy will wrap only the 'Foo' in the example -# below in a

tag. (see comment 23-25 of bug #6200) +# below in a

tag. (see comment 23-25 of T8200) !! test -Bug 15491: / in blockquote (2) +T17491: / in blockquote (2) !! wikitext

Foo bar baz quux
@@ -2243,7 +2237,7 @@ Bug 15491: / in blockquote (2) !! end !! test -
 with attributes (bug 3202)
+
 with attributes (T5202)
 !! wikitext
 
Bluescreen of WikiDeath
!! html @@ -2252,7 +2246,7 @@ Bug 15491: / in blockquote (2) !! end !! test -
 with width attribute (bug 3202)
+
 with width attribute (T5202)
 !! wikitext
 
Narrow screen goodies
!! html @@ -2261,7 +2255,7 @@ Bug 15491: / in blockquote (2) !! end !! test -
 with forbidden attribute (bug 3202)
+
 with forbidden attribute (T5202)
 !! wikitext
 
Narrow screen goodies
!! html @@ -2279,7 +2273,7 @@ Entities inside
 !! end
 
 !! test
-
 with forbidden attribute values (bug 3202)
+
 with forbidden attribute values (T5202)
 !! wikitext
 
Narrow screen goodies
!! html @@ -2288,7 +2282,7 @@ Entities inside
 !! end
 
 !! test
- inside 
 (bug 13238)
+ inside 
 (T15238)
 !! wikitext
 
 
@@ -2319,8 +2313,12 @@ Entities inside 
 
Foo →bar
!! end +## Don't expect this to rt, Parsoid drops the unmatched closing pre tags that +## aren't enclosed in nowikis. !! test and
 preference (first one wins)
+!! options
+parsoid=wt2html
 !! wikitext
 
 
@@ -2349,17 +2347,16 @@ Entities inside 
 </pre>
 

!! html/parsoid -
<nowiki>
+
<nowiki>
 
-

</nowiki> -</pre>

+

</nowiki>

+

<pre> <nowiki> </pre> - -</pre>

+

!! end !! test @@ -2373,9 +2370,7 @@ Entities inside
 
 # Parsoid doesn't strip empty tags, like Tidy does.
 !! test
-Empty pre; pre inside other HTML tags (bug 54946)
-!! options
-parsoid=wt2html,wt2wt
+Empty pre; pre inside other HTML tags (T56946)
 !! wikitext
 a
 
@@ -2400,9 +2395,9 @@ foo
 !! html/parsoid
 

a

-
foo
+
foo
 
-

+

 !! end
 
 !! test
@@ -2418,7 +2413,7 @@ HTML pre followed by indent-pre
 
 # Note that tidy removes the empty 

tags from the start and end. # Parsoid does not, by design. -!!test +!! test Block tag pre !! wikitext

foo

@@ -2427,8 +2422,8 @@ Block tag pre foo
!! html/parsoid -

foo

-!!end +

foo

+!! end !!test Templates: Indent-Pre: 1a. Templates that break a line should suppress
@@ -2549,8 +2544,11 @@ Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
 
!!end +## Hmm, should Parsoid rt this? !! test Pres with newline attributes +!! options +parsoid=wt2html,html2html !! wikitext
hi
@@ -2558,8 +2556,7 @@ two">hi
hi
!! html/parsoid -
hi
+
hi
!! end !! test @@ -2574,7 +2571,7 @@ Barack Obama of the United States !! end !! test -Handle broken pre-like tags (bug 64025) +Handle broken pre-like tags (T66025) !! options parsoid=wt2html !! wikitext @@ -2591,7 +2588,7 @@ x

<pre

!! html/parsoid -
x
+
x

<pre

@@ -2609,7 +2606,7 @@ parsoid=wt2html
{{echo|foo}}
!! html/parsoid -
{{echo|foo}}
+
{{echo|foo}}
!! end # TODO / maybe: fix wt2wt for this @@ -2790,7 +2787,7 @@ Templates: Handle comments in the target !!end !! test -Templates: Handle comments in parameter names (bug 67657) +Templates: Handle comments in parameter names (T69657) !! wikitext {{echo|1 @@ -2820,7 +2817,7 @@ Templates: Handle comments in parameter names (bug 67657) !!end !! test -Templates: Other wikitext in parameter names (bug 67657) +Templates: Other wikitext in parameter names (T69657) !! wikitext {{echo|''1''=foo}} !! html/php @@ -2861,9 +2858,9 @@ Parsoid: pipe in transclusion parameter !! html/php+tidy

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

!! html/parsoid -

http://foo.com/a|b

+data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a&#124;b"}},"i":0}}]}'>http://foo.com/a%7Cb

!! end !! test @@ -2908,7 +2905,7 @@ parsoid=html2wt,wt2wt

!! end -## Bug 52824 +## T54824 !! test Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param !! options @@ -2921,7 +2918,7 @@ parsoid=html2wt,wt2wt

bar

!! end -## Bug 56733 +## T58733 !! test Templates parameters with special tokenizing behavior dont get modified because of arg escaping !! wikitext @@ -2932,7 +2929,7 @@ Templates parameters with special tokenizing behavior dont get modified because

a : b

!! end -## Bug T73412 +## T73412 !! test Templates: Preserve blank parameter names !! wikitext @@ -3049,7 +3046,7 @@ c !!end !!test -2c. Indent-Pre and tables (bug 42252) +2c. Indent-Pre and tables (T44252) !! wikitext {| |+ foo @@ -3120,7 +3117,7 @@ a !!end !! test -2g. Indented table markup mixed with indented pre content (proposed in bug 6200) +2g. Indented table markup mixed with indented pre content (proposed in T8200) !! wikitext @@ -3274,6 +3271,17 @@ array ( a

 !! end
 
+!! test
+5. Indent-Pre and html pre
+!! wikitext
+ 
hi
+!! html/php +
hi
+ +!! html/parsoid +
hi
+!! end + !!test Render paragraphs when indent-pre is suppressed in blocklevels !! wikitext @@ -3463,18 +3471,17 @@ foo foo !! html/parsoid -
foo
+
foo
-
-foo
+
foo
 
-
+
 
 foo
 
-
+
 
 
 foo
@@ -3518,7 +3525,7 @@ haha
 
 
!! html/parsoid -
+
 
 
 
@@ -3569,7 +3576,7 @@ HTML-pre: 3: other wikitext
 
!! html/parsoid -
* foo
+
* foo
 # bar
 = no-h =
 '' no-italic ''
@@ -3691,7 +3698,33 @@ Definition lists: self-closed tag
 !! end
 
 !! test
-Bug 11748: Literal closing tags
+Definition lists: ignore colons inside tags
+!! wikitext
+;one two : tag fun::: def
+!! html
+
one two : tag fun::
+
def
+ +!! end + +!! test +Definition lists: excess closed tags +!! wikitext +;onetwo : bad tag fun +!! html/php+tidy +
+
onetwo 
+
bad tag fun
+
+!! html/parsoid +
+
onetwo
+
bad tag fun
+
+!! end + +!! test +T13748: Literal closing tags !! wikitext
test 1
@@ -3818,7 +3851,7 @@ should be left alone !! end !! test -Definition Lists: Hacky use to indent tables, with comments (bug 63979) +Definition Lists: Hacky use to indent tables, with comments (T65979) !! wikitext ::{| @@ -4524,7 +4557,7 @@ Non-bracketed: http://example.com

!! end -# parsoid doesn't explicitly mark autonumbered links, see bug 53505 +# parsoid doesn't explicitly mark autonumbered links, see T55505 !! test External links: numbered !! wikitext @@ -4569,7 +4602,7 @@ http://example.com/1$2345

!! end -# parsoid doesn't explicitly mark autonumbered links, see bug 53505 +# parsoid doesn't explicitly mark autonumbered links, see T55505 !! test External links: dollar sign in URL (autonumber) !! wikitext @@ -4582,7 +4615,7 @@ External links: dollar sign in URL (autonumber) !!end !! test -External links: open square bracket forbidden in URL (bug 4377) +External links: open square bracket forbidden in URL (T6377) !! options parsoid=wt2html,wt2wt,html2html !! wikitext @@ -4595,7 +4628,7 @@ http://example.com/1[2345 !! end !! test -External links: open square bracket forbidden in URL (named) (bug 4377) +External links: open square bracket forbidden in URL (named) (T6377) !! options parsoid=wt2html,html2html !! wikitext @@ -4609,7 +4642,7 @@ parsoid=wt2html,html2html # parsoid adds a space before the link name !! test -External links: open square bracket forbidden in URL (named) (bug 4377) +External links: open square bracket forbidden in URL (named) (T6377) Parsoid variant. !! wikitext [http://example.com/1 [2345] @@ -4619,7 +4652,7 @@ Parsoid variant. !!end !! test -External links: nowiki in URL link text (bug 6230) +External links: nowiki in URL link text (T8230) !! wikitext [http://example.com/ ''example site''] !! html @@ -4628,7 +4661,7 @@ External links: nowiki in URL link text (bug 6230) !! end !! test -External links: newline forbidden in text (bug 6230 regression check) +External links: newline forbidden in text (T8230 regression check) !! wikitext [http://example.com/ first second] @@ -4656,7 +4689,7 @@ External links: protocol-relative URL in brackets

!! end -# parsoid doesn't explicitly mark autonumbered links, see bug 53505 +# parsoid doesn't explicitly mark autonumbered links, see T55505 !! test External links: protocol-relative URL in brackets without text !! wikitext @@ -4678,7 +4711,7 @@ External links: protocol-relative URL in free text is left alone !!end !! test -External links: protocol-relative URL in the middle of a word is left alone (bug 30269) +External links: protocol-relative URL in the middle of a word is left alone (T32269) !! wikitext foo//example.com/Foo !! html @@ -4798,6 +4831,17 @@ news:'a'b''c''d e

news:'a'bcd e

!! end +!! test +External links: with entity +!! wikitext +[http:// www.librarieswithoutborders.org Libraries without borders] +!! html/php +

Libraries without borders +

+!! html/parsoid +

Libraries without borders

+!! end + !! test External links: Lone protocols are never linked (T105697) !! wikitext @@ -4818,7 +4862,7 @@ bitcoin:; !! end !! test -External links: No preceding word characters allowed (bug 65278) +External links: No preceding word characters allowed (T67278) !! wikitext NOPEhttp://example.com N0http://example.com @@ -4963,7 +5007,7 @@ Old & use: http://x&y !! end !! test -External links: encoded equals (bug 6102) +External links: encoded equals (T8102) !! wikitext http://example.com/?foo=bar !! html/php @@ -4975,7 +5019,7 @@ http://example.com/?foo=bar ## ## Note that parsoid doesn't explicit mark autonumbered links, nor -## does it number them. As discussed in bug 53505, we can identify +## does it number them. As discussed in T55505, we can identify ## autonumbered links via CSS. ## @@ -5019,7 +5063,7 @@ External links: [raw equals] # note that parsoid html is identical to [raw equals] case; so html2wt # mode will return the [raw equals] wikitext !! test -External links: [encoded equals] (bug 6102) +External links: [encoded equals] (T8102) !! options parsoid=wt2html,wt2wt,html2html !! wikitext @@ -5079,7 +5123,7 @@ http://e‌xample.com/ !! end !! test -External links: www.jpeg.org (bug 554) +External links: www.jpeg.org (T2554) !! wikitext http://www.jpeg.org !! html @@ -5087,9 +5131,9 @@ http://www.jpeg.org

!! end -# parsoid doesn't explicitly mark autonumbered links, see bug 53505 +# parsoid doesn't explicitly mark autonumbered links, see T55505 !! test -External links: URL within URL (original bug 2) +External links: URL within URL (T2002) !! wikitext [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp] !! html/php @@ -5100,7 +5144,7 @@ External links: URL within URL (original bug 2) !! end !! test -BUG 361: URL inside bracketed URL +T2361: URL inside bracketed URL !! wikitext [http://www.example.com/foo http://www.example.com/bar] !! html @@ -5109,7 +5153,7 @@ BUG 361: URL inside bracketed URL !! end !! test -BUG 361: URL within URL, not bracketed +T2361: URL within URL, not bracketed !! wikitext http://www.example.com/foo?=http://www.example.com/bar !! html @@ -5118,7 +5162,7 @@ http://www.example.com/foo?=http://www.example.com/bar !! end !! test -BUG 289: ">"-token in URL-tail +T2289: ">"-token in URL-tail !! wikitext http://www.example.com/ !! html @@ -5127,7 +5171,7 @@ http://www.example.com/ !!end !! test -BUG 289: literal ">"-token in URL-tail +T2289: literal ">"-token in URL-tail !! wikitext http://www.example.com/html !! html/php @@ -5138,7 +5182,7 @@ http://www.example.com/html !! end !! test -BUG 289: ">"-token in bracketed URL +T2289: ">"-token in bracketed URL !! wikitext [http://www.example.com/ stuff] !! html @@ -5147,7 +5191,7 @@ BUG 289: ">"-token in bracketed URL !!end !! test -BUG 289: literal ">"-token in bracketed URL +T2289: literal ">"-token in bracketed URL !! wikitext [http://www.example.com/html stuff] !! html @@ -5156,7 +5200,7 @@ BUG 289: literal ">"-token in bracketed URL !!end !! test -BUG 289: literal double quote at end of URL +T2289: literal double quote at end of URL !! wikitext http://www.example.com/"hello" !! html @@ -5165,7 +5209,7 @@ http://www.example.com/"hello" !!end !! test -BUG 289: literal double quote in bracketed URL +T2289: literal double quote in bracketed URL !! wikitext [http://www.example.com/"hello" stuff] !! html @@ -5174,7 +5218,7 @@ BUG 289: literal double quote in bracketed URL !!end !! test -External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081) +External links: multiple legal whitespace is fine, Magnus. Don't break it please. (T7081) !! wikitext [http://www.example.com test] !! html @@ -5194,7 +5238,7 @@ External links: link text with spaces !! end !! test -External links: wiki links within external link (Bug 3695) +External links: wiki links within external link (T5695) !! options parsoid=wt2html,html2html !! wikitext @@ -5207,7 +5251,7 @@ parsoid=wt2html,html2html !! end !! test -BUG 787: Links with one slash after the url protocol are invalid +T2787: Links with one slash after the url protocol are invalid !! wikitext http:/example.com @@ -5228,7 +5272,7 @@ Bracketed external links with template-generated invalid target !! end !! test -Bug 2702: Mismatched , and tags are invalid +T4702: Mismatched , and tags are invalid !! wikitext ''[http://example.com text''] [http://example.com '''text]''' @@ -5246,7 +5290,7 @@ Bug 2702: Mismatched , and tags are invalid !! test -Bug 4781: %26 in URL +T6781: %26 in URL !! wikitext http://www.example.com/?title=AT%26T !! html/php @@ -5259,7 +5303,7 @@ http://www.example.com/?title=AT%26T # According to https://www.w3.org/TR/2011/WD-html5-20110525/Overview.html#parsing-urls a plain # % is actually legal in HTML5. Any change in output would need testing though. !! test -Bug 4781, 5267: %25 in URL +T6781, T7267: %25 in URL !! wikitext http://www.example.com/?title=100%25_Bran !! html/php @@ -5270,7 +5314,7 @@ http://www.example.com/?title=100%25_Bran !! end !! test -Bug 4781, 5267: %28, %29 in URL +T6781, T7267: %28, %29 in URL !! wikitext http://www.example.com/?title=Ben-Hur_%281959_film%29 !! html/php @@ -5282,7 +5326,7 @@ http://www.example.com/?title=Ben-Hur_%281959_film%29 !! test -Bug 4781: %26 in autonumber URL +T6781: %26 in autonumber URL !! wikitext [http://www.example.com/?title=AT%26T] !! html/php @@ -5293,7 +5337,7 @@ Bug 4781: %26 in autonumber URL !! end !! test -Bug 4781, 5267: %26 in autonumber URL +T6781, T7267: %26 in autonumber URL !! wikitext [http://www.example.com/?title=100%25_Bran] !! html/php @@ -5304,7 +5348,7 @@ Bug 4781, 5267: %26 in autonumber URL !! end !! test -Bug 4781, 5267: %28, %29 in autonumber URL +T6781, T7267: %28, %29 in autonumber URL !! wikitext [http://www.example.com/?title=Ben-Hur_%281959_film%29] !! html/php @@ -5316,7 +5360,7 @@ Bug 4781, 5267: %28, %29 in autonumber URL !! test -Bug 4781: %26 in bracketed URL +T6781: %26 in bracketed URL !! wikitext [http://www.example.com/?title=AT%26T link] !! html/php @@ -5327,7 +5371,7 @@ Bug 4781: %26 in bracketed URL !! end !! test -Bug 4781, 5267: %25 in bracketed URL +T6781, T7267: %25 in bracketed URL !! wikitext [http://www.example.com/?title=100%25_Bran link] !! html @@ -5336,7 +5380,7 @@ Bug 4781, 5267: %25 in bracketed URL !! end !! test -Bug 4781, 5267: %28, %29 in bracketed URL +T6781, T7267: %28, %29 in bracketed URL !! wikitext [http://www.example.com/?title=Ben-Hur_%281959_film%29 link] !! html/php @@ -5347,7 +5391,7 @@ Bug 4781, 5267: %28, %29 in bracketed URL !! end !! test -External link containing a period in the anchor. (bug 63947) +External link containing a period in the anchor. (T65947) !! wikitext [//foo.org/bar#baz. bang] @@ -5362,7 +5406,7 @@ External link containing a period in the anchor. (bug 63947) !! end !! test -External link containing a single quote. (bug 63947) +External link containing a single quote. (T65947) !! wikitext [//foo.org/bar'baz] @@ -5377,7 +5421,7 @@ External link containing a single quote. (bug 63947) !! end !! test -External link containing double-single-quotes in text '' (bug 4598 sanity check) +External link containing double-single-quotes in text '' (T6598 sanity check) !! wikitext Some [http://example.com/ pretty ''italics'' and stuff]! !! html @@ -5386,7 +5430,7 @@ Some [http://example.com/ pretty ''italics'' and stuff]! !! end !! test -External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check) +External link containing double-single-quotes in text embedded in italics (T6598 sanity check) !! wikitext ''Some [http://example.com/ pretty ''italics'' and stuff]!'' !! html @@ -5460,7 +5504,7 @@ http://example.com/index.php?foozoid[]=bar !! html/parsoid

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

-

http://example.com/index.php?foozoid[]=bar

+

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

!! end !! test @@ -6346,7 +6390,7 @@ Nested table !! end !! test -Invalid attributes in table cell (bug 1830) +Invalid attributes in table cell (T3830) !! wikitext {| |Cell:|broken @@ -6407,7 +6451,7 @@ parsoid=wt2html,html2html !! html/parsoid
-
" onmouseover="alert(document.cookie)">test
+[ftp://%7Cx]" onmouseover="alert(document.cookie)">test !! end !! test @@ -6940,12 +6984,6 @@ Wikitext table with html-syntax row foo !! end -## Note that Parsoid output differs from PHP and PHP+tidy here. -## The lack of tags in the PHP output is arguably a bug in the -## PHP parser, which tidy then compounds by fostering the content -## entirely out of the table. Parsoid recognizes the table context -## and generates and wrappers as needed. Hopefully nobody -## depends on PHP's treatment of broken table markup! !! test Implicit after a |- !! options @@ -6964,56 +7002,12 @@ a !! html/php+tidy

a

!! html/parsoid - - -
a
-!! end - -# Again, Parsoid adds implicit s here, PHP and Tidy strip the b out. -!! test -
 tags should be recognized in an explicit  context, but not in an implicit  context
-!! options
-parsoid=wt2html,html2html
-!! wikitext
-{|
-|-
-|
- a
-|-
- b
-|}
-!! html/php
-
-
-
-
- b
-
-
a
-
-
+

a

+ -!! html/php+tidy -

b

-
- - - -
-
-a
-
-!! html/parsoid - - - - - -
a
b
+ !! end -# PHP + Tidy strips the list out of the table; Parsoid wraps it. -# Parsoid generates the missing , so wt2wt won't succeed. !! test Lists should be recognized in an implicit context !! options @@ -7034,13 +7028,10 @@ parsoid=wt2html,html2html
  • a
  • !! html/parsoid - - - - -
      -
    • a
    • -
    +
    • a
    + + +
    !! end !! test @@ -7061,12 +7052,11 @@ Table cells not properly parsed in an implicit-td context !! html/parsoid - -
    a b
    + a b !! end !! test -Parsoid: Round-trip tables directly followed by content (bug 51219) +Parsoid: Round-trip tables directly followed by content (T53219) !! options parsoid=wt2html,wt2wt !! wikitext @@ -7093,7 +7083,7 @@ parsoid=wt2html,wt2wt !! end !! test -Parsoid: Default to a newline after tables in new content (bug 51219) +Parsoid: Default to a newline after tables in new content (T53219) !! options parsoid=html2wt !! html/parsoid @@ -7485,7 +7475,7 @@ Piped link with multiple pipe characters in link text

    |The|Main|Page|

    !! html/parsoid -

    |The|Main|Page|

    +

    |The|Main|Page|

    !! end !! test @@ -7502,7 +7492,7 @@ Piped link with no link text !! test Piped link with empty link text !! wikitext -[[Main Page|]] - empty nowiki +[[Main Page|]] - empty nowiki [[Main Page| ]] - empty space [[Main Page| ]] - empty non breaking space !! html/php @@ -7511,7 +7501,7 @@ Piped link with empty link text   - empty non breaking space

    !! html/parsoid -

    - empty nowiki +

    - empty nowiki - empty space   - empty non breaking space

    !! end @@ -7577,7 +7567,7 @@ Some text !! endarticle !! test -Bug 43661: Piped links with identical prefixes +T45661: Piped links with identical prefixes !! wikitext [[prefixed article|prefixed articles with spaces]] @@ -7656,7 +7646,7 @@ Link with multiple pipes !! end !! test -Anchor containing a #. (bug 63430) +Anchor containing a #. (T65430) !! wikitext [[Main Page#And#Link]] !! html/php @@ -7692,7 +7682,7 @@ This is an article in the MemoryAlpha namespace !! endarticle !! test -Namespace takes precedence over interwiki link (bug 51680) +Namespace takes precedence over interwiki link (T53680) !! wikitext [[MemoryAlpha:AlphaTest]] !! html @@ -7831,7 +7821,7 @@ Link containing a tilde !! end !! test -Link containing double-single-quotes '' (bug 4598) +Link containing double-single-quotes '' (T6598) !! wikitext [[Lista d''e paise d''o munno]] !! html/php @@ -7842,18 +7832,45 @@ Link containing double-single-quotes '' (bug 4598) !! end !! test -Link containing double-single-quotes '' in text (bug 4598 sanity check) +Link containing double quotes and spaces +!! wikitext +[[Cool "Gator"]] +!! html/php +

    Cool "Gator" +

    +!! html/parsoid +

    Cool "Gator"

    +!! end + +!! test +File containing double quotes and spaces +!! wikitext +[[File:Cool "Gator".png]] +!! html/parsoid +

    +!! end + +!! test +Redirect containing double quotes and spaces +!! wikitext +#REDIRECT [[Cool "Gator"]] +!! html/parsoid + +!! end + +!! test +Link containing double-single-quotes '' in text (T6598 sanity check) !! wikitext Some [[Link|pretty ''italics'' and stuff]]! !! html/php

    Some pretty italics and stuff!

    !! html/parsoid -

    Some pretty italics and stuff!

    +

    Some pretty italics and stuff!

    !! end !! test -Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check) +Link containing double-single-quotes '' in text embedded in italics (T6598 sanity check) !! wikitext ''Some [[Link|pretty ''italics'' and stuff]]!'' !! html @@ -7879,13 +7896,13 @@ Link with double quotes in title part (literal) and alternate part (interpreted)

    !! html/parsoid

    -

    ''Pentecoste''

    -

    Pentecoste

    -

    Pentecoste

    +

    ''Pentecoste''

    +

    Pentecoste

    +

    Pentecoste

    !! end !! test -Broken image links with HTML captions (bug 39700) +Broken image links with HTML captions (T41700) !! wikitext [[File:Nonexistent|]] [[File:Nonexistent|100x100px|]] @@ -7976,11 +7993,11 @@ 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 -BUG 2: [[page|http://url/]] should link to page, not http://url/ +T2002: [[page|http://url/]] should link to page, not http://url/ !! wikitext [[Main Page|http://url/]] !! html/php @@ -7992,7 +8009,7 @@ BUG 2: [[page|http://url/]] should link to page, not http://url/ # Parsoid does not mark self-links, by design. !! test -BUG 337: Escaped self-links should be bold +T2337: Escaped self-links should be bold !! options title=[[Bug462]] !! wikitext @@ -8064,7 +8081,7 @@ Non-breaking spaces in title !!end !! test -Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue) +Internal link with ca linktrail, surrounded by bold apostrophes (T29473 primary issue) !! options language=ca !! wikitext @@ -8075,7 +8092,7 @@ language=ca !! end !! test -Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue) +Internal link with ca linktrail, surrounded by italic apostrophes (T29473 primary issue) !! options language=ca !! wikitext @@ -8086,7 +8103,7 @@ language=ca !! end !! test -Internal link with en linktrail: no apostrophes (bug 27473) +Internal link with en linktrail: no apostrophes (T29473) !! options language=en !! wikitext @@ -8097,7 +8114,7 @@ language=en !! end !! test -Internal link with ca linktrail with apostrophes (bug 27473) +Internal link with ca linktrail with apostrophes (T29473) !! options language=ca !! wikitext @@ -8108,7 +8125,7 @@ language=ca !! end !! test -Internal link with kaa linktrail with apostrophes (bug 27473) +Internal link with kaa linktrail with apostrophes (T29473) !! options language=kaa !! wikitext @@ -8119,7 +8136,7 @@ language=kaa !! end !! test -Link with multiple ":" in a subpage-supporting namespace (bug 63636) +Link with multiple ":" in a subpage-supporting namespace (T65636) !! wikitext [[User:Foo/Test/63636:Bar|Test]] !! html/php @@ -8134,19 +8151,32 @@ Link with multiple ":" in a subpage-supporting namespace (bug 63636) Handle title parsing for subpages !! options title=[[/123123]] +subpage !! wikitext 123 +!! html/php +

    123 +

    !! html/parsoid

    123

    !! end -## FIXME: Add a working php section here +!! article +User:Test/123 +!! text +test 123 +!! endarticle + !! test Link to a subpage from a namespace other than main !! options -title=[[User:test]] +title=[[User:Test]] +subpage !! wikitext [[/123]] +!! html/php +

    /123 +

    !! html/parsoid

    /123

    !! end @@ -8168,7 +8198,8 @@ parsoid=wt2html !! test Purely hash wikilink !! options -title=[[User:test/123]] +title=[[User:Test/123]] +subpage !! wikitext [[#a|b]] !! html/php @@ -8180,12 +8211,10 @@ title=[[User:test/123]] !! test 1. Interaction of linktrail and template encapsulation -!! options -parsoid !! wikitext {{echo|[[Foo]]}}l -!! html -

    Fool

    +!! html/parsoid +

    Fool

    !! end !! test @@ -8255,7 +8284,7 @@ Parsoid link trail escaping !! options parsoid=html2wt,html2html !! html/parsoid -

    apples

    +

    apples

    !! wikitext [[apple]]s !! end @@ -8266,7 +8295,7 @@ Parsoid link prefix escaping language=is parsoid=html2wt,html2html !! html/parsoid -

    Aðrir mótmælendasöfnuður

    +

    Aðrir mótmælendasöfnuður

    !! wikitext Aðrir mótmælenda[[söfnuður]] !! end @@ -8291,12 +8320,10 @@ Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved !! test Parsoid: Scoped parsing should handle mixed transclusions and plain text -!! options -parsoid !! wikitext [[Foo|{{echo|a}} b {{echo|c}}]] -!! html -

    a b c

    +!! html/parsoid +

    a b c

    !! end !! test @@ -8328,7 +8355,7 @@ parsoid=wt2html,wt2wt,html2html !! end !! test -Inline interwiki link with empty title (bug 2372) +Inline interwiki link with empty title (T4372) !! options parsoid=wt2html,wt2wt,html2html !! wikitext @@ -8341,7 +8368,7 @@ parsoid=wt2html,wt2wt,html2html !! end !! test -Interwiki link encoding conversion (bug 1636) +Interwiki link encoding conversion (T3636) !! wikitext *[[Wikipedia:ro:Olteniţa]] *[[Wikipedia:ro:Olteniţa]] @@ -8357,7 +8384,7 @@ Interwiki link encoding conversion (bug 1636) !! end !! test -Interwiki link with fragment (bug 2130) +Interwiki link with fragment (T4130) !! wikitext [[MeatBall:SoftSecurity#foo]] !! html @@ -8483,7 +8510,7 @@ parsoid=wt2html,wt2wt,html2html !! end !! test -Local interwiki link: prefix only (bug 64167) +Local interwiki link: prefix only (T66167) !! options parsoid=wt2html,wt2wt,html2html !! wikitext @@ -8496,7 +8523,7 @@ parsoid=wt2html,wt2wt,html2html !! end !! test -Local interwiki link: with additional interwiki prefix (bug 61357) +Local interwiki link: with additional interwiki prefix (T63357) !! options parsoid=wt2html,wt2wt,html2html !! wikitext @@ -8590,6 +8617,23 @@ Blah blah blah !! end +!! test +Escaping of interlanguage links (T129218, T156308) +!! wikitext +Blah blah blah +[[:es:Spanish]] +[[ : zh : Chinese ]] +!! html/php +

    Blah blah blah +es:Spanish + zh : Chinese +

    +!! html/parsoid +

    Blah blah blah +es:Spanish + zh : Chinese

    +!! end + ## parsoid html2wt will normalize the space to _ !! test Space and question mark encoding in interlanguage links (T95473) @@ -8622,7 +8666,7 @@ Blah blah blah !! end !! test -Double interlanguage link, with prefix links (bug 8897) +Double interlanguage link, with prefix links (T10897) !! options language=ln !! wikitext @@ -8639,7 +8683,7 @@ Blah blah blah !! end !! test -"Extra" interlanguage links (bug 32189 / gerrit 111390) +"Extra" interlanguage links (T34189 / gerrit 111390) !! wikitext Blah blah blah [[mul:Article]] @@ -8691,12 +8735,12 @@ language=ln !! end !! test -Parsoid bug 53221: Wikilinks should be properly entity-escaped +Parsoid T55221: Wikilinks should be properly entity-escaped !! options parsoid={ "modes": ["html2wt"], "suppressErrors": true } !! html/parsoid -

    He&nbsp;llo He&nbsp;llo

    -

    He&nbsp;llo He&nbsp;llo

    +

    He&nbsp;llo He&nbsp;llo

    +

    He&nbsp;llo He&nbsp;llo

    !! wikitext He&nbsp;llo [[Foo|He&nbsp;llo]] @@ -8768,7 +8812,7 @@ parsoid=wt2html,wt2wt,html2html !! end !! test -Handle interwiki links pointing to the current wiki as plain wiki links (bug 45209) +Handle interwiki links pointing to the current wiki as plain wiki links (T47209) !! wikitext [[mi:Foo]] !! html/php @@ -8779,7 +8823,7 @@ Handle interwiki links pointing to the current wiki as plain wiki links (bug 452 !! end !! test -Interlanguage link with preceding local interwiki link (bug 68085) +Interlanguage link with preceding local interwiki link (T70085) !! options parsoid=wt2html,wt2wt,html2html !! wikitext @@ -9026,7 +9070,7 @@ Broken br tag sanitization

    !! end -# TODO: Fix html2html mode (bug 51055)! +# TODO: Fix html2html mode (T53055)! !! test Parsoid: Broken br tag recognition !! options @@ -9410,7 +9454,7 @@ parsoid !! end !! test -List items are not parsed correctly following a
     block (bug 785)
    +List items are not parsed correctly following a 
     block (T2785)
     !! wikitext
     * 
    foo
    *
    bar
    @@ -9421,8 +9465,8 @@ List items are not parsed correctly following a
     block (bug 785)
     
  • zar
  • !! html/parsoid -
    • foo
    • -
    • bar
    • +
      • foo
      • +
      • bar
      • zar
      !! end @@ -9619,7 +9663,7 @@ Unbalanced closing block tags break a list !! end # Parsoid fails this test, but it might be tricky to support properly. -# See bug 68395. +# See T70395. !! test Unbalanced closing non-block tags don't break a list (php parser relies on Tidy to fix up) @@ -9661,7 +9705,7 @@ parsoid=wt2html,wt2wt,html2html
    • b
    • !! end -# See bug 68395. +# See T70395. !!test 1. List embedded in a formatting tag !! wikitext @@ -9853,7 +9897,7 @@ Magic Word: {{CURRENTHOUR}} !! end !! test -Magic Word: {{CURRENTWEEK}} (@bug 4594) +Magic Word: {{CURRENTWEEK}} (T6594) !! wikitext {{CURRENTWEEK}} !! html @@ -10200,7 +10244,7 @@ title=[['foo & bar = baz']] !! end !! test -Magic Word: {{PAGENAME}} with metacharacters (bug 26781) +Magic Word: {{PAGENAME}} with metacharacters (T28781) !! options title=[[*RFC 1234 http://example.com/]] !! wikitext @@ -10224,7 +10268,7 @@ title=[[User:Ævar Arnfjörð Bjarmason]] !! end !! test -Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781) +Magic Word: {{PAGENAMEE}} with metacharacters (T28781) !! options title=[[*RFC 1234 http://example.com/]] !! wikitext @@ -10345,7 +10389,7 @@ Parsoid: Page property magic word with magic word contents !! wikitext {{DISPLAYTITLE:''{{PAGENAME}}''}} !! html/parsoid - + !! end !! test @@ -10375,7 +10419,7 @@ Namespace 1 {{ns:01}} !! end !! test -Namespace 0 {{ns:0}} (bug 4783) +Namespace 0 {{ns:0}} (T6783) !! wikitext {{ns:0}} !! html @@ -10383,7 +10427,7 @@ Namespace 0 {{ns:0}} (bug 4783) !! end !! test -Namespace 0 {{ns:00}} (bug 4783) +Namespace 0 {{ns:00}} (T6783) !! wikitext {{ns:00}} !! html @@ -10527,7 +10571,7 @@ __proto__ ### Magic links ### !! test -Magic links: internal link to RFC (bug 479) +Magic links: internal link to RFC (T2479) !! wikitext [[RFC 123]] !! html/php @@ -10538,7 +10582,7 @@ Magic links: internal link to RFC (bug 479) !! end !! test -Magic links: RFC (bug 479) +Magic links: RFC (T2479) !! wikitext RFC 822 !! html/php @@ -10549,7 +10593,7 @@ RFC 822 !! end !! test -Magic links: RFC (bug 65278) +Magic links: RFC (T67278) !! wikitext This is RFC 822 but thisRFC 822 is not RFC 822linked. !! html/php @@ -10560,7 +10604,7 @@ This is RFC 822 but thisRFC 822 is not RFC 822linked. !! end !! test -Magic links: RFC (w/ non-newline whitespace, bug 28950/29025) +Magic links: RFC (w/ non-newline whitespace, T30950/T31025) !! wikitext RFC       822 RFC @@ -10577,7 +10621,7 @@ RFC !! end !! test -Magic links: ISBN (bug 1937) +Magic links: ISBN (T3937) !! wikitext ISBN 0-306-40615-2 !! html/php @@ -10588,7 +10632,7 @@ ISBN 0-306-40615-2 !! end !! test -Magic links: ISBN (bug 65278) +Magic links: ISBN (T67278) !! wikitext This is ISBN 978-0-316-09811-3 but thisISBN 978-0-316-09811-3 is not ISBN 978-0-316-09811-3linked. !! html/php @@ -10599,7 +10643,7 @@ This is ISBN 978-0-316-09811-3 but thisISBN 978-0-316-09811-3 is not ISBN 978-0- !! end !! test -Magic links: ISBN (w/ non-newline whitespace, bug 28950/29025) +Magic links: ISBN (w/ non-newline whitespace, T30950/T31025) !! wikitext ISBN       978 0 316 09811 3 ISBN @@ -10633,7 +10677,7 @@ PMID 1234 !! end !! test -Magic links: PMID (bug 65278) +Magic links: PMID (T67278) !! wikitext This is PMID 1234 but thisPMID 1234 is not PMID 1234linked. !! html/php @@ -10644,7 +10688,7 @@ This is PMID 1234 but thisPMID 1234 is not PMID 1234linked. !! end !! test -Magic links: PMID (w/ non-newline whitespace, bug 28950/29025) +Magic links: PMID (w/ non-newline whitespace, T30950/T31025) !! wikitext PMID       1234 PMID @@ -10735,7 +10779,7 @@ Template with invalid target containing wikilink !! end !! test -Template with just whitespace in it, bug #68421 +Template with just whitespace in it, T70421 !! wikitext {{echo|{{ }}}} !! html/parsoid @@ -10953,7 +10997,7 @@ Template with complex arguments !! end !! test -BUG 553: link with two variables in a piped link +T2553: link with two variables in a piped link !! wikitext {| |[[{{{1}}}|{{{2}}}]] @@ -11114,7 +11158,7 @@ Template:table !! endarticle !! test -BUG 529: Template with table, not included at beginning of line +T2529: Template with table, not included at beginning of line !! wikitext foo {{table}} !! html @@ -11133,7 +11177,7 @@ foo {{table}} !! end !! test -BUG 523: Template shouldn't eat newline (or add an extra one before table) +T2523: Template shouldn't eat newline (or add an extra one before table) !! wikitext foo {{table}} @@ -11153,7 +11197,7 @@ foo !! end !! test -BUG 41: Template parameters shown as broken links +T2041: Template parameters shown as broken links !! wikitext {{{parameter}}} !! html @@ -11401,7 +11445,7 @@ Template:Includeonly section !!endarticle !! test -Bug 6563: Edit link generation for section shown by +T8563: Edit link generation for section shown by !! wikitext {{includeonly section}} !! html @@ -11412,7 +11456,7 @@ Bug 6563: Edit link generation for section shown by # Uses same input as the contents of [[Template:Includeonly section]] !! test -Bug 6563: Section extraction for section shown by +T8563: Section extraction for section shown by !! options section=T-2 !! wikitext @@ -11425,7 +11469,7 @@ section=T-2 !! end !! test -Bug 6563: Edit link generation for section suppressed by +T8563: Edit link generation for section suppressed by !! wikitext ==Includeonly section== @@ -11437,7 +11481,7 @@ Bug 6563: Edit link generation for section suppressed by !! end !! test -Bug 6563: Section extraction for section suppressed by +T8563: Section extraction for section suppressed by !! options section=1 !! wikitext @@ -12200,11 +12244,11 @@ Templates: HTML Tables: 5. Proper fostering of categories from inside parsoid=wt2html,wt2wt !! wikitext [[Category:foo1]]
      foo
      - + [[Category:bar1]][[Category:bar2]]
      foo
      !! html
      foo
      - +
      foo
      !!end @@ -12516,7 +12560,7 @@ Templates: Ugly templates: 4. newline-only template parameter inconsistency

      !! end -# Bug 64017 -- ugly wikitext with fostered content generates two template ranges that +# T66017 -- ugly wikitext with fostered content generates two template ranges that # have a true overlap (T1-start - T2-start - T1-end - T2-end). !! test Templates: Ugly templates: 5. Template encapsulation test: Non-trivial overlap of template ranges is properly handled @@ -12530,7 +12574,7 @@ Templates: Ugly templates: 5. Template encapsulation test: Non-trivial overlap o !! end -# Bug 64017 -- ugly wikitext with fostered content generates two template ranges +# T66017 -- ugly wikitext with fostered content generates two template ranges # that are "identical" and generate nesting cycles in the algorithm !! test Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of template ranges is properly handled @@ -12621,7 +12665,7 @@ pst MediaWiki !! end -# This is bug 89, which I fixed. -- wtm +# This is T2089, which I fixed. -- wtm !! test pre-save transform: subst: templates with parameters !! options @@ -12639,7 +12683,7 @@ Template:nowikitest !! endarticle !! test -pre-save transform: nowiki in subst (bug 1188) +pre-save transform: nowiki in subst (T3188) !! options pst !! wikitext @@ -12655,7 +12699,7 @@ This template has in it. !! endarticle !! test -pre-save transform: comment in subst (bug 1936) +pre-save transform: comment in subst (T3936) !! options pst !! wikitext @@ -12704,7 +12748,7 @@ Template:dangerous !!endarticle !!test -(confirming safety of fix for subst bug 1936) +(confirming safety of fix for subst T3936) !! wikitext {{Template:dangerous}} !! html @@ -12713,7 +12757,7 @@ Template:dangerous !! end !! test -pre-save transform: comment containing gallery (bug 5024) +pre-save transform: comment containing gallery (T7024) !! options pst !! wikitext @@ -12743,7 +12787,7 @@ pst !!end !! test -pre-save transform: in subst (bug 3298) +pre-save transform: in subst (T5298) !! options pst !! wikitext @@ -12753,7 +12797,7 @@ Foobar !! end !! test -pre-save transform: in subst (bug 3298) +pre-save transform: in subst (T5298) !! options pst !! wikitext @@ -12775,7 +12819,7 @@ Template:SafeSubstTest !! endarticle !! test -bug 22297: safesubst: works during PST +T24297: safesubst: works during PST !! options pst !! wikitext @@ -12785,7 +12829,7 @@ FoobarFoobar !! end !! test -bug 22297: safesubst: works during normal parse +T24297: safesubst: works during normal parse !! wikitext {{SafeSubstTest}} !! html @@ -12943,7 +12987,7 @@ pst title=[[Ns:Somearticle (IGNORED), Context]] !! end !! test -pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149) +pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, T32149) !! options pst !! wikitext @@ -12963,7 +13007,7 @@ pst !! end !! test -pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149) +pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, T32149) !! options pst !! wikitext @@ -12983,7 +13027,7 @@ pst !! end !! test -pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149) +pre-save transform: context links ("pipe trick") with parens and no space (Korean style, T32149) !! options pst !! wikitext @@ -13003,7 +13047,7 @@ pst !! end !! test -pre-save transform: context links ("pipe trick") with commas (bug 21660) +pre-save transform: context links ("pipe trick") with commas (T23660) !! options pst !! wikitext @@ -13054,7 +13098,7 @@ pst !! test -pre-save transform: Signature expansion in nowiki tags (bug 93) +pre-save transform: Signature expansion in nowiki tags (T2093) !! options pst disabled !! wikitext @@ -13177,7 +13221,7 @@ msg !! end !! test -message transform: in transcluded template (bug 4926) +message transform: in transcluded template (T6926) !! options msg !! wikitext @@ -13187,7 +13231,7 @@ Foobar !! end !! test -message transform: in transcluded template (bug 4926) +message transform: in transcluded template (T6926) !! options msg !! wikitext @@ -13309,7 +13353,7 @@ Image with caption !! end !! test -Image with caption, bug 53312 #1 +Image with caption, T55312 #1 !! wikitext [[File:Foobar.jpg|right|Caption page stuff]] !! html/php @@ -13320,7 +13364,7 @@ Image with caption, bug 53312 #1 !! end !! test -Image with caption, bug 53312 #2 +Image with caption, T55312 #2 !! wikitext [[File:Foobar.jpg|right|Caption page=]] !! html/php @@ -13331,7 +13375,7 @@ Image with caption, bug 53312 #2 !! end !! test -Image with caption, bug 53312 #3 +Image with caption, T55312 #3 !! wikitext [[File:Foobar.jpg|right|Caption page=stuff]] !! html/php @@ -13342,7 +13386,7 @@ Image with caption, bug 53312 #3 !! end !! test -Allow empty links in image captions (Bug 60753) +Allow empty links in image captions (T62753) !! options thumbsize=220 !! wikitext @@ -13504,7 +13548,7 @@ Image with multiple widths -- use last !! end !! test -Image with multiple alignments -- use first (bug 48664) +Image with multiple alignments -- use first (T50664) !! options thumbsize=220 !! wikitext @@ -13539,7 +13583,7 @@ Image with width attribute at different positions # a sad bit of backward-compatibility !! test -Image with size specified with pxpx (bug 13500, 51628) +Image with size specified with pxpx (T15500, T53628) !! options parsoid=wt2html,wt2wt,html2html !! wikitext @@ -13561,10 +13605,10 @@ Image with link parameter, wiki target

      Foobar.jpg

      !! html/parsoid -

      +

      !! end -# parsoid bug 49293 (part 1) +# parsoid T51293 (part 1) !! test Image with link parameter, URL target !! wikitext @@ -13576,7 +13620,7 @@ Image with link parameter, URL target

      !! end -# parsoid bug 49293 (part 2) +# parsoid T51293 (part 2) !! test Image with link parameter, protocol-less URL target !! wikitext @@ -13668,7 +13712,7 @@ Image with link parameter (wiki target) and unnamed parameter

      Title

      !! html/parsoid -

      +

      !! end !! test @@ -13720,7 +13764,7 @@ parsoid=wt2html,wt2wt,html2html
      Title
      !! html/parsoid -
      Title
      +
      Title
      !! end !! test @@ -13762,7 +13806,7 @@ parsoid=wt2html,wt2wt,html2html
      alttext
      Title
      !! html/parsoid -
      alttext
      Title
      +
      alttext
      Title
      !! end !! test @@ -13775,7 +13819,7 @@ parsoid=wt2html,wt2wt,html2html
      This is a test image Main Page
      !! html/parsoid -
      This is a test image Main Page
      +
      This is a test image Main Page
      !! end !! test @@ -13788,7 +13832,7 @@ parsoid=wt2html,wt2wt,html2html
      Altitude
      This is a test image Main Page
      !! html/parsoid -
      Altitude
      This is a test image Main Page
      +
      Altitude
      This is a test image Main Page
      !! end !! test @@ -14026,7 +14070,7 @@ Add test with existing image page !! end !! test -bug 18784 Link to non-existent image page with caption should use caption as link text +T20784 Link to non-existent image page with caption should use caption as link text !! wikitext [[:Image:test|caption]] !! html @@ -14111,7 +14155,7 @@ parsoid=wt2html,wt2wt,html2html !! end !! test -BUG 1887: A ISBN with a thumbnail +T3887: A ISBN with a thumbnail !! wikitext [[File:Foobar.jpg|thumb|ISBN 1235467890]] !! html/php @@ -14122,7 +14166,7 @@ BUG 1887: A ISBN with a thumbnail !! end !! test -BUG 1887: A RFC with a thumbnail +T3887: A RFC with a thumbnail !! wikitext [[File:Foobar.jpg|thumb|This is RFC 12354]] !! html/php @@ -14133,7 +14177,7 @@ BUG 1887: A RFC with a thumbnail !! end !! test -BUG 1887: A mailto link with a thumbnail +T3887: A mailto link with a thumbnail !! wikitext [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]] !! html/php @@ -14143,9 +14187,9 @@ BUG 1887: A mailto link with a thumbnail
      Please mailto:nobody@example.com
      !! end -# Pending resolution to bug 368 +# Pending resolution to T2368 !! test -BUG 648: Frameless image caption with a link +T2648: Frameless image caption with a link !! wikitext [[File:Foobar.jpg|text with a [[link]] in it]] !! html/php @@ -14156,7 +14200,7 @@ BUG 648: Frameless image caption with a link !! end !! test -BUG 648: Frameless image caption with a link (suffix) +T2648: Frameless image caption with a link (suffix) !! wikitext [[File:Foobar.jpg|text with a [[link]]foo in it]] !! html/php @@ -14167,7 +14211,7 @@ BUG 648: Frameless image caption with a link (suffix) !! end !! test -BUG 648: Frameless image caption with an interwiki link +T2648: Frameless image caption with an interwiki link !! wikitext [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]] !! html/php @@ -14178,7 +14222,7 @@ BUG 648: Frameless image caption with an interwiki link !! end !! test -BUG 648: Frameless image caption with a piped interwiki link +T2648: Frameless image caption with a piped interwiki link !! wikitext [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]] !! html/php @@ -14232,7 +14276,7 @@ Entities in file name and attributes !! end !! test -BUG 499: Alt text should have Ӓ, not &1234; +T2499: Alt text should have Ӓ, not &1234; !! wikitext [[File:Foobar.jpg|♀]] !! html/php @@ -14252,7 +14296,7 @@ parsoid=wt2html,wt2wt,html2html

      [[Image:Foobar.jpg|thumb|This is a broken caption. But this is just an ordinary link.

      !! html/parsoid -

      [[Image:Foobar.jpg|thumb|This is a broken caption. But this is just an ordinary link.

      +

      [[Image:Foobar.jpg|thumb|This is a broken caption. But this is just an ordinary link.

      !! end !! test @@ -14316,7 +14360,7 @@ and some more text.]] !! end !! test -Bug 3090: External links other than http: in image captions +T5090: External links other than http: in image captions !! wikitext [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]] !! html/php @@ -14365,7 +14409,7 @@ language=es
      caption
      !! html/parsoid -
      caption
      +
      caption
      !! end !! test @@ -14395,7 +14439,7 @@ parsoid=wt2html,wt2wt,html2html # Note that 'right' is the default alignment, despite the misspelled 'righ' below !! test -Invalid image attributes (bug 62500) +Invalid image attributes (T64500) !! options thumbsize=220 parsoid=wt2html,wt2wt,html2html @@ -14739,8 +14783,8 @@ subpage title=[[Subpage test/1/2/3/4]]

      Subpage test/1/2/subpage

      !! html/parsoid -

      subpage

      -

      Subpage_test/1/2/subpage

      +

      subpage

      +

      Subpage_test/1/2/subpage

      !! end !! test @@ -14764,7 +14808,7 @@ Parsoid: dot-slash prefixed wikilinks !! end !! test -Render invalid page names as plain text (bug 51090) +Render invalid page names as plain text (T53090) !! wikitext [[./../foo|bar]] [[foo�|bar]] @@ -14846,7 +14890,7 @@ Disabled subpages !! end !! test -BUG 561: {{/Subpage}} +T2561: {{/Subpage}} !! options subpage title=[[Page]] !! wikitext @@ -15030,12 +15074,12 @@ Bar Bar

      !! html/parsoid -

      Foo Bar

      -

      Foo Bar

      -

      Foo Bar

      -

      Foo Bar

      -

      Foo Bar

      - +

      Foo Bar

      +

      Foo Bar

      +

      Foo Bar

      +

      Foo Bar

      +

      Foo Bar

      + !! end ## We used to, but no longer wt2wt this test since the default serializer @@ -15045,7 +15089,7 @@ Bar ## ## The whitespace on the empty line is part of the test. Please do not delete !! test -1. Categories and newlines: All preceding newlines should be suppressed (courtesy bug 87) +1. Categories and newlines: All preceding newlines should be suppressed (courtesy T2087) !! options parsoid=wt2html !! wikitext @@ -15074,7 +15118,7 @@ This ## ## The whitespace on the empty line is part of the test. Please do not delete !! test -2. Categories and newlines: All preceding newlines should be suppressed (courtesy bug 87) +2. Categories and newlines: All preceding newlines should be suppressed (courtesy T2087) !! options parsoid=wt2html !! wikitext @@ -15270,7 +15314,7 @@ parsoid !! end !! test -Normalize hrefs properly before testing for invalid link targets (bug 70894) +Normalize hrefs properly before testing for invalid link targets (T72894) !! options parsoid=html2wt !! html/parsoid @@ -15315,7 +15359,7 @@ es:Alimento fr:Nourriture zh:食品 !! end !! test -Duplicate interlanguage links (bug 24502) +Duplicate interlanguage links (T26502) !! options ill !! wikitext @@ -15542,7 +15586,7 @@ __FORCETOC__ !! end !! test -TOC with wgMaxTocLevel=3 (bug 6204) +TOC with wgMaxTocLevel=3 (T8204) !! options wgMaxTocLevel=3 !! wikitext @@ -15579,7 +15623,7 @@ wgMaxTocLevel=3 !! end !! test -TOC with wgMaxTocLevel=3 and two level four headings (bug 6204) +TOC with wgMaxTocLevel=3 and two level four headings (T8204) !! options wgMaxTocLevel=3 !! wikitext @@ -15621,7 +15665,7 @@ Resolving duplicate section names !! end !! test -Resolving duplicate section names with differing case (bug 10721) +Resolving duplicate section names with differing case (T12721) !! wikitext == Foo bar == == Foo Bar == @@ -15700,7 +15744,7 @@ __TOC__ !! end !! test -BUG 1219 URL next to image (good) +T3219 URL next to image (good) !! wikitext http://example.com [[File:Foobar.jpg]] !! html/php @@ -15711,7 +15755,7 @@ http://example.com [[File:Foobar.jpg]] !!end !! test -Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910) +Short headings with trailing space should match behavior of Parser::doHeadings (T21910) !! wikitext === The line above must have a trailing space! @@ -15728,7 +15772,7 @@ But just in case it doesn't... !! end !! test -Header with special characters (bug 25462) +Header with special characters (T27462) !! wikitext The tooltips shall not show entities to the user (ie. be double escaped) @@ -15871,7 +15915,7 @@ Headers with excess '=' characters !! end !! test -HTML headers vs TOC (bug 23393) +HTML headers vs TOC (T25393) (__NOEDITSECTION__ for clearer output, doesn't matter here) !! wikitext

      Header 1

      @@ -15928,7 +15972,7 @@ c3--> !! end !! test -BUG 1219 URL next to image (broken) +T3219 URL next to image (broken) !! wikitext http://example.com[[File:Foobar.jpg]] !! html/php @@ -15939,7 +15983,7 @@ http://example.com[[File:Foobar.jpg]] !!end !! test -Bug 1186 news: in the middle of text +T3186 news: in the middle of text !! wikitext http://en.wikinews.org/wiki/Wikinews:Workplace !! html @@ -16067,7 +16111,7 @@ div with braces in attribute value !! wikitext
      Foo
      !! html/php -
      Foo
      +
      Foo
      !! html/parsoid
      Foo
      @@ -16197,22 +16241,22 @@ HTML tag with leading space is parsed as text !! end ### -### Nesting tests (see bug 41545, 50604, 51081) +### Nesting tests (see T43545, T52604, T53081) ### -# This test case is fixed in Parsoid by domino 1.0.12. (bug 50604) +# This test case is fixed in Parsoid by domino 1.0.12. (T52604) # Note that html2wt is considerably more difficult if we use in -# the test case, instead of +# the test case, instead of !! test Ensure that HTML adoption agency algorithm is properly implemented. !! wikitext -XYZ +XYZ !! html -

      XYZ +

      XYZ

      !! end -# This was bug 41545 in the PHP parser. +# This was T43545 in the PHP parser. # Note that tidy doesn't handle this correctly. !! test Nesting of @@ -16223,9 +16267,9 @@ Nesting of

      !! end -# The following cases were bug 51081 in the PHP parser. +# The following cases were T53081 in the PHP parser. # Note that there are some other nestable tags (b, i, etc) which are -# not covered; see bug 51081 for discussion. +# not covered; see T53081 for discussion. # Note that tidy doesn't handle this correctly. !! test @@ -16313,7 +16357,7 @@ Media link with nasty text !! end !! test -Media link to nonexistent file (bug 1702) +Media link to nonexistent file (T3702) !! wikitext [[Media:No such.jpg]] !! html @@ -16322,7 +16366,7 @@ Media link to nonexistent file (bug 1702) !! end !! test -Image link to nonexistent file (bug 1850 - good) +Image link to nonexistent file (T3850 - good) !! wikitext [[File:No_such.jpg]] !! html/php @@ -16333,7 +16377,7 @@ Image link to nonexistent file (bug 1850 - good) !! end !! test -:Image link to nonexistent file (bug 1850 - bad) +:Image link to nonexistent file (T3850 - bad) !! wikitext [[:Image:No such.jpg]] !! html/php @@ -16346,7 +16390,7 @@ Image link to nonexistent file (bug 1850 - good) !! test -Character reference normalization in link text (bug 1938) +Character reference normalization in link text (T3938) !! wikitext [[Main Page|this&that]] !! html @@ -16363,7 +16407,7 @@ The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E !! endarticle !! test -(bug 19451) Links should refer to the normalized form. +(T21451) Links should refer to the normalized form. !! wikitext [[אַ]] [[אַ]] @@ -16380,7 +16424,7 @@ The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E !! end !! test -Empty attribute crash test (bug 2067) +Empty attribute crash test (T4067) !! wikitext foo !! html @@ -16389,7 +16433,7 @@ Empty attribute crash test (bug 2067) !! end !! test -Empty attribute crash test single-quotes (bug 2067) +Empty attribute crash test single-quotes (T4067) !! wikitext foo !! html @@ -16448,7 +16492,7 @@ parsoid=wt2html,html2html !! end !! test -Bug 2095: link with three closing brackets +T4095: link with three closing brackets !! wikitext [[Main Page]]] !! html/php @@ -16459,7 +16503,7 @@ Bug 2095: link with three closing brackets !! end !! test -Bug 2095: link with pipe and three closing brackets +T4095: link with pipe and three closing brackets !! wikitext [[Main Page|link]]] !! html/php @@ -16470,7 +16514,7 @@ Bug 2095: link with pipe and three closing brackets !! end !! test -Bug 2095: link with pipe and three closing brackets, version 2 +T4095: link with pipe and three closing brackets, version 2 !! wikitext [[Main Page|[http://example.com/]]] !! html/php @@ -16504,17 +16548,19 @@ Template:Div style !! endarticle !! test -Bug 2304: HTML attribute safety (safe template; regression bug 2309) +T4304: HTML attribute safety (safe template; regression T4309) !! wikitext
      -!! html +!! html/php
      +!! html/parsoid +
      !! end # Parsoid has enough context to handle this case !! test -Bug 2304: HTML attribute safety (dangerous template; 2309) +T4304: HTML attribute safety (dangerous template; 2309) !! wikitext
      !! html/php @@ -16525,34 +16571,41 @@ Bug 2304: HTML attribute safety (dangerous template; 2309) !! end !! test -Bug 2304: HTML attribute safety (dangerous style template; 2309) +T4304: HTML attribute safety (dangerous style template; 2309) !! wikitext
      -!! html +!! html/php
      +!! html/parsoid +
      !! end !! test -Bug 2304: HTML attribute safety (safe parameter; 2309) +T4304: HTML attribute safety (safe parameter; 2309) !! wikitext {{div style|width: 200px}} -!! html +!! html/php
      Magic div
      +!! html/parsoid +
      Magic div
      !! end !! test -Bug 2304: HTML attribute safety (unsafe parameter; 2309) +T4304: HTML attribute safety (unsafe parameter; 2309) !! wikitext {{div style|width: expression(alert(document.cookie))}} -!! html +!! html/php
      Magic div
      +!! html/parsoid +
      Magic div
      !! end +## Parsoid output here differs; needs investigation. !! test -Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309) +T4304: HTML attribute safety (unsafe breakout parameter; 2309) !! wikitext {{div style|">}} !! html @@ -16560,8 +16613,9 @@ Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309) !! end +## Parsoid output here differs; needs investigation. !! test -Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309) +T4304: HTML attribute safety (unsafe breakout parameter 2; 2309) !! wikitext {{div style|" >}} !! html @@ -16570,7 +16624,7 @@ Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309) !! end !! test -Bug 2304: HTML attribute safety (link) +T4304: HTML attribute safety (link) !! wikitext
      !! html @@ -16579,7 +16633,7 @@ Bug 2304: HTML attribute safety (link) !! end !! test -Bug 2304: HTML attribute safety (italics) +T4304: HTML attribute safety (italics) !! wikitext
      !! html @@ -16588,7 +16642,7 @@ Bug 2304: HTML attribute safety (italics) !! end !! test -Bug 2304: HTML attribute safety (bold) +T4304: HTML attribute safety (bold) !! wikitext
      !! html @@ -16596,9 +16650,8 @@ Bug 2304: HTML attribute safety (bold) !! end - !! test -Bug 2304: HTML attribute safety (ISBN) +T4304: HTML attribute safety (ISBN) !! wikitext
      !! html @@ -16607,7 +16660,7 @@ Bug 2304: HTML attribute safety (ISBN) !! end !! test -Bug 2304: HTML attribute safety (RFC) +T4304: HTML attribute safety (RFC) !! wikitext
      !! html @@ -16616,7 +16669,7 @@ Bug 2304: HTML attribute safety (RFC) !! end !! test -Bug 2304: HTML attribute safety (PMID) +T4304: HTML attribute safety (PMID) !! wikitext
      !! html @@ -16625,7 +16678,7 @@ Bug 2304: HTML attribute safety (PMID) !! end !! test -Bug 2304: HTML attribute safety (web link) +T4304: HTML attribute safety (web link) !! wikitext
      !! html @@ -16634,7 +16687,7 @@ Bug 2304: HTML attribute safety (web link) !! end !! test -Bug 2304: HTML attribute safety (named web link) +T4304: HTML attribute safety (named web link) !! wikitext
      !! html @@ -16643,21 +16696,25 @@ Bug 2304: HTML attribute safety (named web link) !! end !! test -Bug 3244: HTML attribute safety (extension; safe) +T5244: HTML attribute safety (extension; safe) !! wikitext
      -!! html +!! html/php
      +!! html/parsoid +
      !! end !! test -Bug 3244: HTML attribute safety (extension; unsafe) +T5244: HTML attribute safety (extension; unsafe) !! wikitext
      -!! html +!! html/php
      +!! html/parsoid +
      !! end # More MSIE fun discovered by Tom Gilder @@ -16666,96 +16723,119 @@ Bug 3244: HTML attribute safety (extension; unsafe) MSIE CSS safety test: spurious slash !! wikitext
      evil
      -!! html +!! html/php
      evil
      +!! html/parsoid +
      evil
      !! end !! test MSIE CSS safety test: hex code !! wikitext
      evil
      -!! html +!! html/php
      evil
      +!! html/parsoid +
      evil
      !! end !! test MSIE CSS safety test: comment in url !! wikitext
      evil
      -!! html +!! html/php
      evil
      +!! html/parsoid +
      evil
      !! end !! test MSIE CSS safety test: comment in expression !! wikitext
      evil4
      -!! html +!! html/php
      evil4
      +!! html/parsoid +
      evil4
      !! end !! test -CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567) +CSS safety test (all browsers): vertical tab (T57332 / CVE-2013-4567) !! wikitext

      A

      -!! html +!! html/php

      A

      +!! html/parsoid +

      A

      !! end !! test -MSIE 6 CSS safety test: Fullwidth (bug 55332) +MSIE 6 CSS safety test: Fullwidth (T57332) !! wikitext

      A

      B
      -!! html +!! html/php

      A

      B
      +!! html/parsoid +

      A

      +
      B
      !! end !! test -MSIE 6 CSS safety test: IPA extensions (bug 55332) +MSIE 6 CSS safety test: IPA extensions (T57332) !! wikitext
      A

      B

      -!! html +!! html/php
      A

      B

      +!! html/parsoid +
      A
      +

      B

      !! end !! test -MSIE 6 CSS safety test: sup/sub script (bug 55332) +MSIE 6 CSS safety test: sup/sub script (T57332) !! wikitext
      A
      B

      C

      -!! html +!! html/php
      A
      B

      C

      +!! html/parsoid +
      A
      +
      B
      +

      C

      !! end -# FIXME: Parsoid fails to sanitize this! See T58846. !! test Opera -o-link CSS +!! options +parsoid=wt2html,html2html !! wikitext
      X
      -!! html +!! html/php
      X
      +!! html/parsoid +
      X
      !! end !! test -MSIE 6 CSS safety test: Repetition markers (bug 55332) +MSIE 6 CSS safety test: Repetition markers (T57332) !! wikitext

      A

      B

      @@ -16764,7 +16844,7 @@ MSIE 6 CSS safety test: Repetition markers (bug 55332)

      E

      F

      G

      -!! html +!! html/php

      A

      B

      C

      @@ -16773,6 +16853,14 @@ MSIE 6 CSS safety test: Repetition markers (bug 55332)

      F

      G

      +!! html/parsoid +

      A

      +

      B

      +

      C

      +

      D

      +

      E

      +

      F

      +

      G

      !! end !! test @@ -16828,7 +16916,7 @@ Template:Identity !! endarticle !! test -Expansion of multi-line templates in attribute values (bug 6255) +Expansion of multi-line templates in attribute values (T8255) !! wikitext
      -
      !! html @@ -16836,22 +16924,21 @@ Expansion of multi-line templates in attribute values (bug 6255) !! end - !! test -Expansion of multi-line templates in attribute values (bug 6255 sanity check) +Expansion of multi-line templates in attribute values (T8255 sanity check) !! wikitext -
      -
      !! html/php
      -
      !! html/parsoid -
      -
      !! end !! test -Expansion of multi-line templates in attribute values (bug 6255 sanity check 2) +Expansion of multi-line templates in attribute values (T8255 sanity check 2) !! wikitext
      -
      !! html @@ -16870,6 +16957,7 @@ Tags which are hidden from Tidy cannot pass through the Sanitizer ### ### Parser hooks (see tests/parser/parserTestsParserHook.php for the extension) ### + !! test Parser hook: empty input !! wikitext @@ -17026,7 +17114,7 @@ array ( !! end !! test -Parser hook: argument containing a forward slash (bug 5344) +Parser hook: argument containing a forward slash (T7344) !! wikitext !! html/php @@ -17043,7 +17131,7 @@ array ( ## Don't expect parsoid to rt this form. !! test -Parser hook: empty input using terminated empty elements (bug 2374) +Parser hook: empty input using terminated empty elements (T4374) !! options parsoid=wt2html,html2html !! wikitext @@ -17063,7 +17151,7 @@ array ( ## should be output literally since there is no matching tag that begins it ## Don't expect parsoid to rt this form. !! test -Parser hook: basic arguments using terminated empty elements (bug 2374) +Parser hook: basic arguments using terminated empty elements (T4374) !! options parsoid=wt2html !! wikitext @@ -17227,7 +17315,7 @@ Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id= # In HTML5, the restrictions are that id must contain at least one character, # and must not contain any space characters. !! test -Sanitizer: Validating the contents of the id attribute (bug 4515) +Sanitizer: Validating the contents of the id attribute (T6515) !! options disabled !! wikitext @@ -17238,7 +17326,7 @@ Something ... # In HTML5, id must be unique amongst all the ids in the element's home subtree. !! test -Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301) +Sanitizer: Validating id attribute uniqueness (T6515, T8301) !! options disabled !! wikitext @@ -17272,7 +17360,7 @@ Sanitizer: Validating that and work, but only for Microdata !! end !! test -Language converter: output gets cut off unexpectedly (bug 5757) +Language converter: output gets cut off unexpectedly (T7757) !! options language=zh !! wikitext @@ -17292,7 +17380,7 @@ all additional text is vanished !! end !! test -Self closed html pairs (bug 5487) +Self closed html pairs (T7487) !! options !! wikitext
      Centered text
      @@ -17317,7 +17405,7 @@ C'est grave ! !! end !! test -Punctuation: CSS !important (bug 11874) +Punctuation: CSS !important (T13874) !! wikitext
      important
      !! html @@ -17326,7 +17414,7 @@ Punctuation: CSS !important (bug 11874) !!end !! test -Punctuation: CSS ! important (bug 11874; with space after) +Punctuation: CSS ! important (T13874; with space after) !! wikitext
      important
      !! html @@ -17335,7 +17423,7 @@ Punctuation: CSS ! important (bug 11874; with space after) !!end !! test -HTML bullet list, closed tags (bug 5497) +HTML bullet list, closed tags (T7497) !! wikitext
      • One
      • @@ -17356,7 +17444,7 @@ HTML bullet list, closed tags (bug 5497) !! end !! test -HTML bullet list, unclosed tags (bug 5497) +HTML bullet list, unclosed tags (T7497) !! wikitext
        • One @@ -17376,7 +17464,7 @@ HTML bullet list, unclosed tags (bug 5497) !! end !! test -HTML ordered list, closed tags (bug 5497) +HTML ordered list, closed tags (T7497) !! wikitext
          1. One
          2. @@ -17397,7 +17485,7 @@ HTML ordered list, closed tags (bug 5497) !! end !! test -HTML ordered list, unclosed tags (bug 5497) +HTML ordered list, unclosed tags (T7497) !! options !! wikitext
              @@ -17418,7 +17506,7 @@ HTML ordered list, unclosed tags (bug 5497) !! end !! test -HTML nested bullet list, closed tags (bug 5497) +HTML nested bullet list, closed tags (T7497) !! wikitext
              • One
              • @@ -17453,7 +17541,7 @@ HTML nested bullet list, closed tags (bug 5497) !! end !! test -HTML nested bullet list, open tags (bug 5497) +HTML nested bullet list, open tags (T7497) !! wikitext
                • One @@ -17490,7 +17578,7 @@ HTML nested bullet list, open tags (bug 5497) !! end !! test -HTML nested ordered list, closed tags (bug 5497) +HTML nested ordered list, closed tags (T7497) !! wikitext
                  1. One
                  2. @@ -17515,7 +17603,7 @@ HTML nested ordered list, closed tags (bug 5497) !! end !! test -HTML nested ordered list, open tags (bug 5497) +HTML nested ordered list, open tags (T7497) !! wikitext
                    1. One @@ -17562,9 +17650,9 @@ HTML ordered list item with parameters oddity !! end -# parsoid doesn't explicitly mark autonumbered links, see bug 53505 +# parsoid doesn't explicitly mark autonumbered links, see T55505 !!test -bug 5918: autonumbering +T7918: autonumbering !! wikitext [http://first/] [http://second] [ftp://ftp] @@ -17771,7 +17859,7 @@ MOVE YOUR MOUSE CURSOR OVER THIS TEXT #
                    2. # }}}blah" onmouseover="alert('hello world');" align="left"MOVE MOUSE CURSOR OVER HERE !!test -Fuzz testing: Parser25 (bug 6055) +Fuzz testing: Parser25 (T8055) !! wikitext {{{ | @@ -17808,7 +17896,7 @@ http://example.comjunk

                      http://example.comjunk

                      !! end -!!test +!! test Fuzz testing: URL adjacent extension (no space, dirty; pre) !! wikitext http://example.com
                      junk
                      @@ -17821,10 +17909,10 @@ http://example.com
                      junk
                      junk
    !! html/parsoid -

    http://example.com

    junk
    -!!end +

    http://example.com

    junk
    +!! end -!!test +!! test Fuzz testing: image with bogus manual thumbnail !! wikitext [[Image:foobar.jpg|thumbnail= ]] @@ -17833,19 +17921,21 @@ Fuzz testing: image with bogus manual thumbnail !! html/parsoid
    -!!end +!! end !! test -Fuzz testing: encoded newline in generated HTML replacements (bug 6577) +Fuzz testing: encoded newline in generated HTML replacements (T8577) !! wikitext
    
    -!! html
    +!! html/php
     
    
     
    +!! html/parsoid
    +
    
     !! end
     
     !! test
    -Parsing optional HTML elements (Bug 6171)
    +Parsing optional HTML elements (T8171)
     !! options
     !! wikitext
     
    @@ -17867,7 +17957,7 @@ Parsing optional HTML elements (Bug 6171)
     !! end
     
     !! test
    -Correct handling of  (Bug 6171)
    +Correct handling of  (T8171)
     !! options
     !! wikitext
     
    ,
    ,
    @@ -17963,7 +18053,7 @@ Special page transclusion !! end !! test -Special page transclusion twice (bug 5021) +Special page transclusion twice (T7021) !! options !! wikitext {{Special:Prefixindex/Xyzzyx}} @@ -18344,7 +18434,7 @@ section=2 ==b== !! end -# Formerly testing for bug 2587, now resolved by the use of unmarked sections +# Formerly testing for T4587, now resolved by the use of unmarked sections # instead of respecting commented sections !! test Section extraction prefixed by comment (section 1) @@ -18368,7 +18458,7 @@ section=2 !!end -# Formerly testing for bug 2607, now resolved by the use of unmarked sections +# Formerly testing for T4607, now resolved by the use of unmarked sections # instead of respecting HTML-style headings !! test Section extraction, mixed wiki and html (section 1) @@ -18403,7 +18493,7 @@ two !! end -# Formerly testing for bug 3342 +# Formerly testing for T5342 !! test Section extraction, heading surrounded by !! options @@ -18415,7 +18505,7 @@ section=1 ==marked== !!end -# Test behavior of bug 19910 +# Test behavior of T21910 !! test Sectiion with all-equals !! options @@ -18763,7 +18853,7 @@ xxx !! end !! test -Section replacement test with initial whitespace (bug 13728) +Section replacement test with initial whitespace (T15728) !! options replace=2,"xxx" !! wikitext @@ -18778,7 +18868,7 @@ xxx !! test -Section extraction, heading followed by pre with 20 spaces (bug 6398) +Section extraction, heading followed by pre with 20 spaces (T8398) !! options section=1 !! wikitext @@ -18790,7 +18880,7 @@ section=1 !! end !! test -Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check) +Section extraction, heading followed by pre with 19 spaces (T8398 sanity check) !! options section=1 !! wikitext @@ -18803,7 +18893,7 @@ section=1 !! test -Section extraction,
     around bogus header (bug 10309)
    +Section extraction, 
     around bogus header (T12309)
     !! options
     section=2
     !! wikitext
    @@ -18820,7 +18910,7 @@ stuff
     !! end
     
     !! test
    -Section replacement, 
     around bogus header (bug 10309)
    +Section replacement, 
     around bogus header (T12309)
     !! options
     replace=2,"xxx"
     !! wikitext
    @@ -18840,7 +18930,6 @@ stuff
     xxx
     !! end
     
    -
     !! test
     Handling of 
     in URLs
     !! wikitext
    @@ -18849,9 +18938,7 @@ Handling of 
     in URLs
     
     
     !! html/parsoid
    -
    +
     !! end
     
     !! test
    @@ -18865,7 +18952,6 @@ Handling of %0A in URLs
     
     !! end
     
    -
     # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
     !! test
     5 quotes, code coverage +1 line
    @@ -19437,28 +19523,49 @@ File:Foobar.jpg|alt=galleryalt|link=http://www.example.org
     !! end
     
     !! test
    -Gallery override link with malicious javascript (T36852)
    +Gallery override link with absolute external link with LanguageConverter
     !! options
    -parsoid={
    -  "modes": ["wt2html", "html2html"],
    -  "nativeGallery": true
    -}
    -!! wikitext
    +language=zh
    +!! input
     
    -File:Foobar.jpg|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
    +File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
     
    -!! html/php
    +!! result
     
     
    -!! html/parsoid
    -
     !! end
     
    +!! test
    +Serialize gallery without attrs in data-mw
    +!! options
    +parsoid={
    +  "modes": ["html2wt"],
    +  "nativeGallery": true
    +}
    +!! html/parsoid
    +
    +!! wikitext
    +
    +File:Test.png
    +
    +!! end
    +
     !! test
     HTML Hex character encoding (spells the word "JavaScript")
     !! options
    @@ -19504,7 +19629,7 @@ parsoid=wt2html,wt2wt,html2html
     !! end
     
     !! test
    -HTML Hex character encoding bogus encoding (bug 26437 regression check)
    +HTML Hex character encoding bogus encoding (T28437 regression check)
     !! wikitext
     &#xsee;&#XSEE;
     !! html/php
    @@ -19643,7 +19768,7 @@ ISBN 1234567890
     !! end
     
     !! test
    -Bug 22905:  followed by ISBN followed by 
    +T24905:  followed by ISBN followed by 
     !! wikitext
     (fr) ISBN 2753300917 [http://www.example.com example.com]
     !! html/php
    @@ -19771,7 +19896,6 @@ dt/dd/dl test
     
     !!end
     
    -
     # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "" tag.
     !! test
     Images with the "|" character in the comment
    @@ -19781,7 +19905,7 @@ Images with the "|" character in the comment
     
    An external URL
    !! html/parsoid -
    An external URL
    +
    An external URL
    !! end !! test @@ -20079,7 +20203,7 @@ ISBN 12345678901 !! test -ISBN with trailing year (bug 8110) +ISBN with trailing year (T9110) !! wikitext ISBN 1-234-56789-0 - 2006 @@ -20128,7 +20252,7 @@ anchorencode deals with templates !! end !! test -anchorencode encodes like the TOC generator: (bug 18431) +anchorencode encodes like the TOC generator: (T20431) !! wikitext === _ +:.3A%3A&&]] === {{anchorencode: _ +:.3A%3A&&]] }} @@ -20140,7 +20264,7 @@ __NOEDITSECTION__ !! end !! test -Bug 6200: blockquotes and paragraph formatting +T8200: blockquotes and paragraph formatting !! wikitext
    foo @@ -20161,7 +20285,7 @@ bar !! end !! test -Bug 8293: Use of center tag ruins paragraph formatting +T10293: Use of center tag ruins paragraph formatting !! wikitext
    foo @@ -20323,7 +20447,7 @@ blah ## This wikitext usage is going to be fairly uncommon in production and ## selser will take care of preserving formatting in those scenarios. !! test -Don't convert blue categorylinks to another variant (bug 33210) +Don't convert blue categorylinks to another variant (T35210) !! options cat language=zh @@ -20333,8 +20457,8 @@ parsoid=wt2html !! html/php cat=分类 sort= !! html/parsoid -

    A

    - +

    A

    + !! end !! test @@ -20492,7 +20616,7 @@ Should be stripped! !! end !! test -Bug 24072: more test on conversion rule for title +T26072: more test on conversion rule for title !! options language=zh variant=zh-tw showtitle !! wikitext @@ -20606,6 +20730,28 @@ Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiw

    !! end +!! test +HTML markups with conversion syntax in attribs, nested in other conversion blocks +!! options +language=zh variant=zh-cn +!! wikitext +-{zh;zh-hans;zh-hant|A}- +!! html +

    A +

    +!! end + +!! test +HTML markups with conversion syntax in attribs, nested in other conversion blocks (not working yet) +!! options +language=zh variant=zh-cn disabled +!! wikitext +-{A}- +!! html +

    A +

    +!! end + # Since Parsoid is starting to emit canonical wikitext for links, # [http://example.com http://example.com] will not RT back to that # form anymore. @@ -20753,19 +20899,61 @@ File:foobar.jpg|{{Test|unamedParam|alt=-{R|param}-}}|alt=galleryalt !! end -# FIXME: This test is currently broken in the PHP parser (bug 52661) !! test -Don't break list handling if language converter markup is in the item. +T153135: Don't break list handling if language converter markup is in the item. !! options language=zh variant=zh-cn !! wikitext ;-{zh-cn:AAA;zh-tw:BBB}- +;-{R|foo:bar}- +!! html/php +
    AAA
    +
    foo:bar
    + +!! html/parsoid +
    +
    +
    +
    +!! end + +// Note that parsoid does not protect colons unless language converter +// markup is properly nested, because it is a backtracking parser. +!! test +T153135: Unclosed markup in definition list (code coverage) +!! options +language=zh variant=zh-cn +!! wikitext +;foo:bar +;-{zh-cn:AAA !! html/php -
    在手动语言转换规则中检测到错误
    +
    foo:bar
    +
    -{zh-cn:AAA
    !! html/parsoid -
    AAA -
    +
    +
    foo:bar
    + +
    -{zh-cn
    +
    AAA
    +
    +!! end + +!! test +T153135: Nested language converter markup in definition list (code coverage) +!! options +language=zh variant=zh-cn +!! wikitext +;-{zh-cn:AAA -{zh-hans|foo:bar}- -{R|bat:baz}-}-:def +!! html/php +
    AAA foo:bar bat:baz
    +
    def
    + +!! html/parsoid +
    +
    +
    def
    +
    !! end !! test @@ -20794,7 +20982,7 @@ language=sr variant=sr-ec !! end !! test -Bug 529: Uncovered bullet +T2529: Uncovered bullet !! wikitext * Foo {{bullet}} !! html @@ -20810,7 +20998,7 @@ Bug 529: Uncovered bullet # To test realistic parsing behavior, apply a tidy-like transformation to both # the expected output and your parser's output. !! test -Bug 529: Uncovered bullet leaving empty list, normally removed by tidy +T2529: Uncovered bullet leaving empty list, normally removed by tidy !! wikitext ******* Foo {{bullet}} !! html @@ -20820,7 +21008,7 @@ Bug 529: Uncovered bullet leaving empty list, normally removed by tidy !! end !! test -Bug 529: Uncovered table already at line-start +T2529: Uncovered table already at line-start !! wikitext x @@ -20843,7 +21031,7 @@ y !! end !! test -Bug 529: Uncovered bullet in parser function result +T2529: Uncovered bullet in parser function result !! wikitext * Foo {{lc:{{bullet}} }} !! html @@ -20853,7 +21041,7 @@ Bug 529: Uncovered bullet in parser function result !! end !! test -Bug 5678: Double-parsed template argument +T7678: Double-parsed template argument !! wikitext {{lc:{{{1}}}|hello}} !! html @@ -20862,7 +21050,7 @@ Bug 5678: Double-parsed template argument !! end !! test -Bug 5678: Double-parsed template invocation +T7678: Double-parsed template invocation !! wikitext {{lc:{{paramtest {{!}} param = hello }} }} !! html @@ -20871,7 +21059,7 @@ Bug 5678: Double-parsed template invocation !! end !! test -Case insensitivity of parser functions for non-ASCII characters (bug 8143) +Case insensitivity of parser functions for non-ASCII characters (T10143) !! options language=cs title=[[Main Page]] @@ -21016,9 +21204,9 @@ B

    !! end -# Bug 6200:
    should behave like
    with respect to line breaks +# T8200:
    should behave like
    with respect to line breaks !! test -Bug 6200: paragraphs inside blockquotes (no extra line breaks) +T8200: paragraphs inside blockquotes (no extra line breaks) !! wikitext
    Line one @@ -21034,7 +21222,7 @@ Line two
    !! end !! test -Bug 6200: paragraphs inside blockquotes (extra line break on open) +T8200: paragraphs inside blockquotes (extra line break on open) !! wikitext
    Line one @@ -21053,7 +21241,7 @@ Line two
    !! end !! test -Bug 6200: paragraphs inside blockquotes (extra line break on close) +T8200: paragraphs inside blockquotes (extra line break on close) !! wikitext
    Line one @@ -21073,7 +21261,7 @@ Line two !! end !! test -Bug 6200: paragraphs inside blockquotes (extra line break on open and close) +T8200: paragraphs inside blockquotes (extra line break on open and close) !! wikitext
    Line one @@ -21178,7 +21366,7 @@ Free external link invading image caption !! end !! test -Bug 15196: localised external link numbers +T17196: localised external link numbers !! options language=fa !! wikitext @@ -21315,7 +21503,7 @@ comment local title=[[Main Page]] !!end !! test -Edit comment with subpage link (bug 14080) +Edit comment with subpage link (T16080) !! options comment subpage @@ -21327,7 +21515,7 @@ Poked at a /su !!end !! test -Edit comment with subpage link and link text (bug 14080) +Edit comment with subpage link and link text (T16080) !! options comment subpage @@ -21339,7 +21527,7 @@ Poked at a nea !!end !! test -Edit comment with bogus subpage link in non-subpage NS (bug 14080) +Edit comment with bogus subpage link in non-subpage NS (T16080) !! options comment title=[[Subpage test]] @@ -21415,7 +21603,7 @@ Created page with "<noinclude>ABC3D% ++ +%20 !! end -# Parsoid doesn't support this yet: see bug 73581 +# Parsoid doesn't support this yet: see T75581 # but it *should* omit the 'src' attribute if the image is bad. # PHP side of tests was disabled in # mediawiki/core:6bd31e7d95161a6e88fa86df60871051da997c3c @@ -21451,7 +21639,7 @@ Bad images - basic functionality !! end !! test -Bad images - bug 16039: text after bad image disappears +Bad images - T18039: text after bad image disappears !! wikitext Foo bar [[File:Bad.jpg]] @@ -21467,7 +21655,7 @@ Bar foo

    !! end !! test -Verify that displaytitle works (bug #22501) no displaytitle +Verify that displaytitle works (T24501) no displaytitle !! options showtitle !! config @@ -21482,7 +21670,7 @@ Parser test !! end !! test -Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false +Verify that displaytitle works (T24501) RestrictDisplayTitle=false !! options showtitle title=[[Screen]] @@ -21499,7 +21687,7 @@ whatever !! end !! test -Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch +Verify that displaytitle works (T24501) RestrictDisplayTitle=true mismatch !! options showtitle title=[[Screen]] @@ -21516,7 +21704,7 @@ Screen !! end !! test -Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching +Verify that displaytitle works (T24501) RestrictDisplayTitle=true matching !! options showtitle title=[[Screen]] @@ -21533,7 +21721,7 @@ screen !! end !! test -Verify that displaytitle works (bug #22501) AllowDisplayTitle=false +Verify that displaytitle works (T24501) AllowDisplayTitle=false !! options showtitle title=[[Screen]] @@ -21550,7 +21738,7 @@ Screen !! end !! test -Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE +Verify that displaytitle works (T24501) AllowDisplayTitle=false no DISPLAYTITLE !! options showtitle title=[[Screen]] @@ -21565,7 +21753,7 @@ Screen !! end !! test -Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value +Verify that displaytitle handles inline CSS styles (T28547) - rejected value !! options showtitle title=[[Screen]] @@ -21582,7 +21770,7 @@ this is not the the title !! end !! test -Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value +Verify that displaytitle handles inline CSS styles (T28547) - accepted value !! options showtitle title=[[Screen]] @@ -21715,7 +21903,7 @@ preload !! end !! test -Play a bit with r67090 and bug 3158 +Play a bit with r67090 and T5158 !! wikitext
     
     
    @@ -21762,7 +21950,7 @@ Strip reserved data attributes !! end !! test -percent-encoding and + signs in internal links (Bug 26410) +percent-encoding and + signs in internal links (T28410) !! wikitext [[User:+%]] [[Page+title%]] [[%+]] [[%+|%20]] [[%+ ]] [[%+r]] @@ -21782,7 +21970,7 @@ percent-encoding and + signs in internal links (Bug 26410) !! end !! test -Special characters in embedded file links (bug 27679) +Special characters in embedded file links (T29679) !! wikitext [[File:Contains & ampersand.jpg]] [[File:Does not exist.jpg|Title with & ampersand]] @@ -21805,7 +21993,7 @@ Text's been normalized? !! end !! test -Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links +T21052 U+3000 IDEOGRAPHIC SPACE should terminate free external links !! wikitext http://www.example.org/ <-- U+3000 (vim: ^Vu3000) !! html @@ -21814,7 +22002,7 @@ http://www.example.org/ <-- U+3000 (vim: ^Vu3000) !! end !! test -Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links +T21052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links !! wikitext [http://www.example.org/ ideograms] !! html @@ -21823,7 +22011,7 @@ Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links !! end !! test -Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links +T21052 U+3000 IDEOGRAPHIC SPACE should terminate external images links !! wikitext http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000) !! html @@ -21851,7 +22039,7 @@ Template:Identical !! endarticle !! test -Bug 31098 Template which includes system messages which includes the template +T33098 Template which includes system messages which includes the template !! wikitext {{Identical}} !! html @@ -21861,7 +22049,7 @@ Bug 31098 Template which includes system messages which includes the template !! end !! test -Bug31490 Turkish: ucfirst 'blah' +T33490 Turkish: ucfirst 'blah' !! options language=tr !! wikitext @@ -21872,7 +22060,7 @@ language=tr !! end !! test -Bug31490 Turkish: ucfirst 'ix' +T33490 Turkish: ucfirst 'ix' !! options language=tr !! wikitext @@ -21883,7 +22071,7 @@ language=tr !! end !! test -Bug31490 Turkish: lcfirst 'BLAH' +T33490 Turkish: lcfirst 'BLAH' !! options language=tr !! wikitext @@ -21894,7 +22082,7 @@ language=tr !! end !! test -Bug31490 Turkish: ucfırst (with a dotless i) +T33490 Turkish: ucfırst (with a dotless i) !! options language=tr !! wikitext @@ -21905,7 +22093,7 @@ language=tr !! end !! test -Bug31490 ucfırst (with a dotless i) with English language +T33490 ucfırst (with a dotless i) with English language !! options language=en !! wikitext @@ -21916,7 +22104,7 @@ language=en !! end !! test -Bug 26375: TOC with italics +T28375: TOC with italics !! options title=[[Main Page]] !! wikitext @@ -21934,7 +22122,7 @@ __TOC__ !! end !! test -Bug 26375: TOC with bold +T28375: TOC with bold !! options title=[[Main Page]] !! wikitext @@ -21952,7 +22140,7 @@ __TOC__ !! end !! test -Bug 33845: Headings become cursive in TOC when they contain an image +T35845: Headings become cursive in TOC when they contain an image !! options title=[[Main Page]] !! wikitext @@ -21970,7 +22158,7 @@ __TOC__ !! end !! test -Bug 33845 (2): Headings become bold in TOC when they contain a blockquote +T35845 (2): Headings become bold in TOC when they contain a blockquote !! options title=[[Main Page]] !! wikitext @@ -22125,7 +22313,7 @@ __TOC__ !! end !! test -Bug 72884: bdi element in ToC +T74884: bdi element in ToC !! wikitext __TOC__ == test == @@ -22188,17 +22376,17 @@ __TOC__ !! end !! article -MediaWiki:Bug32057 +MediaWiki:T34057 !! text == {{int:headline_sample}} == !! endarticle !! test -Bug 32057: Title needed when expanding nodes. +T34057: Title needed when expanding nodes. !! options title=[[Main Page]] !! wikitext -{{int:Bug32057}} +{{int:T34057}} !! html

    Headline text[edit]

    @@ -22262,7 +22450,7 @@ language=be-tarask !! end !! test -Wrong option for formatNum (bug 56199) +Wrong option for formatNum (T58199) !! wikitext {{formatnum:1,234.56|Random}} {{formatnum:1,234.56|EVERYTHING}} @@ -22313,7 +22501,7 @@ Strip marker in anchorencode !! end !! test -nowiki inside link inside heading (bug 18295) +nowiki inside link inside heading (T20295) !! wikitext ==[[foo|xyz]]== !! html @@ -22322,7 +22510,7 @@ nowiki inside link inside heading (bug 18295) !! end !! test -new support for bdi element (bug 31817) +new support for bdi element (T33817) !! wikitext

    ולדימיר לנין (ברוסית: Владимир Ленин, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.

    !! html @@ -22349,101 +22537,6 @@ Ignore pipe between table row attributes !! end -!!test -Gallery override link with WikiLink (bug 34852) -!! wikitext - -File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink - -!! html - - -!! end - -!!test -Gallery override link with absolute external link (bug 34852) -!! wikitext - -File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org - -!! html - - -!! end - -!! test -Gallery override link with absolute external link with LanguageConverter -!! options -language=zh -!! input - -File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org - -!! result - - -!! end - -!!test -Gallery override link with malicious javascript (bug 34852) -!! wikitext - -File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!'); - -!! html - - -!! end - -!!test -Gallery with invalid title as link (bug 43964) -!! wikitext - -File:foobar.jpg|link=< - -!! html - - -!! end - !!test Language parser function !! wikitext @@ -22478,7 +22571,7 @@ Special:Foobar !! end !!test -Bug 34939 - Case insensitive link parsing ([HttP://]) +T36939 - Case insensitive link parsing ([HttP://]) !! wikitext [HttP://MediaWiki.Org/] !! html/php @@ -22489,7 +22582,7 @@ Bug 34939 - Case insensitive link parsing ([HttP://]) !! end !!test -Bug 34939 - Case insensitive link parsing ([HttP:// title]) +T36939 - Case insensitive link parsing ([HttP:// title]) !! wikitext [HttP://MediaWiki.Org/ MediaWiki] !! html @@ -22498,7 +22591,7 @@ Bug 34939 - Case insensitive link parsing ([HttP:// title]) !! end !!test -Bug 34939 - Case insensitive link parsing (HttP://) +T36939 - Case insensitive link parsing (HttP://) !! wikitext HttP://MediaWiki.Org/ !! html/php @@ -22560,7 +22653,7 @@ parsoid=wt2html,wt2wt #### Parsoid-specific functionality tests #### ----------------------------------------------------------------- -# Bug 63642/66749: Formatting elt fixup around images is cleaned up. +# T65642/T68749: Formatting elt fixup around images is cleaned up. # We know wt2wt will fail, but we expect selser to pass. # Due to the nature of our testing, wt2wt and selser tests will enter the # blacklist and we'll catch selser regressions based on changes to the @@ -22626,573 +22719,6 @@ parsoid=wt2html,wt2wt

    !! end -#### ---------------------------------------------------------------- -#### Parsoid-only testing of Parsoid's impl of and -#### tags. Parsoid's output for these tags differs from that of the -#### PHP parser. -#### ---------------------------------------------------------------- - -!!test -Ref: 1. ref-location should be replaced with an index span -!! wikitext -A foo -B foo -C - -!! html/parsoid -

    A [1] -B [2] -C [3]

    -
      -
    1. ↑ foo
    2. -
    3. ↑ foo
    4. -
    5. ↑
    6. -
    -!!end - -!!test -Ref: 2. ref-tags with identical names should all get the same index -!! wikitext -A foo -B - -!! html/parsoid -

    A [1] -B [1]

    -
      -
    1. 1 2 foo
    2. -
    -!!end - -!!test -Ref: 3. spaces in ref-names should be ignored -!! wikitext -A foo -B -C - -!! html/parsoid -

    A [1] -B [1] -C [1]

    -
      -
    1. 1 2 3 foo
    2. -
    -!!end - -# NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly) -!!test -Ref: 4. 'constructor' should be accepted as a valid ref-name -!! wikitext -A foo - -!! html/parsoid -

    A [1]

    -
      -
    1. ↑ foo
    2. -
    -!!end - -!!test -Ref: 5. body should accept generic wikitext -!! wikitext -A - This is a '''[[bolded link]]''' and this is a {{echo|transclusion}} - - - -!! html/parsoid -

    A [1]

    - -
      -
    1. ↑ This is a bolded link and this is a transclusion -
    2. -
    -!!end - -!!test -Ref: 6. indent-pres should not be output in ref-body -!! wikitext -A - foo - bar - baz - - - -!! html/parsoid -

    A [1]

    - -
      -
    1. ↑ foo - bar - baz -
    2. -
    -!!end - -!!test -Ref: 7. No p-wrapping in ref-body -!! wikitext -A -foo - -bar - - -baz - - - -booz - - - -!! html/parsoid -

    A [1]

    - -
      -
    1. ↑ foo - -bar - - -baz - - - -booz -
    2. -
    -!!end - -!!test -Ref: 8. transclusion wikitext has lower precedence -!! wikitext -A foo {{echo| B C}} - - -!! html/parsoid -

    A [1] B C}}

    -
      -
    1. ↑ foo {{echo|
    2. -
    -!!end - -!!test -Ref: 9. unclosed comments should not leak out of ref-body -!! wikitext -A foo - -!!end - -!!test -Ref: 10. Unclosed HTML tags should not leak out of ref-body -!! wikitext -A foo B C - - -!! html/parsoid -

    A [1] B C

    - - -
      -
    1. ↑ foo
    2. -
    -!!end - -!!test -Ref: 11. ref-tags acts like an inline element wrt P-wrapping -!! wikitext -A foo B -C bar D - -!! html/parsoid -

    A [1] B -C [2] D

    -
      -
    1. ↑ foo
    2. -
    3. ↑ bar
    4. -
    -!!end - -!!test -Ref: 12. ref-tags act as trailing newline migration barrier -!! wikitext -a - -b - - -c - -!! html/parsoid -

    a

    - - -

    b [1] -[2]

    - -

    c

    -
      -
    1. ↑
    2. -
    3. ↑
    -!!end - -!!test -Ref: 13. ref-tags are not SOL-transparent and block indent-pres -!! wikitext -foo A -bar - B - -!! html/parsoid -

    [1] A -[2] B

    -
      -
    1. ↑ foo
    2. -
    3. ↑ bar -
    4. -
    -!!end - -## Roundtripping fails because of nowiki'ing -!! test -Ref: 14. A nested ref-tag should be emitted as plain text -!! options -parsoid=wt2html -!! wikitext -foo bar baz - - -!! html/parsoid -

    [1] baz</ref>

    - -
    1. ↑ foo <ref>bar
    -!! end - -!!test -Ref: 15. ref-tags with identical names should get identical indexes -!! wikitext -A1 foo A2 -B1 B2 bar - - -!! html/parsoid -

    A1 [1] A2 [1] -B1 [2] B2 [2]

    - -
    1. 1 2 foo
    2. 1 2 bar
    3. -
    -!!end - -## We don't bother wt2wt-ing non-standard whitespace -!!test -Ref: 16. Tokenizer should accept non-standard whitespace in and tags -!!options -parsoid=wt2html -!! wikitext -A foo - - -!! html/parsoid -

    A [1]

    -
      -
    1. ↑ foo
    -!!end - -!!test -Ref: 17. Generate valid HTML5 id/about attributes -!!wikitext -foo -ve-created name - - -!!html/parsoid -

    [1] -[2] - -

    1. ↑ foo
    2. ↑ ve-created name
    - -!!end - -!!test -Ref: 18. T58916: Extension attributes should be parsed as plain text -!!wikitext -foo - - -!!html/parsoid -

    [1] -

    - -
      -
    1. ↑ foo
    2. -
    -!!end - -!!test -Ref: 19. ref-tags with identical name encodings should get identical indexes -!! wikitext -1 foo 2 - - -!! html/parsoid -

    1 [1] 2 [1] -

    -
      -
    1. 1 2 foo
    2. -
    -!!end - -!!test -Ref: 20. ref-tags with identical names but different content should keep it -!! wikitext -A Foo one -B Foo two -C - - -!! html/parsoid -

    A [1] -B [1] -C [1]

    - -
    1. 1 2 3 Foo one
    2. -
    -!!end - -!!test -References: 1. references tag without any refs should be handled properly -!! wikitext - -!! html/parsoid -
      -!!end - -!!test -References: 2. references tag with group only outputs references from that group -!! wikitext -A foo -B bar -C baz - - - - -!! html/parsoid -

      A [a 1] -B [b 1] -C [1]

      - -
        -
      1. ↑ foo
      2. -
      -
        -
      1. ↑ baz
      2. -
      -
        -
      1. ↑ bar
      2. -
      -!!end - -!!test -References: 3. ref list should be cleared after processing references -!! wikitext -A foo - - - -B bar - - -!! html/parsoid -

      A [1]

      - -
      1. ↑ foo
      2. -
      - -

      B [1]

      - -
        -
      1. ↑ bar
      2. -
      -!!end - -!!test -References: 4. only referenced group should be cleared after processing references -!! wikitext -A afoo -B bfoo - - - -C cfoo - - -!! html/parsoid -

      A [a 1] -B [1]

      - -
      1. ↑ afoo
      2. -
      - -

      C [2]

      - -
      1. ↑ bfoo
      2. ↑ cfoo
      3. -
      -!!end - -## Don't expect this to rt since we're dropping content -!! test -References: 5. ref tags in references should be processed while ignoring all other content -!! options -parsoid=wt2html,html2html -!! wikitext -A -B bar - - -foo -This should just get lost. - -!! html/parsoid -

      A [1] -B [2]

      - - -
      1. ↑ foo
      2. ↑ bar
      3. -
      -!! end - -!! test -References: 6. from a transclusion -!! wikitext -Foo {{echo|}} -!! html/parsoid -

      [1]

      1. ↑ Foo
      2. -
      -!! end - -!! test -References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled -!! wikitext -A foo bar for a -B - - - - -foo - -!! html/parsoid -

      A [1] -B [X 1] -

      - -
        -
      1. ↑ foo bar for a
      2. -
      - -
        -
      1. ↑ foo
      2. -
      -!! end - -!! test -References: 8. T88019: Remove s from templates inside that's itself inside a template -!! wikitext -X{{echo|foo {{echo|bar}} and {{echo|baz}} boo}} - -!! html/parsoid -

      X[1]

      -
      1. ↑ foo bar and baz boo
      2. -
      -!!end - -# This test only works in wt2html now as the are always generated -# unless selser is active. Once T72722 is fixed, we should add a changes test -# here to ensure that unrelated changes don't add the new -# when selser is active. -!! test -References: 9. Generate missing references list at the end -!! wikitext -A foo -B bar -!! html/parsoid -

      A [1] B [inexistent 1]

      -
        -
      1. ↑ foo
      2. -
      -
        -
      1. ↑ bar
      2. -
      -!! end - -!! test -References: 10. New shouldn't be added for unrelated edits. -!! options -parsoid={ - "modes": ["selser"], - "changes": [["#x", "remove"]], - "selser": "noauto" -} -!! wikitext -Unrelated text that's going to disappear. -A foo -!! wikitext/edited -Unrelated text. -A foo -!!end - -!! test -Entities in ref name -!! wikitext -hi - -!! html/parsoid -

      [1]

      -
        -
      1. ↑ hi
      2. -
      -!! end - -## The output here may look funny, but it's what the php parser will do. The -## unclosed references tag becomes escaped text, and then a new references -## tag is auto-generated. The test is wt2html only because it roundtrips with -## nowiki tags, and the auto-generated references tag is only dropped in -## rtTestMode. -!! test -Generate references for unclosed references tag -!! options -parsoid=wt2html -!! wikitext -afoo - - -!! html/parsoid -

      a[1]

      - -

      <references>

      -
      1. ↑ foo
      -!! end - -!! test -New reference serializes on its own line -!! options -parsoid=wt2wt,html2wt -!! wikitext -foo - -!! html/parsoid -foo
        -!! end - #### ---------------------------------------------------------------- #### Parsoid-only testing of Parsoid's impl of LST #### Not implemented yet, see @@ -24298,7 +23824,7 @@ parsoid=html2wt !! end !! test -Links 6. Add s between text-nodes and url-links when required (bug 64300) +Links 6. Add s between text-nodes and url-links when required (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24333,7 +23859,7 @@ http://example.com(x) !! end !! test -Links 7a. Don't add spurious s between text-nodes and url-links (bug 64300) +Links 7a. Don't add spurious s between text-nodes and url-links (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24368,7 +23894,7 @@ y !! end !! test -Links 7b. Don't add spurious s between text-nodes and url-links (bug 64300) +Links 7b. Don't add spurious s between text-nodes and url-links (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24384,7 +23910,7 @@ http://example.com.,;:!?\ !! end !! test -Links 8. Add s between text-nodes and RFC-links when required (bug 64300) +Links 8. Add s between text-nodes and RFC-links when required (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24398,7 +23924,7 @@ XRFC 123y !! end !! test -Links 9. Don't add spurious s between text-nodes and RFC-links (bug 64300) +Links 9. Don't add spurious s between text-nodes and RFC-links (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24418,7 +23944,7 @@ RFC 123&foo !! end !! test -Links 10. Add s between text-nodes and PMID-links when required (bug 64300) +Links 10. Add s between text-nodes and PMID-links when required (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24432,7 +23958,7 @@ XPMID 123y !! end !! test -Links 11. Don't add spurious s between text-nodes and PMID-links (bug 64300) +Links 11. Don't add spurious s between text-nodes and PMID-links (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24452,7 +23978,7 @@ PMID 123&foo !! end !! test -Links 12. Add s between text-nodes and ISBN-links when required (bug 64300) +Links 12. Add s between text-nodes and ISBN-links when required (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24467,7 +23993,7 @@ aISBN 1234567890b !! end !! test -Links 13. Don't add spurious s between text-nodes and ISBN-links (bug 64300) +Links 13. Don't add spurious s between text-nodes and ISBN-links (T66300) !! options parsoid=html2wt !! html/parsoid @@ -24913,7 +24439,7 @@ parsoid=html2wt ## The quote-char in the input is necessary for triggering the bug !! test -(Bug 52035) Nowiki-escaping should not get tripped by " :" in text +(T54035) Nowiki-escaping should not get tripped by " :" in text !! options parsoid=html2wt !! html/parsoid @@ -25600,7 +25126,7 @@ parsoid=wt2html
        !!end -# Parsoid only for bug 64747 +# Parsoid only for T66747 !! test Properly encapsulate empty-content transclusions in fosterable positions !! wikitext @@ -25696,7 +25222,7 @@ http://en.wikipedia.org/wiki/Foobar # 'mi' is a localinterwiki prefix as well as a language !! test -Serialize interwiki links pointing to the current wiki as plain wiki links (bug 65869) +Serialize interwiki links pointing to the current wiki as plain wiki links (T67869) !! options parsoid=html2wt !! html/parsoid @@ -25848,7 +25374,7 @@ parsoid={ !!end !! test -Image: Modifying alignment of an image (bug 48665) +Image: Modifying alignment of an image (T50665) !! options parsoid={ "modes": ["wt2wt"], @@ -25864,7 +25390,7 @@ parsoid={ !! end !! test -Image: Modifying mw-default-size of an frameless image (bug 62805) +Image: Modifying mw-default-size of an frameless image (T64805) !! options parsoid={ "modes": ["wt2wt"], @@ -25879,7 +25405,7 @@ parsoid={ !! end !! test -Image: Modifying valign of an image (bug 49221) +Image: Modifying valign of an image (T51221) !! options parsoid={ "modes": ["wt2wt"], @@ -25895,7 +25421,7 @@ parsoid={ !! end !! test -Image: Modifying alt attribute of an image (bug 56400) +Image: Modifying alt attribute of an image (T58400) !! options parsoid={ "modes": ["wt2wt"], @@ -25925,7 +25451,7 @@ parsoid={ !!end !! test -Image: empty alt attribute (bug 48924) +Image: empty alt attribute (T50924) !! options parsoid !! wikitext @@ -25935,7 +25461,7 @@ parsoid !! end !! test -Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852) +Image: new attributes should be serialized in wiki's language for RTL languages (T53852) !! options parsoid=html2wt language=ar @@ -26540,7 +26066,7 @@ parsoid={ #------------------------------ !!test -Bug 54262: New entities +T56262: New entities !! options parsoid=html2wt !! html/parsoid @@ -26682,7 +26208,7 @@ WTS of autolinks with escapes (editing) parsoid={ "modes": ["wt2wt"], "changes": [ - [ "meta", "remove" ] + [ "span", "remove" ] ] } !! wikitext