1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # You can also set the following parser properties via test options:
31 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
32 # wgLinkHolderBatchSize, wgRawHtml
34 # For testing purposes, temporary articles can created:
35 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
36 # where '/' denotes a newline.
38 # This is the standard article assumed to exist.
63 MediaWiki:bad image list
65 * [[File:Bad.jpg]] except [[Nasty page]]
99 Template:echo_with_span
105 Template:echo_with_div
117 Template:table_attribs
120 |</noinclude>style="color: red"| Foo
126 {{table_attribs}} || Bar || Baz
130 Template:image_attribs
133 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
161 This is a simple paragraph.
163 <p>This is a simple paragraph.
168 Paragraphs with extra newline spacing
191 Paragraphs with newline spacing with comment lines in between
199 <!--foo--><!--More than 1 comment, still stripped-->
203 <!--foo--> <!----> <!-- bar -->
264 Paragraphs with newline spacing with non-empty white-space lines in between
291 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
299 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
338 Extra newlines: More paragraphs with indented comment
353 Extra newlines followed by heading
368 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
369 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
372 <h1><span class="mw-headline" id="b_2">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
377 Extra newlines between heading and content are swallowed
385 <h1><span class="mw-headline" id="b">b</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: b">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
386 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
393 http://fr.wikipedia.org/wiki/🍺
394 <!-- EasterEgg we love beer, better be able be able to link to it -->
396 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
416 * plain''italic''plain
417 * plain''italic''plain''italic''plain
418 * plain'''bold'''plain
419 * plain'''bold'''plain'''bold'''plain
420 * plain''italic''plain'''bold'''plain
421 * plain'''bold'''plain''italic''plain
422 * plain''italic'''bold-italic'''italic''plain
423 * plain'''bold''bold-italic''bold'''plain
424 * plain'''''bold-italic'''italic''plain
425 * plain'''''bold-italic''bold'''plain
426 * plain''italic'''bold-italic'''''plain
427 * plain'''bold''bold-italic'''''plain
428 * plain l'''italic''plain
429 * plain l''''bold''' plain
432 </li><li> plain<i>italic</i>plain
433 </li><li> plain<i>italic</i>plain<i>italic</i>plain
434 </li><li> plain<b>bold</b>plain
435 </li><li> plain<b>bold</b>plain<b>bold</b>plain
436 </li><li> plain<i>italic</i>plain<b>bold</b>plain
437 </li><li> plain<b>bold</b>plain<i>italic</i>plain
438 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
439 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
440 </li><li> plain<i><b>bold-italic</b>italic</i>plain
441 </li><li> plain<b><i>bold-italic</i>bold</b>plain
442 </li><li> plain<i>italic<b>bold-italic</b></i>plain
443 </li><li> plain<b>bold<i>bold-italic</i></b>plain
444 </li><li> plain l'<i>italic</i>plain
445 </li><li> plain l'<b>bold</b> plain
450 # this example taken from the [[simple:Moon]] article (bug 47326)
452 Italics and possessives (1)
454 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
456 <p>obtained by <i><a href="/index.php?title=Lunar_Prospector&action=edit&redlink=1" class="new" title="Lunar Prospector (page does not exist)">Lunar Prospector</a>'</i>s gamma-ray spectrometer
460 # this example taken from [[en:Flaming Pie]] (bug 49926)
462 Italics and possessives (2)
464 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
466 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
470 # this example taken from [[en:Dictionary]] (bug 49926)
472 Italics and possessives (3)
474 The first monolingual dictionary written in a Romance language was ''Sebastián Covarrubias''' ''Tesoro de la lengua castellana o española'', published in 1611 in Madrid. In 1612 the first edition of the ''Vocabolario dell'[[Accademia della Crusca]]'', for Italian, was published. In 1690 in Rotterdam was published, posthumously, the ''Dictionnaire Universel''.
476 <p>The first monolingual dictionary written in a Romance language was <i>Sebastián Covarrubias'</i> <i>Tesoro de la lengua castellana o española</i>, published in 1611 in Madrid. In 1612 the first edition of the <i>Vocabolario dell'<a href="/index.php?title=Accademia_della_Crusca&action=edit&redlink=1" class="new" title="Accademia della Crusca (page does not exist)">Accademia della Crusca</a></i>, for Italian, was published. In 1690 in Rotterdam was published, posthumously, the <i>Dictionnaire Universel</i>.
482 ### 2-quote opening sequence tests
485 Italics and bold: 2-quote opening sequence: (2,2)
495 Italics and bold: 2-quote opening sequence: (2,3)
505 Italics and bold: 2-quote opening sequence: (2,4)
515 Italics and bold: 2-quote opening sequence: (2,5) (php)
524 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
526 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
538 ### 3-quote opening sequence tests
542 Italics and bold: 3-quote opening sequence: (3,2)
552 Italics and bold: 3-quote opening sequence: (3,3)
562 Italics and bold: 3-quote opening sequence: (3,4)
572 Italics and bold: 3-quote opening sequence: (3,5) (php)
581 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
583 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
595 ### 4-quote opening sequence tests
599 Italics and bold: 4-quote opening sequence: (4,2)
609 Italics and bold: 4-quote opening sequence: (4,3)
619 Italics and bold: 4-quote opening sequence: (4,4)
629 Italics and bold: 4-quote opening sequence: (4,5) (php)
638 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
640 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
646 <p>'<b>foo<i></i></b>
652 ### 5-quote opening sequence tests
656 Italics and bold: 5-quote opening sequence: (5,2) (php)
665 # Parsoid reverses the nesting order, compared to the PHP parser
667 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
679 Italics and bold: 5-quote opening sequence: (5,3)
689 Italics and bold: 5-quote opening sequence: (5,4)
693 <p><i><b>foo'</b></i>
699 Italics and bold: 5-quote opening sequence: (5,5)
708 ### multiple quote sequences in a line
711 Italics and bold: multiple quote sequences: (2,4,2)
715 <p><i>foo'<b>bar</b></i>
721 Italics and bold: multiple quote sequences: (2,4,3)
725 <p><i>foo'<b>bar</b></i>
731 Italics and bold: multiple quote sequences: (2,4,4)
735 <p><i>foo'<b>bar'</b></i>
741 Italics and bold: multiple quote sequences: (3,4,2) (php)
750 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
752 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
758 <p><b>foo'</b>bar<i></i>
764 Italics and bold: multiple quote sequences: (3,4,3) (php)
773 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
775 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
781 <p><b>foo'</b>bar<b></b>
786 ### other quote tests
789 Italics and bold: other quote tests: (2,3,5)
791 ''this is about '''foo's family'''''
793 <p><i>this is about <b>foo's family</b></i>
799 Italics and bold: other quote tests: (2,(3,3),2)
801 ''this is about '''foo's''' family''
803 <p><i>this is about <b>foo's</b> family</i>
809 Italics and bold: other quote tests: (3,2,3,2)
811 '''this is about ''foo'''s family''
813 <p><b>this is about <i>foo</i></b><i>s family</i>
818 # The Parsoid team believes the PHP parser's output on this test is wrong.
819 # It only checks for convert-to-bold-on-single-character-word when the word
820 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
821 # This means that the bold token in position 2 (0-indexed) gets converted by
822 # parsoid, but doesn't get changed by the PHP parser.
824 Italics and bold: other quote tests: (3,2,3,3) (php)
828 '''this is about ''foo'''s family'''
830 <p>'<i>this is about </i>foo<b>s family</b>
833 # This is the output the Parsoid team believes to be correct.
835 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
839 '''this is about ''foo'''s family'''
841 <p><b>this is about <i>foo'</i>s family</b>
847 Italics and bold: other quote tests: (3,(2,2),3)
849 '''this is about ''foo's'' family'''
851 <p><b>this is about <i>foo's</i> family</b>
857 Italicized possessive
859 The ''[[Main Page]]'''s talk page.
861 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
866 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
867 (Requires tidy for PHP parser output to be fixed up)
869 parsoid=wt2html,wt2wt
877 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
878 <td><i>a</i></td><td><i>b</i></td></tr>
887 Non-html5 tags should be accepted
889 <center>''foo''</center>
892 <strike>''foo''</strike>
895 <center><i>foo</i></center>
896 <p><big><i>foo</i></big>
897 <font><i>foo</i></font>
898 <strike><i>foo</i></strike>
904 <wbr> is valid wikitext (bug 52468)
912 # <strike> is HTML4, <s> is HTML4/5.
914 <s> or <strike> for strikethrough
916 <strike>strike</strike>
920 <p><strike>strike</strike>
926 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
928 <b→> doesn't work! </b>
930 <bä> doesn't work! </b>
932 <boo> works fine </b>
940 <p><b→> doesn't work! </b>
941 </p><p><bä> doesn't work! </b>
942 </p><p><boo> works fine </b>
943 </p><p><s.foo>foo</s>
944 </p><p><s.foo>s.foo</s.foo>
945 </p><p><sub-ID#1>
950 ### Special characters
954 Bare pipe character (bug 52363)
963 Bare pipe character from a template (bug 52363)
972 ### <nowiki> test cases
976 <nowiki> unordered list
978 <nowiki>* This is not an unordered list item.</nowiki>
980 <p>* This is not an unordered list item.
987 <nowiki>Lorem ipsum dolor
1008 :There is not nowiki.
1009 :There is <nowiki>nowiki</nowiki>.
1011 #There is not nowiki.
1012 #There is <nowiki>nowiki</nowiki>.
1014 *There is not nowiki.
1015 *There is <nowiki>nowiki</nowiki>.
1017 <dl><dd>There is not nowiki.
1018 </dd><dd>There is nowiki.
1020 <ol><li>There is not nowiki.
1021 </li><li>There is nowiki.
1023 <ul><li>There is not nowiki.
1024 </li><li>There is nowiki.
1030 Entities inside <nowiki>
1032 <nowiki><</nowiki>
1039 Entities inside template parameters
1045 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
1053 Comments and Indent-Pre
1055 <!-- comment 1 --> asdf
1057 <!-- comment 1 --> asdf
1060 <!-- comment 1 --> asdf
1061 <!-- comment 2 -->xyz
1063 <!-- comment 1 --> asdf
1064 <!-- comment 2 --> xyz
1120 asdf<!-- comment 1 -->jkl
1130 <!-- foo --> b <!-- bar -->
1144 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1150 Comment semantics and delimiters
1152 <!-- --><!----><!-----><!------>
1158 Comment semantics and delimiters, redux
1160 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1161 -- foo -- funky huh? ... -->
1167 Comment semantics and delimiters: directors cut
1169 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1170 everything starting with < followed by !-- until the first -- and > we see,
1171 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1179 Comment semantics: nesting
1181 <!--<!-- no, we're not going to do anything fancy here -->-->
1188 Comment semantics: unclosed comment at end
1190 <!--This comment will run out to the end of the document
1196 Comment in template title
1205 Comment on its own line post-expand
1217 Comment on its own line post-expand with non-significant whitespace
1229 ### paragraph wrapping tests
1243 Block tag on one line
1255 Block tag on both lines
1267 Multiple lines without block tags
1285 Empty lines between lines with block tags
1315 ### Preformatted text
1324 And a [[Main Page|link]]
1330 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1335 Ident preformatting with inline content
1346 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1363 Regression with preformatted in <center>
1376 # Expected output in the following test is not really expected (there should be
1377 # <pre> in the output) -- it's only testing for well-formedness.
1379 Bug 6200: Preformatted in <blockquote>
1392 <pre> with attributes (bug 3202)
1394 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1396 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1401 <pre> with width attribute (bug 3202)
1403 <pre width="8">Narrow screen goodies</pre>
1405 <pre width="8">Narrow screen goodies</pre>
1410 <pre> with forbidden attribute (bug 3202)
1412 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1414 <pre width="8">Narrow screen goodies</pre>
1419 Entities inside <pre>
1428 <pre> with forbidden attribute values (bug 3202)
1430 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1432 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1437 <nowiki> inside <pre> (bug 13238)
1445 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1453 <pre><nowiki>Foo</nowiki></pre>
1458 <nowiki> and <pre> preference (first one wins)
1489 </pre> inside nowiki
1491 <nowiki></pre></nowiki>
1498 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1506 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1516 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1528 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1549 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1553 {{echo| foo}}{{echo| bar}}
1558 {{echo|<!--cmt--> foo}}
1560 <!--cmt-->{{echo| foo}}
1562 {{echo|{{echo| }}bar}}
1580 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1617 Templates: Single-line variant of parameter whitespace stripping test
1623 {{echo|{{echo| a}}}}
1625 {{echo|1={{echo| a}}}}
1638 Templates: Strip whitespace from named parameters, but not positional ones
1666 Templates: Dont strip whitespace from whitespace/comment-only arguments
1670 {{echo| <!--cmt--> }}
1677 Templates: Parsoid parameter escaping test 1
1681 {{echo|[foo]|{{echo|[bar]}}}}
1683 <p about="#mwt1" typeof="mw:Transclusion"
1684 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1688 Parsoid: Pipes in external links in template parameter
1692 {{echo|[{{echo|http://example.com}} link]}}
1694 <p><a rel="mw:ExtLink" href="http://example.com" about="#mwt31" typeof="mw:Transclusion" data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{echo|http://example.com}} link]"}},"i":0}">link</a></p>
1698 Parsoid: pipe in transclusion parameter
1702 {{echo|http://foo.com/a|b}}
1704 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1705 typeof="mw:Transclusion"
1706 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a|b"}},"i":0}'>http://foo.com/a|b</a></p>
1710 Parsoid: Pipe in external link target and content in template parameter
1712 parsoid=html2wt,wt2wt
1714 {{echo|[http://foo.com/a|b a|b]}}
1716 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1717 typeof="mw:Transclusion"
1718 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1719 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1723 Templates: Dont escape already nowiki-escaped text in template parameters
1725 parsoid=html2wt,wt2wt
1727 {{echo|foo<nowiki>|</nowiki>bar}}
1728 {{echo|<nowiki><div></nowiki>}}
1729 {{echo|<nowiki></nowiki>}}
1731 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<nowiki>|</nowiki>bar"}},"i":0}'}'>foo</span><span typeof="mw:Nowiki" about="#mwt1">|</span><span about="#mwt1">bar</span>
1732 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt2" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki>&lt;div&gt;</nowiki>"}},"i":0}'><span typeof="mw:Entity"><</span>div<span typeof="mw:Entity">></span></span>
1733 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1738 ### Parsoid-centric tests for testing RT edge cases for pre
1742 1a. Indent-Pre and Comments
1755 1b. Indent-Pre and Comments
1768 1c. Indent-Pre and Comments
1781 1d. Indent-Pre and Comments
1782 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
1795 2a. Indent-Pre and tables
1816 2b. Indent-Pre and tables
1832 2c. Indent-Pre and tables (bug 42252)
1849 3a. Indent-Pre and block tags (single-line html)
1857 <pre><span> foo </span>
1862 3b. Indent-Pre and block tags (pre-content on separate line)
1914 4. Multiple spaces at start-of-line
1933 5. White-space in indent-pre
1934 NOTE: the white-space char on 2nd line is significant
1947 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
1970 7a. Indent-pre and category links
1972 parsoid=wt2html,wt2wt
1974 [[Category:foo]] <!-- No pre-wrapping -->
1975 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
1977 <span typeof="mw:Transclusion"> </span>
1981 7b. Indent-pre and category links
1983 parsoid=wt2html,wt2wt
1986 [[Category:foo]] {{echo|b}}
1988 <pre> a <span typeof="mw:Transclusion">b</span>
1993 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1997 HTML-pre: 1. embedded newlines
2033 HTML-pre: 2: indented text
2046 HTML-pre: 3: other wikitext
2067 ### Definition lists
2074 <dl><dt> name </dt><dd> Definition
2080 Definition list for indentation only
2084 <dl><dd> Indented text
2090 Definition list with no space
2094 <dl><dt>name</dt><dd>Definition
2100 Definition list with URL link
2102 ; http://example.com/ : definition
2104 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
2110 Definition list with bracketed URL link
2112 ;[http://www.example.com/ Example]:Something about it
2114 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
2120 Definition list with wikilink containing colon
2122 ; [[Help:FAQ]]: The least-read page on Wikipedia
2124 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
2129 # At Brion's and JeLuF's insistence... :)
2131 Definition list with news link containing colon
2133 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
2135 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
2141 Malformed definition list with colon
2143 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
2145 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop
2151 Definition lists: colon in external link text
2153 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
2155 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
2161 Definition lists: colon in HTML attribute
2163 ;<b style="display: inline">bold</b>
2165 <dl><dt><b style="display: inline">bold</b>
2171 Definition lists: self-closed tag
2173 ;one<br/>two : two-line fun
2175 <dl><dt>one<br />two </dt><dd> two-line fun
2181 Bug 11748: Literal closing tags
2185 <dd>test test test test test</dd>
2187 <dd>test test test test test</dd>
2192 <dd>test test test test test</dd>
2194 <dd>test test test test test</dd>
2200 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2203 ; term : description
2209 <dl><dt> term </dt><dd> description
2220 Definition list with empty definition and following paragraph
2225 <dl><dt> term</dt><dd>
2232 Nested definition lists using html syntax
2249 Definition Lists: No nesting: Multiple dd's
2263 Definition Lists: Indentation: Regular
2279 Definition Lists: Indentation: Missing 1st level
2293 Definition Lists: Indentation: Multi-level indent
2297 <dl><dd><dl><dd><dl><dd>i3
2305 Definition Lists: Hacky use to indent tables
2312 should be left alone
2314 <dl><dd><dl><dd><table>
2319 </td></tr></table></dd></dl></dd></dl>
2321 should be left alone
2324 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2325 ## as an empty dt item. It also ignores all but the last ";" when followed
2326 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2327 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2330 ## Ex: ";;t2 ::d2" is transformed into:
2342 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2343 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2354 ## All Parsoid only definition list tests have this difference.
2356 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2357 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2360 Table / list interaction: indented table with lists in table contents
2382 </td></tr></table></dd></dl>
2387 Table / list interaction: lists nested in tables nested in indented lists
2412 </td></tr></table></dd></dl>
2420 Definition Lists: Nesting: Multi-level (Parsoid only)
2450 Definition Lists: Nesting: Test 2 (Parsoid only)
2470 Definition Lists: Nesting: Test 3 (Parsoid only)
2498 Definition Lists: Nesting: Test 4
2503 <dl><dd><dl><dd><dl><dt>t3
2512 ## The Parsoid team believes the following three test exposes a
2513 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2514 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2516 Definition Lists: Mixed Lists: Test 1 (php)
2524 <dl><dd><dl><dt><ul><li> foo
2534 Definition Lists: Mixed Lists: Test 1 (parsoid)
2542 <dl><dd><dl><dt><ul><li> foo
2543 </li></ul></dt><dd><ul><li> bar
2544 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2548 Definition Lists: Mixed Lists: Test 2
2562 Definition Lists: Mixed Lists: Test 3
2567 <ul><li><dl><dd><dl><dd><dl><dd> d1
2578 Definition Lists: Mixed Lists: Test 4
2583 <ul><li><dl><dt>d1 </dt><dd>d2
2584 </dd><dt>d3 </dt><dd>d4
2592 Definition Lists: Mixed Lists: Test 5
2607 Definition Lists: Mixed Lists: Test 6
2612 <ol><li><ul><li><dl><dd>d1
2624 Definition Lists: Mixed Lists: Test 7
2638 Definition Lists: Mixed Lists: Test 8
2654 Definition Lists: Mixed Lists: Test 9
2658 <ul><li><dl><dt>foo </dt><dd>bar
2666 Definition Lists: Mixed Lists: Test 10
2670 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2677 # The Parsoid team disagrees with the PHP parser's seemingly-random
2678 # rules regarding dd/dt on the next two tests. Parsoid is more
2679 # consistent, and recognizes the shared nesting and keeps the
2680 # still-open tags around until the nesting is complete.
2683 Definition Lists: Mixed Lists: Test 11 (php)
2690 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2695 <dl><dt>boo </dt><dd>baz
2704 Definition Lists: Mixed Lists: Test 11 (parsoid)
2726 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2727 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2728 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2729 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2734 Definition Lists: Weird Ones: Test 1 (php)
2738 *#;*::;; foo : bar (who uses this?)
2740 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2752 Definition Lists: Weird Ones: Test 1 (parsoid)
2756 *#;*::;; foo : bar (who uses this?)
2773 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2774 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2781 External links: non-bracketed
2783 Non-bracketed: http://example.com
2785 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2790 External links: numbered
2792 Numbered: [http://example.com]
2793 Numbered: [http://example.net]
2794 Numbered: [http://example.com]
2796 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2797 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2798 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2803 External links: specified text
2805 Specified text: [http://example.com link]
2807 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2812 External links: trail
2814 Linktrails should not work for external links: [http://example.com link]s
2816 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2821 External links: dollar sign in URL
2823 http://example.com/1$2345
2825 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2830 External links: dollar sign in URL (named)
2832 [http://example.com/1$2345]
2834 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2839 External links: open square bracket forbidden in URL (bug 4377)
2841 http://example.com/1[2345
2843 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2848 External links: open square bracket forbidden in URL (named) (bug 4377)
2850 [http://example.com/1[2345]
2852 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2857 External links: nowiki in URL link text (bug 6230)
2859 [http://example.com/ <nowiki>''example site''</nowiki>]
2861 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2866 External links: newline forbidden in text (bug 6230 regression check)
2868 [http://example.com/ first
2871 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2877 External links: Pipe char between url and text
2879 [http://example.com | link]
2881 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2886 External links: protocol-relative URL in brackets
2888 [//example.com/ Test]
2890 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2895 External links: protocol-relative URL in brackets without text
2899 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2904 External links: protocol-relative URL in free text is left alone
2908 <p>//example.com/Foo
2913 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2915 foo//example.com/Foo
2917 <p>foo//example.com/Foo
2924 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2926 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2931 External image from https
2933 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2935 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2940 External image (when not allowed)
2942 wgAllowExternalImages=0
2944 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2946 <p>External image: <a rel="nofollow" class="external free" href="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png">http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png</a>
2951 Link to non-http image, no img tag
2953 Link to non-http image, no img tag: ftp://example.com/test.jpg
2955 <p>Link to non-http image, no img tag: <a rel="nofollow" class="external free" href="ftp://example.com/test.jpg">ftp://example.com/test.jpg</a>
2960 External links: terminating separator
2962 Terminating separator: http://example.com/thing,
2964 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2969 External links: intervening separator
2971 Intervening separator: http://example.com/1,2,3
2973 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2978 External links: old bug with URL in query
2980 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2982 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2987 External links: old URL-in-URL bug, mixed protocols
2989 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2991 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2996 External links: URL in text
2998 URL in text: [http://example.com http://example.com]
3000 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3005 External links: Clickable images
3007 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
3009 <p>ja-style clickable images: <a rel="nofollow" class="external text" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a>
3014 External links: raw ampersand
3016 Old & use: http://x&y
3018 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3023 External links: encoded ampersand
3025 Old & use: http://x&y
3027 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
3032 External links: encoded equals (bug 6102)
3034 http://example.com/?foo=bar
3036 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
3041 External links: [raw ampersand]
3043 Old & use: [http://x&y]
3045 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3050 External links: [encoded ampersand]
3052 Old & use: [http://x&y]
3054 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
3059 External links: [encoded equals] (bug 6102)
3061 [http://example.com/?foo=bar]
3063 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
3068 External links: [IDN ignored character reference in hostname; strip it right off]
3070 [http://e‌xample.com/]
3072 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
3076 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
3077 # Where an external link could easily circumvent the sanitization of the text of
3078 # a link like this (where an IDN-ignore character is in the URL somewhere), this
3079 # test demands a higher standard. That's a bit strange.
3083 # http://example.com -> [http://example.com|http://example.com]
3084 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
3086 # The first example is sanitized, but the second is not. Any security benefits
3087 # from this production are trivial to circumvent. Either remove this test and
3088 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
3089 # the test accordingly.
3094 External links: IDN ignored character reference in hostname; strip it right off
3096 http://e‌xample.com/
3098 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
3103 External links: www.jpeg.org (bug 554)
3107 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
3112 External links: URL within URL (original bug 2)
3114 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
3116 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
3121 BUG 361: URL inside bracketed URL
3123 [http://www.example.com/foo http://www.example.com/bar]
3125 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
3130 BUG 361: URL within URL, not bracketed
3132 http://www.example.com/foo?=http://www.example.com/bar
3134 <p><a rel="nofollow" class="external free" href="http://www.example.com/foo?=http://www.example.com/bar">http://www.example.com/foo?=http://www.example.com/bar</a>
3139 BUG 289: ">"-token in URL-tail
3141 http://www.example.com/<hello>
3143 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
3148 BUG 289: literal ">"-token in URL-tail
3150 http://www.example.com/<b>html</b>
3152 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
3157 BUG 289: ">"-token in bracketed URL
3159 [http://www.example.com/<hello> stuff]
3161 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3166 BUG 289: literal ">"-token in bracketed URL
3168 [http://www.example.com/<b>html</b> stuff]
3170 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3175 BUG 289: literal double quote at end of URL
3177 http://www.example.com/"hello"
3179 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3184 BUG 289: literal double quote in bracketed URL
3186 [http://www.example.com/"hello" stuff]
3188 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3193 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3195 [http://www.example.com test]
3197 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3202 External links: link text with spaces
3204 [http://www.example.com a b c]
3205 [http://www.example.com ''a'' ''b'']
3207 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3208 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3213 External links: wiki links within external link (Bug 3695)
3215 [http://example.com [[wikilink]] embedded in ext link]
3217 <p><a rel="nofollow" class="external text" href="http://example.com"></a><a href="/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a rel="nofollow" class="external text" href="http://example.com"> embedded in ext link</a>
3222 BUG 787: Links with one slash after the url protocol are invalid
3226 [http:/example.com title]
3228 <p>http:/example.com
3229 </p><p>[http:/example.com title]
3234 Bracketed external links with template-generated invalid target
3236 [{{echo|http:/example.com}} title]
3238 <p>[http:/example.com title]
3243 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3245 ''[http://example.com text'']
3246 [http://example.com '''text]'''
3247 ''Something [http://example.com in italic'']
3248 ''Something [http://example.com mixed''''', even bold]'''
3249 '''''Now [http://example.com both''''']
3251 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3252 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3253 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3254 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3255 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3261 Bug 4781: %26 in URL
3263 http://www.example.com/?title=AT%26T
3265 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3269 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3270 # % is actually legal in HTML5. Any change in output would need testing though.
3272 Bug 4781, 5267: %25 in URL
3274 http://www.example.com/?title=100%25_Bran
3276 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a>
3281 Bug 4781, 5267: %28, %29 in URL
3283 http://www.example.com/?title=Ben-Hur_%281959_film%29
3285 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a>
3291 Bug 4781: %26 in autonumber URL
3293 [http://www.example.com/?title=AT%26T]
3295 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3300 Bug 4781, 5267: %26 in autonumber URL
3302 [http://www.example.com/?title=100%25_Bran]
3304 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3309 Bug 4781, 5267: %28, %29 in autonumber URL
3311 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3313 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3319 Bug 4781: %26 in bracketed URL
3321 [http://www.example.com/?title=AT%26T link]
3323 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3328 Bug 4781, 5267: %26 in bracketed URL
3330 [http://www.example.com/?title=100%25_Bran link]
3332 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3337 Bug 4781, 5267: %28, %29 in bracketed URL
3339 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3341 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3346 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3348 Some [http://example.com/ pretty ''italics'' and stuff]!
3350 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3355 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3357 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3359 <p><i>Some </i><a rel="nofollow" class="external text" href="http://example.com/"><i>pretty </i>italics<i> and stuff</i></a><i>!</i>
3364 External link containing double-single-quotes with no space separating the url from text in italics
3366 [http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].]
3368 <p><a rel="nofollow" class="external text" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a>
3373 External link with comments in link text
3375 [http://www.google.com Google <!-- comment -->]
3377 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3382 URL-encoding in URL functions (single parameter)
3384 {{localurl:Some page|amp=&}}
3386 <p>/index.php?title=Some_page&amp=&
3391 URL-encoding in URL functions (multiple parameters)
3393 {{localurl:Some page|q=?&=&}}
3395 <p>/index.php?title=Some_page&q=?&amp=&
3402 http://example.com/index.php?foozoid%5B%5D=bar
3404 http://example.com/index.php?foozoid[]=bar
3406 <p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
3407 </p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
3412 IPv6 urls (bug 21261)
3416 http://[2404:130:0:1000::187:2]/index.php
3418 <p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://[2404:130:0:1000::187:2]/index.php</a>
3423 Non-extlinks in brackets
3432 [{{echo|foo}} ''bar'']
3433 [{{echo|foo}}l's] errand
3434 [{{echo|foo}}l's errand]
3436 [url=http://example.com]
3449 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3454 Parsoid: Percent encoding in external links
3458 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3460 <p><a rel="mw:ExtLink"
3461 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3465 Parsoid: use url link syntax for links where the content is equal the link
3472 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3482 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3484 Normal text. '''''Bold italic text.''''' Normal text.
3486 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3487 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3493 Unclosed and unmatched quotes (php)
3497 '''''Bold italic text '''with bold deactivated''' in between.'''''
3499 '''''Bold italic text ''with italic deactivated'' in between.'''''
3503 ..spanning two paragraphs (should not work).'''
3505 '''Bold tag left open
3507 ''Italic tag left open
3511 <!-- Unmatching number of opening, closing tags: -->
3512 '''This year''''s election ''should'' beat '''last year''''s.
3514 ''Tom'''s car is bigger than ''Susan'''s.
3516 Plain ''italic'''s plain
3518 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3519 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3520 </p><p><b>Bold text..</b>
3521 </p><p>..spanning two paragraphs (should not work).
3522 </p><p><b>Bold tag left open</b>
3523 </p><p><i>Italic tag left open</i>
3525 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3526 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3527 </p><p>Plain <i>italic'</i>s plain
3530 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3531 # parser strips. The wikitext contains just the first half of the bold
3532 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3533 # differently than the PHP parser.)
3535 Unclosed and unmatched quotes (parsoid)
3539 '''''Bold italic text '''with bold deactivated''' in between.'''''
3541 '''''Bold italic text ''with italic deactivated'' in between.'''''
3545 ..spanning two paragraphs (should not work).'''
3547 '''Bold tag left open
3549 ''Italic tag left open
3553 <!-- Unmatching number of opening, closing tags: -->
3554 '''This year''''s election ''should'' beat '''last year''''s.
3556 ''Tom'''s car is bigger than ''Susan'''s.
3558 Plain ''italic'''s plain
3560 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3561 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3562 </p><p><b>Bold text..</b>
3563 </p><p>..spanning two paragraphs (should not work).<b></b>
3564 </p><p><b>Bold tag left open</b>
3565 </p><p><i>Italic tag left open</i>
3567 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3568 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3569 </p><p>Plain <i>italic'</i>s plain
3576 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3579 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3580 # is the bare minimum required by the spec, see:
3581 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3583 A table with no data. (php)
3590 # Parsoid team replies: empty table tags are legal in HTML5
3592 A table with no data. (parsoid)
3601 # A table with nothing but a caption is invalid XHTML, we might want to render
3602 # this as <p>caption</p>
3604 A table with nothing but a caption (php)
3614 </caption><tr><td></td></tr></table>
3617 # Parsoid team replies: table with only a caption is legal in HTML5
3619 A table with nothing but a caption (parsoid)
3627 <table><caption> caption</caption></table>
3631 A table with caption with default-spaced attributes and a table row
3634 |+ style="color: red;" | caption1
3640 <caption style="color: red;"> caption1
3649 A table with captions with non-default spaced attributes and a table row
3652 |+style="color: red;"|caption2
3653 |+ style="color: red;"| caption3
3659 <caption style="color: red;">caption2
3661 <caption style="color: red;"> caption3
3670 Table td-cell syntax variations
3674 | foo bar foo || baz
3675 | style='color:red;' | baz
3676 | style='color:red;' || baz
3683 <td> foo bar foo </td>
3686 <td style="color:red;"> baz
3688 <td> style='color:red;' </td>
3716 Simple table but with multiple dashes for row wikitext
3734 Multiplication table
3736 {| border="1" cellpadding="2"
3737 |+Multiplication table
3739 ! × !! 1 !! 2 !! 3
3757 <table border="1" cellpadding="2">
3758 <caption>Multiplication table
3805 Accept "||" in table headings
3820 Accept "||" in indented table headings
3830 </th></tr></table></dd></dl>
3835 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3852 Accept "| !" at start of line in tables (ignore !-attribute)
3856 | !style="color:red" | bar
3868 Allow +/- in 2nd and later cells in a row, in 1st cell when td-attrs are present, or in 1st cell when there is a space between "|" and +/-
3872 |style='color:red;'|+1
3873 |style='color:blue;'|-1
3885 <td style="color:red;">+1
3887 <td style="color:blue;">-1
3911 |rowspan=2| Cell 2, row 1 (and 2)
3922 <td rowspan="2"> Cell 2, row 1 (and 2)
3940 {| bgcolor=#ABCDEF border=2
3945 |the original table again
3953 <table bgcolor="#ABCDEF" border="2">
3961 <td>the original table again
3967 Invalid attributes in table cell (bug 1830)
3982 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3985 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3989 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3990 <td>]" onmouseover="alert(document.cookie)">test
3999 Indented table markup mixed with indented pre content (proposed in bug 6200)
4004 Text that should be rendered preformatted
4012 <pre>Text that should be rendered preformatted
4021 Template-generated table cell attributes and cell content
4029 <td style="color: red"> Foo
4035 Template-generated table cell attributes and cell content (2)
4038 |align=center {{table_attribs}}
4043 <td align="center" style="color: red"> Foo
4049 Template-generated table cell attributes and cell content (3)
4052 |align=center {{table_cells}}
4057 <td align="center" style="color: red"> Foo </td>
4065 Table with row followed by newlines and table heading
4083 Table with empty line following the start tag
4100 # FIXME: Preserve the attribute properly (with an empty string as value) in
4101 # the PHP parser. Parsoid implements the behavior below.
4103 Table attributes with empty value
4115 </td></tr></tbody></table>
4120 Wikitext table with a lot of comments
4143 Wikitext table with double-line table cell
4160 Table cell with a single comment
4176 # The expected HTML structure in this test is debatable. The PHP parser does
4177 # not parse this kind of table at all. The main focus for Parsoid is on
4178 # round-tripping, so this output is ok for now. TODO: revisit!
4180 Wikitext table with html-syntax row (Parsoid)
4192 <td>foo</td></tr></tbody></table>
4196 Implicit <td> after a |-
4197 (PHP parser relies on Tidy to add the missing <td> tags)
4199 parsoid=wt2html,wt2wt
4212 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4213 (PHP parser relies on Tidy to add the missing <td> tags)
4215 parsoid=wt2html,wt2wt
4227 <tr><td><pre>a</pre></td></tr>
4228 <tr><td> b</td></tr>
4234 Lists should be recognized in an implicit <td> context
4235 (PHP parser relies on Tidy to add the missing <td> tags)
4237 parsoid=wt2html,wt2wt
4246 <td><ul><li>a</li></ul></td>
4255 Plain link, capitalized
4259 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4264 Plain link, uncapitalized
4268 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4275 [[Main Page|The Main Page]]
4277 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4282 Piped link with comment in link text
4284 [[Main Page|The Main<!--front--> Page]]
4286 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4295 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4300 Broken link with fragment
4302 [[Zigzagzogzagzig#zug]]
4304 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4309 Special page link with fragment
4311 [[Special:Version#anchor]]
4313 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4318 Nonexistent special page link with fragment
4320 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4322 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4329 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4331 <p>xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a>, xxx<a href="/wiki/Main_Page" title="Main Page">Main Page</a>, Xxx<a href="/wiki/Main_Page" title="Main Page">main Page</a> XXX<a href="/wiki/Main_Page" title="Main Page">main Page</a>, XXX<a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4338 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4340 <p><a href="/wiki/Main_Page" title="Main Page">Main Pagexxx</a>, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>XXX, <a href="/wiki/Main_Page" title="Main Page">Main Page</a>!!!
4351 Bug 43661: Piped links with identical prefixes
4353 [[prefixed article|prefixed articles with spaces]]
4355 [[prefixed article|prefixed articlesaoeu]]
4357 [[Main Page|Main Page test]]
4359 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4360 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4361 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4367 Link with HTML entity in suffix / tail
4369 [[Main Page]]", [[Main Page]]a
4371 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4376 Link with 3 brackets
4385 Piped link with 3 brackets
4387 [[[main page|the main page]]]
4389 <p>[[[main page|the main page]]]
4394 Link with multiple pipes
4396 [[Main Page|The|Main|Page]]
4398 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4405 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4407 <p><a href="/index.php?title=Talk:Parser_testing&action=edit&redlink=1" class="new" title="Talk:Parser testing (page does not exist)">Talk:Parser testing</a>, <a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">Meta:Disclaimers</a>
4412 Piped link to namespace
4414 [[Meta:Disclaimers|The disclaimers]]
4416 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4423 [[Usually caused by a typo (oops}]]
4425 <p>[[Usually caused by a typo (oops}]]
4430 Link containing % (not as a hex sequence)
4434 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
4439 Link containing % as a single hex sequence interpreted to char
4443 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
4448 Link containing % as a double hex sequence interpreted to hex sequence
4452 <p>[[7%2525 Solution]]
4457 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4458 Example for such a section: == < ==
4460 [[%23%3c]][[%23%3e]]
4462 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4467 Link containing "<#" and ">#" as a hex sequences
4469 [[%3c%23]][[%3e%23]]
4471 <p>[[%3c%23]][[%3e%23]]
4476 Link containing an equals sign
4478 [[Special:BookSources/isbn=4-00-026157-6]]
4480 <p><a href="/wiki/Special:BookSources/isbn%3D4-00-026157-6" title="Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a>
4487 Just a test of an article title containing a tilde.
4490 # note that links containing signatures, like [[Foo~~~~]], are
4491 # massaged by the pre-save transform (PST) and so the tildes are never
4492 # seen by the parser.
4494 Link containing a tilde
4498 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4503 Link containing double-single-quotes '' (bug 4598)
4505 [[Lista d''e paise d''o munno]]
4507 <p><a href="/index.php?title=Lista_d%27%27e_paise_d%27%27o_munno&action=edit&redlink=1" class="new" title="Lista d''e paise d''o munno (page does not exist)">Lista d''e paise d''o munno</a>
4512 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4514 Some [[Link|pretty ''italics'' and stuff]]!
4516 <p>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!
4521 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4523 ''Some [[Link|pretty ''italics'' and stuff]]!
4525 <p><i>Some <a href="/index.php?title=Link&action=edit&redlink=1" class="new" title="Link (page does not exist)">pretty <i>italics</i> and stuff</a>!</i>
4530 Link with double quotes in title part (literal) and alternate part (interpreted)
4532 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4536 [[''Pentecoste''|Pentecoste]]
4538 [[''Pentecoste''|''Pentecoste'']]
4540 <p><a href="/index.php?title=Special:Upload&wpDestFile=Denys_Savchenko_%27%27Pentecoste%27%27.jpg" class="new" title="File:Denys Savchenko ''Pentecoste''.jpg">File:Denys Savchenko <i>Pentecoste</i>.jpg</a>
4541 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">''Pentecoste''</a>
4542 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)">Pentecoste</a>
4543 </p><p><a href="/index.php?title=%27%27Pentecoste%27%27&action=edit&redlink=1" class="new" title="''Pentecoste'' (page does not exist)"><i>Pentecoste</i></a>
4548 Broken image links with HTML captions (bug 39700)
4550 [[File:Nonexistent|<script></script>]]
4551 [[File:Nonexistent|100px|<script></script>]]
4552 [[File:Nonexistent|<]]
4553 [[File:Nonexistent|a<i>b</i>c]]
4555 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4556 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4557 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4558 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4565 [[http://www.example.com]]
4567 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4572 Plain link to URL with link text
4574 [[http://www.example.com Link text]]
4576 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4581 Plain link to protocol-relative URL
4583 [[//www.example.com]]
4585 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4590 Plain link to protocol-relative URL with link text
4592 [[//www.example.com Link text]]
4594 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4599 Plain link to page with question mark in title
4605 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4606 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4611 # I'm fairly sure the expected result here is wrong.
4612 # We want these to be URL links, not pseudo-pages with URLs for titles....
4613 # However the current output is also pretty screwy.
4616 # I'm changing it to match the current output--it arguably makes more
4617 # sense in the light of the test above. Old expected result was:
4618 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4620 # But I think this test is bordering on "garbage in, garbage out" anyway.
4625 Piped link to URL: [[http://www.example.com|an example URL]]
4627 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4632 BUG 2: [[page|http://url/]] should link to page, not http://url/
4634 [[Main Page|http://url/]]
4636 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4641 BUG 337: Escaped self-links should be bold
4645 [[Bug462]] [[Bug462]]
4647 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4652 Self-link to section should not be bold
4656 [[Main Page#section]]
4658 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4669 Self-link to numeric title
4675 <p><strong class="selflink">0</strong>
4680 Link to numeric-equivalent title
4686 <p><a href="/wiki/00" title="00">00</a>
4691 <nowiki> inside a link
4693 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4695 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4700 Non-breaking spaces in title
4702 [[ Main Page ]]
4704 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4709 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4715 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4720 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4726 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4731 Internal link with en linktrail: no apostrophes (bug 27473)
4737 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4742 Internal link with ca linktrail with apostrophes (bug 27473)
4748 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4753 Internal link with kaa linktrail with apostrophes (bug 27473)
4759 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4770 Internal link with is link prefix
4774 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4776 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4787 Internal link with is link trail and link prefix
4791 [[mótmælendatrú|xxx]]ar
4793 mótmælenda[[söfnuður]]
4794 mótmælenda[[söfnuður|söfnuðir]]
4795 mótmælenda[[söfnuður|söfnuðir]]xxx
4797 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4798 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4799 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4800 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4801 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4806 Parsoid link trail escaping
4808 parsoid=html2wt,html2html
4812 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4816 Parsoid link prefix escaping
4819 parsoid=html2wt,html2html
4821 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4823 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4827 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4835 [http://wp.org ''foo'']
4837 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4838 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4839 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4840 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4845 ### Interwiki links (see maintenance/interwiki.sql)
4849 Inline interwiki link
4851 [[MeatBall:SoftSecurity]]
4853 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4858 Inline interwiki link with empty title (bug 2372)
4862 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4867 Interwiki link encoding conversion (bug 1636)
4869 *[[Wikipedia:ro:Olteniţa]]
4870 *[[Wikipedia:ro:Olteniţa]]
4872 <ul><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4873 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4879 Interwiki link with fragment (bug 2130)
4881 [[MeatBall:SoftSecurity#foo]]
4883 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4898 Double interlanguage link
4909 Interlanguage link, with prefix links
4921 Double interlanguage link, with prefix links (bug 8897)
4934 Parsoid-specific test: Wikilinks with should RT properly
4940 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4945 Parsoid: handle constructor well
4953 <p data-parsoid="{"dsr":[0,15,0,0]}"><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"},"dsr":[0,15,2,2]}">constructor</a></p>
4956 <p data-parsoid="{"dsr":[17,36,0,0]}"><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"},"dsr":[17,36,2,2]}">constructor:foo</a></p>
4960 ## Redirects, Parsoid-only
4963 Simple redirect to page
4967 #REDIRECT [[Main Page]]
4969 <link rel="mw:PageProp/redirect" href="./Main_Page">
4973 Optional colon in #REDIRECT
4975 # the colon is archaic syntax. we support it for wt2html, but we
4976 # don't care that it roundtrips back to the modern syntax.
4977 parsoid=wt2html,html2html
4979 #REDIRECT:[[Main Page]]
4981 <link rel="mw:PageProp/redirect" href="./Main_Page">
4985 Whitespace in #REDIRECT with optional colon
4987 # the colon and gratuitous whitespace is archaic syntax. we support
4988 # it for wt2html, but we don't care that it roundtrips back to the
4989 # modern syntax (without extra whitespace)
4990 parsoid=wt2html,html2html
4997 <link rel="mw:PageProp/redirect" href="./Main_Page">
5001 Piped link in #REDIRECT
5003 # content after piped link is ignored. we support this syntax,
5004 # but don't care that the piped link is lost when we roundtrip this.
5007 #REDIRECT [[Main Page|bar]]
5009 <link rel="mw:PageProp/redirect" href="./Main_Page">
5013 Redirect to category
5017 #REDIRECT [[Category:Foo]]
5019 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5023 Redirect to category with URL encoding
5027 #REDIRECT [[Category%3AFoo]]
5029 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
5033 Redirect to category page
5035 parsoid=wt2html,html2html
5037 #REDIRECT [[:Category:Foo]]
5039 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
5043 Redirect to image page (1)
5047 #REDIRECT [[File:Wiki.png]]
5049 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5053 Redirect to image page (2)
5057 #REDIRECT [[Image:Wiki.png]]
5059 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
5063 Redirect to language
5067 #REDIRECT [[en:File:Wiki.png]]
5069 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5073 Redirect to interwiki
5077 #REDIRECT [[meatball:File:Wiki.png]]
5079 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
5083 Non-English #REDIRECT
5088 #TILVÍSUN [[Main Page]]
5090 <link rel="mw:PageProp/redirect" href="./Main_Page">
5107 Broken br tag sanitization
5117 # TODO: Fix html2html mode (bug 51055)!
5119 Parsoid: Broken br tag recognition
5129 Incorrecly removing closing slashes from correctly formed XHTML
5131 <br style="clear:both;" />
5133 <p><br style="clear:both;" />
5138 Failing to transform badly formed HTML into correct XHTML
5140 <br style="clear: left;">
5141 <br style="clear: right;">
5142 <br style="clear: both;">
5144 <p><br style="clear: left;" />
5145 <br style="clear: right;" />
5146 <br style="clear: both;" />
5151 Handling html with a div self-closing tag
5160 <p><div title />
5164 <p><div title=bar />
5165 <div title=bar/>
5167 <div title="bar/"></div>
5173 Handling html with a br self-closing tag
5182 <p><br title="title" />
5183 <br title="title" />
5192 Horizontal ruler (should it add that extra space?)
5206 Horizontal ruler -- 4+ dashes render hr
5215 Horizontal ruler -- eats additional dashes on the same line
5224 Horizontal ruler -- does not collapse dashes on consecutive lines
5235 Horizontal ruler -- <4 dashes render as plain text
5244 Horizontal ruler -- Supports content following dashes on same line
5253 ### Block-level elements
5276 <ol><li>Numbered list
5293 ***#Number on level 4
5295 **#Number on level 3
5296 **#Number on level 3
5300 #** Level 3, but ordered
5303 <ol><li> with numbers
5305 <ul><li> and bullets
5307 <ol><li> and numbers
5309 </li><li>bullets again
5310 <ul><li>bullet level 2
5311 <ul><li>bullet level 3
5312 <ol><li>Number on level 4
5315 </li><li>bullet level 2
5316 <ol><li>Number on level 3
5317 </li><li>Number on level 3
5320 <ol><li>number level 2
5323 <ul><li><ul><li> Level 3
5327 <ol><li><ul><li><ul><li> Level 3, but ordered
5361 Nested lists 3 (first element empty)
5374 Nested lists 4 (first element empty)
5387 Nested lists 5 (both elements empty)
5400 Nested lists 6 (both elements empty)
5413 Nested lists 7 (skip initial nesting levels)
5417 <ul><li><ul><li><ul><li> foo
5425 Nested lists 8 (multiple nesting transitions)
5433 <ul><li><ul><li> bar
5443 1. Lists with start-of-line-transparent tokens before bullets: Comments
5457 2. Lists with start-of-line-transparent tokens before bullets: Template close
5469 List items are not parsed correctly following a <pre> block (bug 785)
5475 <ul><li> <pre>foo</pre>
5476 </li><li> <pre>bar</pre>
5483 List items from template
5494 * notSOL{{inner list}}
5513 List interrupted by empty line or heading
5523 <ul><li><ul><li> bar
5526 <h2><span class="mw-headline" id="A_heading">A heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: A heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
5527 <ul><li> Another list item
5533 Multiple list tags generated by templates
5548 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
5551 <!--This line will NOT split the list-->
5553 <!--This line will NOT split the list either-->
5555 <!--foo--> <!----> <!--This line NOT split the list either-->
5567 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
5570 <!--This line will NOT split the list-->
5572 <!--This line will NOT split the list either-->
5574 <!--foo--> <!----> <!--This line NOT split the list
5588 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5590 parsoid=wt2html,wt2wt
5594 * {{echo|<li>templated li-hack}}
5595 * <!--foo--> <li> unsupported li-hack with preceding comments
5598 <li><li>not a li-hack
5604 <li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<li>templated li-hack"}}}'>templated li-hack</li>
5605 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5608 <li></li><li>not a li-hack
5614 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5625 <ol><li> foo<ol><li> bar</li></ol></li></ol><ul><li> foo<ul><li> bar</li></ul></li></ul><dl><dd> foo<dl><dd> bar</dd></dl></dd></dl>
5629 Parsoid: Test of whitespace serialization with Templated bullets
5636 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}'> Bar</li>
5640 # ------------------------------------------------------------------------
5641 # The next set of tests are about Parsoid's ability to handle badly nested
5642 # tags (parse, minimize scope of fixup, and roundtrip back)
5643 # ------------------------------------------------------------------------
5646 Unbalanced closing block tags break a list
5647 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5657 </li></ul></div><div>
5663 Unbalanced closing non-block tags don't break a list
5664 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5674 <ul><li>a<span></span>
5680 Unclosed formatting tags that straddle lists are closed and reopened
5681 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5689 </li><li> <s> b </s>
5694 List embedded in a non-block tag
5695 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5703 <p><small></small></p>
5709 <p><small></small></p>
5716 # Note that the current date is hard-coded as
5717 # 1970-01-01T00:02:03Z (a Thursday)
5718 # when running parser tests. The timezone is also fixed to GMT, so
5719 # local date will be identical to current date.
5722 Magic Word: {{CURRENTDAY}}
5731 Magic Word: {{CURRENTDAY2}}
5740 Magic Word: {{CURRENTDAYNAME}}
5749 Magic Word: {{CURRENTDOW}}
5758 Magic Word: {{CURRENTMONTH}}
5767 Magic Word: {{CURRENTMONTH1}}
5776 Magic Word: {{CURRENTMONTHABBREV}}
5778 {{CURRENTMONTHABBREV}}
5785 Magic Word: {{CURRENTMONTHNAME}}
5787 {{CURRENTMONTHNAME}}
5794 Magic Word: {{CURRENTMONTHNAMEGEN}}
5796 {{CURRENTMONTHNAMEGEN}}
5803 Magic Word: {{CURRENTTIME}}
5812 Magic Word: {{CURRENTHOUR}}
5821 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5830 Magic Word: {{CURRENTYEAR}}
5839 Magic Word: {{CURRENTTIMESTAMP}}
5841 {{CURRENTTIMESTAMP}}
5848 Magic Words LOCAL (UTC)
5852 * {{LOCALMONTHNAME}}
5853 * {{LOCALMONTHNAMEGEN}}
5854 * {{LOCALMONTHABBREV}}
5863 * {{LOCALTIMESTAMP}}
5878 </li><li> 19700101000203
5884 Magic Word: {{FULLPAGENAME}}
5886 title=[[User:Ævar Arnfjörð Bjarmason]]
5890 <p>User:Ævar Arnfjörð Bjarmason
5895 Magic Word: {{FULLPAGENAMEE}}
5897 title=[[User:Ævar Arnfjörð Bjarmason]]
5901 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5906 Magic Word: {{TALKSPACE}}
5908 title=[[User:Ævar Arnfjörð Bjarmason]]
5917 Magic Word: {{TALKSPACE}}, same namespace
5919 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5928 Magic Word: {{TALKSPACE}}, main namespace
5930 title=[[Parser Test]]
5939 Magic Word: {{TALKSPACEE}}
5941 title=[[User:Ævar Arnfjörð Bjarmason]]
5950 Magic Word: {{SUBJECTSPACE}}
5952 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5961 Magic Word: {{SUBJECTSPACE}}, same namespace
5963 title=[[User:Ævar Arnfjörð Bjarmason]]
5972 Magic Word: {{SUBJECTSPACE}}, main namespace
5974 title=[[Parser Test]]
5982 Magic Word: {{SUBJECTSPACEE}}
5984 title=[[User talk:Ævar Arnfjörð Bjarmason]]
5993 Magic Word: {{NAMESPACE}}
5995 title=[[User:Ævar Arnfjörð Bjarmason]]
6004 Magic Word: {{NAMESPACEE}}
6006 title=[[User:Ævar Arnfjörð Bjarmason]]
6015 Magic Word: {{NAMESPACENUMBER}}
6017 title=[[User:Ævar Arnfjörð Bjarmason]]
6026 Magic Word: {{SUBPAGENAME}}
6028 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6037 Magic Word: {{SUBPAGENAMEE}}
6039 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
6048 Magic Word: {{ROOTPAGENAME}}
6050 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6054 <p>Ævar Arnfjörð Bjarmason
6059 Magic Word: {{ROOTPAGENAMEE}}
6061 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
6065 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6070 Magic Word: {{BASEPAGENAME}}
6072 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6076 <p>Ævar Arnfjörð Bjarmason
6081 Magic Word: {{BASEPAGENAMEE}}
6083 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
6087 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6092 Magic Word: {{TALKPAGENAME}}
6094 title=[[User:Ævar Arnfjörð Bjarmason]]
6098 <p>User talk:Ævar Arnfjörð Bjarmason
6103 Magic Word: {{TALKPAGENAMEE}}
6105 title=[[User:Ævar Arnfjörð Bjarmason]]
6109 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6114 Magic Word: {{SUBJECTPAGENAME}}
6116 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6120 <p>User:Ævar Arnfjörð Bjarmason
6125 Magic Word: {{SUBJECTPAGENAMEE}}
6127 title=[[User talk:Ævar Arnfjörð Bjarmason]]
6129 {{SUBJECTPAGENAMEE}}
6131 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6136 Magic Word: {{NUMBEROFFILES}}
6145 Magic Word: {{PAGENAME}}
6147 title=[[User:Ævar Arnfjörð Bjarmason]]
6151 <p>Ævar Arnfjörð Bjarmason
6156 Magic Word: {{PAGENAME}} with metacharacters
6158 title=[['foo & bar = baz']]
6162 <p><i>'foo & bar = baz'</i>
6167 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
6169 title=[[*RFC 1234 http://example.com/]]
6173 <p>*RFC 1234 http://example.com/
6178 Magic Word: {{PAGENAMEE}}
6180 title=[[User:Ævar Arnfjörð Bjarmason]]
6184 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
6189 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
6191 title=[[*RFC 1234 http://example.com/]]
6195 <p>*RFC_1234_http://example.com/
6200 Magic Word: {{REVISIONID}}
6209 Magic Word: {{SCRIPTPATH}}
6218 Magic Word: {{STYLEPATH}}
6227 Magic Word: {{SERVER}}
6231 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6236 Magic Word: {{SERVERNAME}}
6245 Magic Word: {{SITENAME}}
6254 Case-sensitive magic words, when cased differently, should just be template transclusions
6261 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
6262 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
6263 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
6264 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
6269 Case-insensitive magic words should still work with weird casing.
6279 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
6284 Namespace 1 {{ns:1}}
6293 Namespace 1 {{ns:01}}
6302 Namespace 0 {{ns:0}} (bug 4783)
6310 Namespace 0 {{ns:00}} (bug 4783)
6318 Namespace -1 {{ns:-1}}
6327 Namespace User {{ns:User}}
6336 Namespace User talk {{ns:User_talk}}
6345 Namespace User talk {{ns:uSeR tAlK}}
6354 Namespace File {{ns:File}}
6363 Namespace File {{ns:Image}}
6372 Namespace (lang=de) Benutzer {{ns:User}}
6383 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
6389 <p>Benutzer Diskussion
6397 {{urlencode:hi world?!}}
6398 {{urlencode:hi world?!|WIKI}}
6399 {{urlencode:hi world?!|PATH}}
6400 {{urlencode:hi world?!|QUERY}}
6413 Magic links: internal link to RFC (bug 479)
6417 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
6422 Magic links: RFC (bug 479)
6426 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
6431 Magic links: ISBN (bug 1937)
6435 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
6440 Magic links: PMID incorrectly converts space to underscore
6444 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
6453 Nonexistent template
6455 {{thistemplatedoesnotexist}}
6457 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
6462 Template with invalid target containing tags
6464 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6466 <p>{{a<b>b</b>|foo|a=b|a = b}}
6471 Template with invalid target containing unclosed tag
6473 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
6475 <p>{{a<b>|foo|a=b|a = b}}</b>
6482 This is a test template
6490 <p>This is a test template
6495 Template with explicit namespace
6499 <p>This is a test template
6507 This is a test template with parameter {{{param}}}
6513 {{paramtest|param=foo}}
6515 <p>This is a test template with parameter foo
6520 Template:paramtestnum
6526 Template unnamed parameter
6528 {{paramtestnum|Main Page|the main page}}
6530 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
6535 Template:templatesimple
6541 Template:templateredirect
6543 #redirect [[Template:templatesimple]]
6547 Template:templateasargtestnum
6553 Template:templateasargtest
6555 {{template{{{templ}}}}}
6559 Template:templateasargtest2
6565 Template with template name as unnamed argument
6567 {{templateasargtestnum|templatesimple}}
6574 Template with template name as argument
6576 {{templateasargtest|templ=simple}}
6583 Template with template name as argument (2)
6585 {{templateasargtest2|templ=templatesimple}}
6592 Template:templateasargtestdefault
6594 {{{{{templ|templatesimple}}}}}
6604 Template with default value
6606 {{templateasargtestdefault}}
6613 Template with default value (value set)
6615 {{templateasargtestdefault|templ=templa}}
6624 {{templateredirect}}
6631 Template with argument in separate line
6633 {{ templateasargtest |
6641 Template with complex template as argument
6644 param ={{ templateasargtest |
6647 <p>This is a test template with parameter (test)
6652 Template with thumb image (with link in description)
6655 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6657 This is a test template with parameter <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Noimage.png" class="new" title="File:Noimage.png">File:Noimage.png</a> <div class="thumbcaption"><a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">link</a> <a href="/index.php?title=No_link&action=edit&redlink=1" class="new" title="No link (page does not exist)">caption</a></div></div></div>
6662 Template:complextemplate
6664 {{{1}}} {{paramtest|
6665 param ={{{param}}}}}
6669 Template with complex arguments
6672 param ={{ templateasargtest |
6673 templ = simple }}|[[Template:complextemplate|link]]}}
6675 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6680 BUG 553: link with two variables in a piped link
6683 |[[{{{1}}}|{{{2}}}]]
6688 <td>[[{{{1}}}|{{{2}}}]]
6694 Magic variable as template parameter
6696 {{paramtest|param={{SITENAME}}}}
6698 <p>This is a test template with parameter MediaWiki
6705 [[{{{param}}}|link]]
6709 Template parameter as link source
6711 {{linktest|param=Main Page}}
6713 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6718 Template-generated attribute string (k='v')
6720 <span {{attr_str|id|v1}}>bar</span>
6722 <p><span id="v1">bar</span>
6729 including another template, {{paramtest|param={{{arg}}}}}
6733 Template passing argument to another template
6735 {{paramtest2|arg='hmm'}}
6737 <p>including another template, This is a test template with parameter 'hmm'
6748 Template as link source
6752 [[{{linktest2}}|Main Page]]
6754 [[{{linktest2}}]]Page
6756 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6757 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6758 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6776 Template infinite loop
6780 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6785 Template from main namespace
6804 BUG 529: Template with table, not included at beginning of line
6823 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6843 BUG 41: Template parameters shown as broken links
6852 Template with targets containing wikilinks
6856 {{[[{{echo|foo}}]]}}
6858 {{{{echo|[[foo}}]]}}
6860 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6861 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6869 ''None'' of '''this''' should be
6871 but rather passed unmodified
6875 # hmm, fix this or just deprecate msgnw and document its behavior?
6881 {{msgnw:MSGNW test}}
6883 <p>''None'' of '''this''' should be
6885 but rather passed unmodified
6893 {{int:youhavenewmessages|lots of money|not!}}
6895 <p>You have lots of money (not!).
6902 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6906 <includeonly> and <noinclude> being included
6917 <onlyinclude>Foo</onlyinclude>bar
6921 <onlyinclude> being included
6933 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6937 <onlyinclude> and <includeonly> being included
6946 <includeonly> and <noinclude> on a page
6948 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6955 Un-closed <noinclude>
6962 <onlyinclude> on a page
6964 <onlyinclude>Foo</onlyinclude>bar
6971 Un-closed <onlyinclude>
6978 Self-closed noinclude, includeonly, onlyinclude tags
6989 Unbalanced includeonly and noinclude tags
6993 |b</noinclude></noinclude>
6994 |c</noinclude></includeonly>
6995 |d</includeonly></includeonly>
7004 <td>c</includeonly>
7006 <td>d</includeonly></includeonly>
7012 Template:Includeonly section
7015 ==Includeonly section==
7021 Bug 6563: Edit link generation for section shown by <includeonly>
7023 {{includeonly section}}
7025 <h2><span class="mw-headline" id="Includeonly_section">Includeonly section</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-1" title="Template:Includeonly section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
7026 <h2><span class="mw-headline" id="Section_T-1">Section T-1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Includeonly_section&action=edit&section=T-2" title="Template:Includeonly section">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
7030 # Uses same input as the contents of [[Template:Includeonly section]]
7032 Bug 6563: Section extraction for section shown by <includeonly>
7037 ==Includeonly section==
7045 Bug 6563: Edit link generation for section suppressed by <includeonly>
7048 ==Includeonly section==
7052 <h2><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
7057 Bug 6563: Section extraction for section suppressed by <includeonly>
7062 ==Includeonly section==
7070 Un-closed <includeonly>
7076 # TODO: test with DOM fragment reuse!
7078 Parsoid: DOM fragment reuse
7080 parsoid=wt2wt,wt2html
7082 a{{echo|b<table></table>c}}d
7094 a<span typeof="mw:Transclusion">b</span>
7095 <table></table><span>c</span>d
7096 <p typeof="mw:Transclusion">ab</p>
7099 <p typeof="mw:Transclusion">a</p>
7105 ### <includeonly> and <noinclude> in attributes
7108 0. includeonly around the entire attribute
7110 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
7112 <p><span id="v2">bar</span>
7117 1. includeonly in html attr key
7119 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
7121 <p><span id="foo">bar</span>
7126 2. includeonly in html attr value
7128 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
7129 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
7131 <p><span id="v1">bar</span>
7132 <span id="v1">bar</span>
7137 3. includeonly in part of an attr value
7139 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
7141 <p><span style="color:red;">bar</span>
7146 ### Testing parsing of templates where a template arg
7147 ### has the same name as the template itself.
7157 Templates: Template Name/Arg clash: 1. Use of positional param
7166 Templates: Template Name/Arg clash: 2. Use of named param
7175 Templates: Template Name/Arg clash: 3. Use of named param with empty input
7184 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
7188 Templates: 1. Simple use
7197 Templates: 2. Inside a block tag
7199 <div>{{echo|Foo}}</div>
7206 Templates: P-wrapping: 1a. Templates on consecutive lines
7217 Templates: P-wrapping: 1b. Templates on consecutive lines
7231 Templates: P-wrapping: 1c. Templates on consecutive lines
7234 {{echo|bar}} <div>baz</div>
7243 Templates: P-wrapping: 1d. Template preceded by comment-only line
7245 parsoid=wt2html,wt2wt
7251 <p typeof="mw:Transclusion">Bar
7256 Templates: Inline Text: 1. Multiple tmeplate uses
7258 {{echo|Foo}}bar{{echo|baz}}
7265 Templates: Inline Text: 2. Back-to-back template uses
7267 {{echo|Foo}}{{echo|bar}}
7274 Templates: Block Tags: 1. Multiple template uses
7276 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
7278 <div>Foo</div><div>bar</div><div>baz</div>
7283 Templates: Block Tags: 2. Back-to-back template uses
7285 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
7287 <div>Foo</div><div>bar</div>
7292 Templates: Links: 1. Simple example
7294 {{echo|[[Foo|bar]]}}
7296 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7301 Templates: Links: 2. Generation of link href
7303 [[{{echo|Foo}}|bar]]
7305 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7310 Templates: Links: 3. Generation of part of a link href
7312 [[Fo{{echo|o}}|bar]]
7316 [[Foo{{echo|bar}}baz]]
7318 [[Foo{{echo|bar}}|bar]]
7320 [[:Foo{{echo|bar}}]]
7322 [[:Foo{{echo|bar}}|bar]]
7324 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7325 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7326 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
7327 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7328 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7329 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
7334 Templates: Links: 4. Multiple templates generating link href
7336 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
7338 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
7343 Templates: Links: 5. Generation of link text
7345 [[Foo|{{echo|bar}}]]
7347 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7352 Templates: Links: 5. Nested templates (only outermost template should be marked)
7354 {{echo|[[{{echo|Foo}}|bar]]}}
7356 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
7361 Templates: HTML Tag: 1. Generation of HTML attr. key
7363 <div {{echo|style}}="color:red;">foo</div>
7365 <div style="color:red;">foo</div>
7370 Templates: HTML Tag: 2. Generation of HTML attr. value
7372 <div style={{echo|'color:red;'}}>foo</div>
7374 <div style="color:red;">foo</div>
7379 Templates: HTML Tag: 3. Generation of HTML attr key and value
7381 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
7383 <div style="color:red;">foo</div>
7388 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
7390 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
7392 <div title="This is a long title with just one piece templated">foo</div>
7397 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
7399 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
7401 <div title="This is a long title with just one piece templated">foo</div>
7406 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
7408 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
7410 <div title="This is a long title with just one piece templated">foo</div>
7415 Templates: HTML Tag: 7. Generation of partial attribute key string
7417 <div st{{echo|yle}}="color:red;">foo</div>
7419 <div style="color:red;">foo</div>
7424 Templates: HTML Tables: 1. Generating start of a HTML table
7426 {{echo|<table><tr><td>foo</td>}}</tr></table>
7428 <table><tr><td>foo</td></tr></table>
7433 Templates: HTML Tables: 2a. Generating middle of a HTML table
7435 <table><tr>{{echo|<td>foo</td>}}</tr></table>
7437 <table><tr><td>foo</td></tr></table>
7442 Templates: HTML Tables: 2b. Generating middle of a HTML table
7444 <table>{{echo|<tr><td>foo</td></tr>}}</table>
7446 <table><tr><td>foo</td></tr></table>
7451 Templates: HTML Tables: 3. Generating end of a HTML table
7453 <table><tr>{{echo|<td>foo</td></tr></table>}}
7455 <table><tr><td>foo</td></tr></table>
7460 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
7462 {{echo|<table>}}<tr><td>foo</td></tr></table>
7464 <table><tr><td>foo</td></tr></table>
7469 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
7471 <table>{{echo|<tr>}}<td>foo</td></tr></table>
7473 <table><tr><td>foo</td></tr></table>
7478 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
7480 <table><tr>{{echo|<td>}}foo</td></tr></table>
7482 <table><tr><td>foo</td></tr></table>
7487 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
7489 <table><tr><td>foo{{echo|</td>}}</tr></table>
7491 <table><tr><td>foo</td></tr></table>
7496 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
7498 <table><tr><td>foo</td>{{echo|</tr>}}</table>
7500 <table><tr><td>foo</td></tr></table>
7505 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
7507 <table><tr><td>foo</td></tr>{{echo|</table>}}
7509 <table><tr><td>foo</td></tr></table>
7514 Templates: HTML Tables: 5. Proper fostering of categories from inside
7516 parsoid=wt2html,wt2wt
7518 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
7519 <!--Two categories (Bug 50330)-->
7520 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
7522 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
7523 <!--Two categories (Bug 50330)-->
7524 <link rel="mw:WikiLink/Category" href="./Category:Bar1"><link rel="mw:WikiLink/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
7528 Templates: Wiki Tables: 1a. Fostering of entire template content
7536 <tr><td></td></tr></table>
7541 Templates: Wiki Tables: 1b. Fostering of entire template content
7554 <tr><td></td></tr></table>
7559 Templates: Wiki Tables: 2. Fostering of partial template content
7569 <tr><td></td></tr></table>
7574 Templates: Wiki Tables: 3. td-content via multiple templates
7577 {{echo|{{pipe}}a}}{{echo|b}}
7588 Templates: Wiki Tables: 4. Templated tags, no content
7594 <tr><td></td></tr></table>
7599 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7613 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7627 Templates: Lists: Multi-line list-items via templates
7629 *{{echo|a {{nonexistent|
7631 *{{echo|b {{nonexistent|
7634 <ul><li>a <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
7635 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
7641 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7643 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7645 <p><i>ab</i>c<i>d</i>e
7650 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7651 (PHP parser generates misnested html)
7653 parsoid=wt2html,wt2wt
7655 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7657 <p><span typeof="mw:Transclusion"><i>a</i></span><i typeof="mw:Transclusion"><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
7661 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7662 (PHP parser generates misnested html)
7664 parsoid=wt2html,wt2wt
7666 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7668 <div typeof="mw:Transclusion"><i>a</i></div>
7669 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7670 <div typeof="mw:Transclusion">e</div>
7674 Templates: Ugly nesting: 4. Divs opened/closed across templates
7676 a<div>b{{echo|c</div>d}}e
7683 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7689 |{{echo|foo</table>}}
7693 <table typeof="mw:Transclusion">
7696 <td>foo</td></tr></tbody></table><span>bar</span>
7700 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7710 <td>1. {{echo|foo </table>}}</td>
7712 <td>2. {{echo|baz </table>}}</td>
7725 <table about="#mwt1" typeof="mw:Transclusion">
7730 <td >1. foo </td></tr></tbody></table></td>
7732 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7733 </span><span about="#mwt1">
7735 abc</span><span about="#mwt1">
7736 </span><span about="#mwt1">
7737 </span><span about="#mwt1">
7738 </span><span about="#mwt1">
7739 </span><span about="#mwt1">
7741 xyz</span><span about="#mwt1">
7742 </span><span about="#mwt1">
7747 Templates: Ugly templates: 3. newline-only template parameter
7756 # This looks like a bug: a single newline triggers p/br for some reason.
7758 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7769 Parser Functions: 1. Simple example
7778 Parser Functions: 2. Nested use (only outermost should be marked up)
7787 ### Pre-save transform tests
7790 pre-save transform: subst:
7796 This is a test template
7800 pre-save transform: normal template
7810 pre-save transform: nonexistent template
7814 {{thistemplatedoesnotexist}}
7816 {{thistemplatedoesnotexist}}
7821 pre-save transform: subst magic variables
7830 # This is bug 89, which I fixed. -- wtm
7832 pre-save transform: subst: templates with parameters
7836 {{subst:paramtest|param="something else"}}
7838 This is a test template with parameter "something else"
7844 <nowiki>'''not wiki'''</nowiki>
7848 pre-save transform: nowiki in subst (bug 1188)
7852 {{subst:nowikitest}}
7854 <nowiki>'''not wiki'''</nowiki>
7859 Template:commenttest
7861 This template has <!-- a comment --> in it.
7865 pre-save transform: comment in subst (bug 1936)
7869 {{subst:commenttest}}
7871 This template has <!-- a comment --> in it.
7875 pre-save transform: unclosed tag
7879 <nowiki>'''not wiki'''
7881 <nowiki>'''not wiki'''
7885 pre-save transform: mixed tag case
7889 <NOwiki>'''not wiki'''</noWIKI>
7891 <NOwiki>'''not wiki'''</noWIKI>
7895 pre-save transform: unclosed comment in <nowiki>
7899 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7901 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7904 # Leading @ in this template definition works around a limitation
7905 # in parsoid's parserTests which otherwise strips the <span> from the
7906 # result (confusing it for a template wrapper)
7910 @<span onmouseover="alert('crap')">Oh no</span>
7914 (confirming safety of fix for subst bug 1936)
7916 {{Template:dangerous}}
7918 <p>@<span>Oh no</span>
7923 pre-save transform: comment containing gallery (bug 5024)
7927 <!-- <gallery>data</gallery> -->
7929 <!-- <gallery>data</gallery> -->
7933 pre-save transform: comment containing extension
7937 <!-- <tag>data</tag> -->
7939 <!-- <tag>data</tag> -->
7943 pre-save transform: comment containing nowiki
7947 <!-- <nowiki>data</nowiki> -->
7949 <!-- <nowiki>data</nowiki> -->
7953 pre-save transform: <noinclude> in subst (bug 3298)
7963 pre-save transform: <onlyinclude> in subst (bug 3298)
7975 {{<includeonly>subst:</includeonly>Includes}}
7979 Template:SafeSubstTest
7981 {{<includeonly>safesubst:</includeonly>Includes}}
7985 bug 22297: safesubst: works during PST
7989 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7995 bug 22297: safesubst: works during normal parse
8004 subst: does not work during normal parse
8008 <p>{{subst:Includes}}
8013 pre-save transform: context links ("pipe trick")
8017 [[Article (context)|]]
8020 [[Bar:Article (context)|]]
8021 [[:Bar:Article (context)|]]
8023 [[|Article (context)]]
8027 [[Article (context)|Article]]
8028 [[Bar:Article|Article]]
8029 [[:Bar:Article|Article]]
8030 [[Bar:Article (context)|Article]]
8031 [[:Bar:Article (context)|Article]]
8033 [[Article (context)]]
8034 [[Bar:X (Y) Z|X (Y) Z]]
8035 [[:Bar:X (Y) Z|X (Y) Z]]
8039 pre-save transform: context links ("pipe trick") with interwiki prefix
8043 [[interwiki:Article|]]
8044 [[:interwiki:Article|]]
8045 [[interwiki:Bar:Article|]]
8046 [[:interwiki:Bar:Article|]]
8048 [[interwiki:Article|Article]]
8049 [[:interwiki:Article|Article]]
8050 [[interwiki:Bar:Article|Bar:Article]]
8051 [[:interwiki:Bar:Article|Bar:Article]]
8055 pre-save transform: context links ("pipe trick") with parens in title
8057 pst title=[[Somearticle (context)]]
8061 [[Article (context)|Article]]
8065 pre-save transform: context links ("pipe trick") with comma in title
8067 pst title=[[Someplace, Somewhere]]
8070 [[Otherplace, Elsewhere|]]
8071 [[Otherplace, Elsewhere, Anywhere|]]
8073 [[Otherplace, Somewhere|Otherplace]]
8074 [[Otherplace, Elsewhere|Otherplace]]
8075 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
8079 pre-save transform: context links ("pipe trick") with parens and comma
8081 pst title=[[Someplace (IGNORED), Somewhere]]
8084 [[Otherplace (place), Elsewhere|]]
8086 [[Otherplace, Somewhere|Otherplace]]
8087 [[Otherplace (place), Elsewhere|Otherplace]]
8091 pre-save transform: context links ("pipe trick") with comma and parens
8093 pst title=[[Who, me? (context)]]
8096 [[Me, Myself, and I (1937 song)|]]
8098 [[Yes, you. (context)|Yes, you.]]
8099 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
8103 pre-save transform: context links ("pipe trick") with namespace
8105 pst title=[[Ns:Somearticle]]
8109 [[Ns:Article|Article]]
8113 pre-save transform: context links ("pipe trick") with namespace and parens
8115 pst title=[[Ns:Somearticle (context)]]
8119 [[Ns:Article (context)|Article]]
8123 pre-save transform: context links ("pipe trick") with namespace and comma
8125 pst title=[[Ns:Somearticle, Context, Whatever]]
8129 [[Ns:Article, Context, Whatever|Article]]
8133 pre-save transform: context links ("pipe trick") with namespace, comma and parens
8135 pst title=[[Ns:Somearticle, Context (context)]]
8139 [[Ns:Article (context)|Article]]
8143 pre-save transform: context links ("pipe trick") with namespace, parens and comma
8145 pst title=[[Ns:Somearticle (IGNORED), Context]]
8149 [[Ns:Article, Context|Article]]
8153 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
8157 [[Article(context)|]]
8158 [[Bar:Article(context)|]]
8159 [[:Bar:Article(context)|]]
8160 [[|Article(context)]]
8164 [[Article(context)|Article]]
8165 [[Bar:Article(context)|Article]]
8166 [[:Bar:Article(context)|Article]]
8167 [[Article(context)]]
8169 [[:Bar:X(Y)Z|X(Y)Z]]
8173 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
8177 [[Article (context)|]]
8178 [[Bar:Article (context)|]]
8179 [[:Bar:Article (context)|]]
8180 [[|Article (context)]]
8184 [[Article (context)|Article]]
8185 [[Bar:Article (context)|Article]]
8186 [[:Bar:Article (context)|Article]]
8187 [[Article (context)]]
8188 [[Bar:X (Y) Z|X (Y) Z]]
8189 [[:Bar:X (Y) Z|X (Y) Z]]
8193 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
8197 [[Article(context)|]]
8198 [[Bar:Article(context)|]]
8199 [[:Bar:Article(context)|]]
8200 [[|Article(context)]]
8204 [[Article(context)|Article]]
8205 [[Bar:Article(context)|Article]]
8206 [[:Bar:Article(context)|Article]]
8207 [[Article(context)]]
8209 [[:Bar:X(Y)Z|X(Y)Z]]
8213 pre-save transform: context links ("pipe trick") with commas (bug 21660)
8217 [[Article (context), context|]]
8218 [[Article (context),context|]]
8219 [[Bar:Article (context), context|]]
8220 [[Bar:Article (context),context|]]
8221 [[:Bar:Article (context), context|]]
8222 [[:Bar:Article (context),context|]]
8224 [[Article (context), context|Article]]
8225 [[Article (context),context|Article]]
8226 [[Bar:Article (context), context|Article]]
8227 [[Bar:Article (context),context|Article]]
8228 [[:Bar:Article (context), context|Article]]
8229 [[:Bar:Article (context),context|Article]]
8233 pre-save transform: trim trailing empty lines
8237 Empty lines are trimmed
8243 Empty lines are trimmed
8247 pre-save transform: Signature expansion
8252 * <noinclude>~~~</noinclude>
8253 * <includeonly>~~~</includeonly>
8254 * <onlyinclude>~~~</onlyinclude>
8256 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
8257 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
8258 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
8259 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
8264 pre-save transform: Signature expansion in nowiki tags (bug 93)
8270 <nowiki>~~~~</nowiki>
8272 <includeonly><nowiki>~~~~</nowiki></includeonly>
8274 <noinclude><nowiki>~~~~</nowiki></noinclude>
8276 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8278 {{subst:Foo}} shall be converted to FOO
8280 As well as inside noinclude/onlyinclude
8281 <noinclude>{{subst:Foo}}</noinclude>
8282 <onlyinclude>{{subst:Foo}}</onlyinclude>
8284 But not inside includeonly
8285 <includeonly>{{subst:Foo}}</includeonly>
8289 <nowiki>~~~~</nowiki>
8291 <includeonly><nowiki>~~~~</nowiki></includeonly>
8293 <noinclude><nowiki>~~~~</nowiki></noinclude>
8295 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
8297 FOO shall be converted to FOO
8299 As well as inside noinclude/onlyinclude
8300 <noinclude>FOO</noinclude>
8301 <onlyinclude>FOO</onlyinclude>
8303 But not inside includeonly
8304 <includeonly>{{subst:Foo}}</includeonly>
8308 Parsoid: Recognize nowiki with trailing space in tags
8312 <nowiki ><div>[[foo]]</nowiki >
8320 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8327 Parsoid: Recognize nowiki with odd capitalization
8331 <noWikI ><div>[[foo]]</Nowiki >
8333 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
8338 Parsoid: Escape nowiki with trailing space in tags
8342 <nowiki > foo </nowiki >
8348 <p><nowiki > foo </nowiki ></p>
8349 <p>a<nowiki />b</p>
8350 <p>c<nowiki/ >d</p>
8354 Parsoid: Escape weird noWikI capitalizations
8358 <noWikI > foo </NoWikI >
8360 <p><noWikI > foo </NoWikI ></p>
8364 ### Message transform tests
8367 message transform: magic variables
8377 message transform: should not transform wiki markup
8387 message transform: <noinclude> in transcluded template (bug 4926)
8397 message transform: <onlyinclude> in transcluded template (bug 4926)
8407 {{#special:}} page name, known
8411 {{#special:Recentchanges}}
8413 Special:RecentChanges
8417 {{#special:}} page name with subpage, known
8421 {{#special:Recentchanges/param}}
8423 Special:RecentChanges/param
8427 {{#special:}} page name, unknown
8431 {{#special:foobar nonexistent}}
8433 Special:Foobar nonexistent
8437 {{#speciale:}} page name, known
8441 {{#speciale:Recentchanges}}
8443 Special:RecentChanges
8447 {{#speciale:}} page name with subpage, known
8451 {{#speciale:Recentchanges/param}}
8453 Special:RecentChanges/param
8457 {{#speciale:}} page name, unknown
8461 {{#speciale:foobar nonexistent}}
8463 Special:Foobar_nonexistent
8469 ### For Parsoid-specific tests, see
8470 #### http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8477 [[Image:foobar.jpg]]
8479 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8484 Simple image (parsoid)
8488 [[Image:foobar.jpg]]
8490 <p><span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>
8495 Simple image (using File: namespace, now canonical) (php)
8501 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8506 Simple image (using File: namespace, now canonical) (parsoid)
8512 <p><span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>
8517 Right-aligned image (php)
8521 [[Image:foobar.jpg|right]]
8523 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
8528 Right-aligned image (parsoid)
8532 [[File:Foobar.jpg|right]]
8534 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></figure>
8538 Image with caption (php)
8542 [[File:Foobar.jpg|right|Caption text]]
8544 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
8549 Image with caption (parsoid)
8553 [[File:Foobar.jpg|right|Caption text]]
8555 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
8559 Image with empty attribute (php)
8563 [[File:Foobar.jpg|right||Caption text]]
8565 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
8570 Image with empty attribute (parsoid)
8574 [[File:Foobar.jpg|right||Caption text]]
8576 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
8580 Image with attributes from template (php)
8584 [[File:Foobar.jpg|{{image_attribs}}]]
8586 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption text"><img alt="Caption text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
8591 Image with attributes from template (parsoid)
8595 [[File:Foobar.jpg|{{image_attribs}}]]
8597 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption text</figcaption></figure>
8601 Image with link tails (php)
8605 123[[File:Foobar.jpg]]456
8606 123[[File:Foobar.jpg|right]]456
8607 123[[File:Foobar.jpg|thumb]]456
8609 <p>123<a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>456
8611 123<div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>456
8612 123<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
8617 Image with link tails (parsoid)
8621 123[[File:Foobar.jpg]]456
8622 123[[File:Foobar.jpg|right]]456
8623 123[[File:Foobar.jpg|thumb]]456
8625 <p>123<span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span>456</p>
8626 123<figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></figure>456
8627 123<figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="20" width="180"></a></figure>456
8631 Image with multiple captions -- only last one is accepted (php)
8635 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8637 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption3 - accepted"><img alt="Caption3 - accepted" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
8642 Image with multiple captions -- only last one is accepted (parsoid)
8646 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
8648 <figure class="mw-default-size mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a><figcaption>Caption3 - accepted</figcaption></figure>
8652 Image with width attribute at different positions (php)
8656 [[File:Foobar.jpg|200px|right|Caption]]
8657 [[File:Foobar.jpg|right|200px|Caption]]
8658 [[File:Foobar.jpg|right|Caption|200px]]
8660 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
8661 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
8662 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption"><img alt="Caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a></div>
8667 Image with width attribute at different positions (parsoid)
8671 [[File:Foobar.jpg|200px|right|Caption]]
8672 [[File:Foobar.jpg|right|200px|Caption]]
8673 [[File:Foobar.jpg|right|Caption|200px]]
8675 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
8676 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
8677 <figure class="mw-halign-right" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" height="23" width="200"></a><figcaption>Caption</figcaption></figure>
8681 Image with link parameter, wiki target (php)
8685 [[File:Foobar.jpg|link=Main Page]]
8687 <p><a href="/wiki/Main_Page" title="Main Page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8692 Image with link parameter, wiki target (parsoid)
8696 [[File:Foobar.jpg|link=Main Page]]
8698 <p><span class="mw-default-size" typeof="mw:Image"><a href="Main_Page"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
8702 Image with link parameter, URL target (php)
8706 [[File:Foobar.jpg|link=http://example.com/]]
8708 <p><a href="http://example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8712 # parsoid bug 49293 (part 1)
8714 Image with link parameter, URL target (parsoid)
8718 [[File:Foobar.jpg|link=http://example.com/]]
8720 <p><span class="mw-default-size" typeof="mw:Image"><a href="http://example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
8724 Image with link parameter, protocol-less URL target (php)
8728 [[File:Foobar.jpg|link=//example.com/]]
8730 <p><a href="//example.com/" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8734 # parsoid bug 49293 (part 2)
8736 Image with link parameter, protocol-less URL target (parsoid)
8740 [[File:Foobar.jpg|link=//example.com/]]
8742 <p><span class="mw-default-size" typeof="mw:Image"><a href="//example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
8746 Image with link parameter, wgExternalLinkTarget
8748 [[Image:foobar.jpg|link=http://example.com/]]
8750 wgExternalLinkTarget='foobar'
8752 <p><a href="http://example.com/" target="foobar" rel="nofollow"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8757 Image with link parameter, wgNoFollowLinks set to false
8759 [[Image:foobar.jpg|link=http://example.com/]]
8761 wgNoFollowLinks=false
8763 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8768 Image with link parameter, wgNoFollowDomainExceptions
8770 [[Image:foobar.jpg|link=http://example.com/]]
8772 wgNoFollowDomainExceptions='example.com'
8774 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8779 Image with link parameter, wgExternalLinkTarget, unnamed parameter
8781 [[Image:foobar.jpg|link=http://example.com/|Title]]
8783 wgExternalLinkTarget='foobar'
8785 <p><a href="http://example.com/" title="Title" target="foobar" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8790 Image with empty link parameter (php)
8794 [[File:Foobar.jpg|link=]]
8796 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8801 Image with empty link parameter (parsoid)
8805 [[File:Foobar.jpg|link=]]
8807 <p><span class="mw-default-size" typeof="mw:Image"><span><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></span></span></p>
8811 Image with link parameter (wiki target) and unnamed parameter (php)
8815 [[File:Foobar.jpg|link=Main Page|Title]]
8817 <p><a href="/wiki/Main_Page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8822 Image with link parameter (wiki target) and unnamed parameter (parsoid)
8826 [[File:Foobar.jpg|link=Main Page|Title]]
8828 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"Title"}'><a href="Main_Page"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
8832 Image with link parameter (URL target) and unnamed parameter (php)
8836 [[File:Foobar.jpg|link=http://example.com/|Title]]
8838 <p><a href="http://example.com/" title="Title" rel="nofollow"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8843 Image with link parameter (URL target) and unnamed parameter (parsoid)
8847 [[File:Foobar.jpg|link=http://example.com/|Title]]
8849 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"Title"}'><a href="http://example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
8853 Thumbnail image with link parameter
8857 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8859 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8864 Manually-specified thumbnail image
8868 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8870 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/File:Foobar.jpg"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8875 Manually-specified thumbnail image with explicit link to wiki page
8879 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8881 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8886 Manually-specified thumbnail image with explicit link to url
8890 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8892 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="http://example.com"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8897 Manually-specified thumbnail image with explicit no link
8901 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8903 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8908 Manually-specified thumbnail image with explicit link and alt text
8912 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8914 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="alttext" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8919 Image with frame and link
8921 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8923 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
8928 Image with frame and link and explicit alt
8930 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8932 <div class="thumb tleft"><div class="thumbinner" style="width:1943px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Altitude" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="thumbimage" /></a> <div class="thumbcaption">This is a test image <a href="/wiki/Main_Page" title="Main Page">Main Page</a></div></div></div>
8937 Image with wiki markup in implicit alt
8939 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8941 <p><a href="/wiki/File:Foobar.jpg" class="image" title="testing bold in alt"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8946 Image with wiki markup in explicit alt
8948 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8950 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="testing bold in alt" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8955 Link to image page- image page normally doesn't exists, hence edit link
8956 Add test with existing image page
8957 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8961 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8966 bug 18784 Link to non-existent image page with caption should use caption as link text
8968 [[:Image:test|caption]]
8970 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8975 Frameless image caption with a free URL
8977 [[Image:foobar.jpg|http://example.com]]
8979 <p><a href="/wiki/File:Foobar.jpg" class="image" title="http://example.com"><img alt="http://example.com" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8984 Thumbnail image caption with a free URL
8986 [[Image:foobar.jpg|thumb|http://example.com]]
8988 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
8993 Thumbnail image caption with a free URL and explicit alt
8995 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8997 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
9002 SVG thumbnails with no language set
9005 [[File:Foobar.svg|thumb|width=200]]
9007 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
9012 SVG thumbnails with language de
9015 [[File:Foobar.svg|thumb|width=200|lang=de]]
9017 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=File:Foobar.svg&lang=de" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/langde-180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/langde-270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/langde-360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
9022 SVG thumbnails with invalid language code
9025 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
9027 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>lang=invalid.language.code</div></div></div>
9032 BUG 1887: A ISBN with a thumbnail
9034 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
9036 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
9041 BUG 1887: A RFC with a thumbnail
9043 [[Image:foobar.jpg|thumb|This is RFC 12354]]
9045 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
9050 BUG 1887: A mailto link with a thumbnail
9052 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
9054 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
9058 # Pending resolution to bug 368
9060 BUG 648: Frameless image caption with a link
9062 [[Image:foobar.jpg|text with a [[link]] in it]]
9064 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9069 BUG 648: Frameless image caption with a link (suffix)
9071 [[Image:foobar.jpg|text with a [[link]]foo in it]]
9073 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a linkfoo in it"><img alt="text with a linkfoo in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9078 BUG 648: Frameless image caption with an interwiki link
9080 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
9082 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a MeatBall:Link in it"><img alt="text with a MeatBall:Link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9087 BUG 648: Frameless image caption with a piped interwiki link
9089 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
9091 <p><a href="/wiki/File:Foobar.jpg" class="image" title="text with a link in it"><img alt="text with a link in it" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9096 Escape HTML special chars in image alt text
9098 [[Image:foobar.jpg|& < > "]]
9100 <p><a href="/wiki/File:Foobar.jpg" class="image" title="& < > ""><img alt="& < > "" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9105 BUG 499: Alt text should have Ӓ, not &1234;
9107 [[Image:foobar.jpg|♀]]
9109 <p><a href="/wiki/File:Foobar.jpg" class="image" title="♀"><img alt="♀" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9114 Broken image caption with link
9116 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
9118 <p>[[Image:Foobar.jpg|thumb|This is a broken caption. But <a href="/wiki/Main_Page" title="Main Page">this</a> is just an ordinary link.
9123 Image caption containing another image
9125 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
9127 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
9132 Image caption containing a newline
9134 [[Image:Foobar.jpg|This
9137 <p><a href="/wiki/File:Foobar.jpg" class="image" title="This *is some text"><img alt="This *is some text" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
9142 Parsoid: Image caption containing leading space
9143 (The leading space should not trigger nowiki escaping in wt2wt mode)
9145 [[Image:Foobar.jpg|thumb| bar]]
9147 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>bar</div></div></div>
9152 Bug 3090: External links other than http: in image captions
9154 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
9156 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
9163 [[Image:foobar.jpg|a|class=b]]
9165 <p><a href="/wiki/File:Foobar.jpg" class="image" title="a"><img alt="a" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" class="b" /></a>
9170 Localized image handling (1).
9174 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
9176 <div class="floatleft"><a href="/wiki/Foo" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
9181 Localized image handling (2).
9185 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
9187 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
9192 "border", "frameless" and "class" attributes on an image.
9194 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
9196 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a>
9203 #REDIRECT [[File:Barfoo.jpg]]
9209 [[Image:Barfoo.jpg]]
9211 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
9216 Missing image with uploads disabled
9220 [[Image:Foobaz.jpg]]
9222 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
9226 # Parsoid-specific testing for images
9227 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
9228 # Currently imperfect due to a flaw in the Parsoid testrunner
9230 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
9234 Parsoid-specific image handling - simple image with size and middle alignment
9238 [[Image:Foobar.jpg|50px|middle]]
9241 <span class="mw-valign-middle" typeof="mw:Image">
9242 <a href="File:Foobar.jpg">
9243 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9250 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
9254 [[Image:Foobar.jpg|500x10px|baseline|caption]]
9257 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
9258 <a href="File:Foobar.jpg">
9259 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
9266 Parsoid-specific image handling - simple image with border and size spec
9270 [[Image:Foobar.jpg|50px|border|caption]]
9273 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
9274 <a href="File:Foobar.jpg">
9275 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
9282 Parsoid-specific image handling - thumbnail with halign, valign, and caption
9286 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
9288 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
9289 <a href="File:Foobar.jpg">
9290 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
9292 <figcaption>caption content</figcaption>
9297 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
9301 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
9303 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
9304 <a href="File:Foobar.jpg">
9305 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
9307 <figcaption>caption</figcaption>
9312 Parsoid-specific image handling - framed image with specific size and caption
9316 [[Image:Foobar.jpg|500x50px|frame|caption]]
9318 <figure typeof="mw:Image/Frame">
9319 <a href="File:Foobar.jpg">
9320 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9322 <figcaption>caption</figcaption>
9327 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
9331 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
9333 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
9334 <a href="File:Foobar.jpg">
9335 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9337 <figcaption>caption</figcaption>
9342 Parsoid-specific image handling - frameless image with specific size, border, and caption
9346 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
9349 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
9350 <a href="File:Foobar.jpg">
9351 <img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
9357 #Parsoid-specific image handling - simple image with a formatted caption
9361 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
9364 #<span typeof="mw:Image">
9365 #<a class="mw-default-size" href="Image:Foobar.jpg">
9366 #<img alt="Foobar.jpg" class="mw-default-size" src="http://example.com/images/3/3a/Foobar.jpg" height="220" width="1941">
9377 Subpage test/subpage
9385 subpage title=[[Subpage test]]
9389 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
9394 Subpage noslash link
9396 subpage title=[[Subpage test]]
9400 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
9404 # TODO: make this PHP-parser compatible!
9406 Relative subpage noslash link
9408 parsoid=wt2wt,wt2html,html2html
9409 subpage title=[[Subpage test/1/2/3/4]]
9415 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
9416 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
9419 # TODO: make this PHP-parser compatible!
9421 Parsoid: dot-slash prefixed wikilinks
9423 parsoid=wt2wt,wt2html,html2html
9431 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
9432 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
9433 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
9441 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
9446 BUG 561: {{/Subpage}}
9448 subpage title=[[Page]]
9452 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
9460 Category:MediaWiki User's Guide
9468 [[:Category:MediaWiki User's Guide]]
9470 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
9479 [[Category:MediaWiki User's Guide]]
9481 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9485 PAGESINCATEGORY invalid title fatal (r33546 fix)
9487 {{PAGESINCATEGORY:<bogus>}}
9494 Category with different sort key
9498 [[Category:MediaWiki User's Guide|Foo]]
9500 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9504 Category with identical sort key
9508 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9510 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
9514 Category with empty sort key
9519 [[Category:MediaWiki User's Guide|]]
9521 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
9525 Category with empty sort key and parentheses
9530 [[Category:Foo (bar)|]]
9532 [[Category:Foo (bar)|Foo]]
9536 Category with link tail
9541 123[[Category:Foo]]456
9543 123[[Category:Foo]]456
9547 Category with template
9552 [[Category:{{echo|Foo}}]]
9554 [[Category:{{echo|Foo}}]]
9558 Category with template in sort key
9563 [[Category:Foo|{{echo|Bar}}]]
9565 [[Category:Foo|{{echo|Bar}}]]
9569 Category with template in sort key and title
9574 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9576 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
9580 Category / paragraph interactions
9582 Foo [[Category:Baz]] Bar
9584 Foo [[Category:Baz]]
9592 [[Category:Baz]] Bar
9605 {{echo|[[Category:Baz]]}}
9620 Parsoid: Serialize link to category page with colon escape
9626 [[:Category:Foo|Bar]]
9629 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
9630 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
9635 Parsoid: Link prefix/suffixes aren't applied to category links
9637 parsoid=wt2html,wt2wt,html2html
9642 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
9646 Parsoid: Serialize link to file page with colon escape
9652 [[:File:Foo.png|Bar]]
9655 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
9656 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
9661 Parsoid: Serialize a genuine category link without colon escape
9666 [[Category:Foo|Bar]]
9668 <link rel="mw:WikiLink/Category" href="Category:Foo">
9669 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
9673 ### Inter-language links
9676 Inter-language links
9682 [[zh:食品]]
9684 es:Alimento fr:Nourriture zh:食品
9688 Duplicate interlanguage links (bug 24502)
9704 Basic section headings
9711 ===Smaller headline===
9714 <h2><span class="mw-headline" id="Headline_1">Headline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9717 <h2><span class="mw-headline" id="Headline_2">Headline 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9720 <h3><span class="mw-headline" id="Smaller_headline">Smaller headline</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Smaller headline">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9726 Section headings with TOC
9729 === Subheadline 1 ===
9730 ===== Skipping a level =====
9731 ====== Skipping a level ======
9735 ===Another headline===
9737 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9739 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
9741 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
9743 <li class="toclevel-3 tocsection-3"><a href="#Skipping_a_level"><span class="tocnumber">1.1.1</span> <span class="toctext">Skipping a level</span></a>
9745 <li class="toclevel-4 tocsection-4"><a href="#Skipping_a_level_2"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Skipping a level</span></a></li>
9752 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
9754 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
9759 <h2><span class="mw-headline" id="Headline_1">Headline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9760 <h3><span class="mw-headline" id="Subheadline_1">Subheadline 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9761 <h5><span class="mw-headline" id="Skipping_a_level">Skipping a level</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a><span class="mw-editsection-bracket">]</span></span></h5>
9762 <h6><span class="mw-headline" id="Skipping_a_level_2">Skipping a level</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Skipping a level">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
9763 <h2><span class="mw-headline" id="Headline_2">Headline 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9766 <h3><span class="mw-headline" id="Another_headline">Another headline</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Another headline">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9770 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
9772 Handling of sections up to level 6 and beyond
9775 == Level 2 Heading==
9776 === Level 3 Heading===
9777 ==== Level 4 Heading====
9778 ===== Level 5 Heading=====
9779 ====== Level 6 Heading======
9780 ======= Level 7 Heading=======
9781 ======== Level 8 Heading========
9782 ========= Level 9 Heading=========
9783 ========== Level 10 Heading==========
9785 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9787 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9789 <li class="toclevel-2 tocsection-2"><a href="#Level_2_Heading"><span class="tocnumber">1.1</span> <span class="toctext">Level 2 Heading</span></a>
9791 <li class="toclevel-3 tocsection-3"><a href="#Level_3_Heading"><span class="tocnumber">1.1.1</span> <span class="toctext">Level 3 Heading</span></a>
9793 <li class="toclevel-4 tocsection-4"><a href="#Level_4_Heading"><span class="tocnumber">1.1.1.1</span> <span class="toctext">Level 4 Heading</span></a>
9795 <li class="toclevel-5 tocsection-5"><a href="#Level_5_Heading"><span class="tocnumber">1.1.1.1.1</span> <span class="toctext">Level 5 Heading</span></a>
9797 <li class="toclevel-6 tocsection-6"><a href="#Level_6_Heading"><span class="tocnumber">1.1.1.1.1.1</span> <span class="toctext">Level 6 Heading</span></a></li>
9798 <li class="toclevel-6 tocsection-7"><a href="#.3D_Level_7_Heading.3D"><span class="tocnumber">1.1.1.1.1.2</span> <span class="toctext">= Level 7 Heading=</span></a></li>
9799 <li class="toclevel-6 tocsection-8"><a href="#.3D.3D_Level_8_Heading.3D.3D"><span class="tocnumber">1.1.1.1.1.3</span> <span class="toctext">== Level 8 Heading==</span></a></li>
9800 <li class="toclevel-6 tocsection-9"><a href="#.3D.3D.3D_Level_9_Heading.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.4</span> <span class="toctext">=== Level 9 Heading===</span></a></li>
9801 <li class="toclevel-6 tocsection-10"><a href="#.3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D"><span class="tocnumber">1.1.1.1.1.5</span> <span class="toctext">==== Level 10 Heading====</span></a></li>
9814 <h1><span class="mw-headline" id="Level_1_Heading">Level 1 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
9815 <h2><span class="mw-headline" id="Level_2_Heading">Level 2 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9816 <h3><span class="mw-headline" id="Level_3_Heading">Level 3 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9817 <h4><span class="mw-headline" id="Level_4_Heading">Level 4 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Level 4 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
9818 <h5><span class="mw-headline" id="Level_5_Heading">Level 5 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Level 5 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h5>
9819 <h6><span class="mw-headline" id="Level_6_Heading">Level 6 Heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: Level 6 Heading">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
9820 <h6><span class="mw-headline" id=".3D_Level_7_Heading.3D">= Level 7 Heading=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=7" title="Edit section: = Level 7 Heading=">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
9821 <h6><span class="mw-headline" id=".3D.3D_Level_8_Heading.3D.3D">== Level 8 Heading==</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=8" title="Edit section: == Level 8 Heading==">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
9822 <h6><span class="mw-headline" id=".3D.3D.3D_Level_9_Heading.3D.3D.3D">=== Level 9 Heading===</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=9" title="Edit section: === Level 9 Heading===">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
9823 <h6><span class="mw-headline" id=".3D.3D.3D.3D_Level_10_Heading.3D.3D.3D.3D">==== Level 10 Heading====</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=10" title="Edit section: ==== Level 10 Heading====">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
9828 TOC regression (bug 9764)
9832 ==== title 1.1.1 ====
9837 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9839 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9841 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a>
9843 <li class="toclevel-3 tocsection-3"><a href="#title_1.1.1"><span class="tocnumber">1.1.1</span> <span class="toctext">title 1.1.1</span></a></li>
9846 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
9849 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9851 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
9856 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9857 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9858 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
9859 <h3><span class="mw-headline" id="title_1.2">title 1.2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9860 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9861 <h3><span class="mw-headline" id="title_2.1">title 2.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9866 TOC with wgMaxTocLevel=3 (bug 6204)
9872 ==== title 1.1.1 ====
9877 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9879 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9881 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
9882 <li class="toclevel-2 tocsection-4"><a href="#title_1.2"><span class="tocnumber">1.2</span> <span class="toctext">title 1.2</span></a></li>
9885 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9887 <li class="toclevel-2 tocsection-6"><a href="#title_2.1"><span class="tocnumber">2.1</span> <span class="toctext">title 2.1</span></a></li>
9892 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9893 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9894 <h4><span class="mw-headline" id="title_1.1.1">title 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
9895 <h3><span class="mw-headline" id="title_1.2">title 1.2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: title 1.2">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9896 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9897 <h3><span class="mw-headline" id="title_2.1">title 2.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: title 2.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9902 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9908 ====Section 1.1.1====
9909 ====Section 1.1.1.1====
9912 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9914 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9916 <li class="toclevel-2 tocsection-2"><a href="#Section_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Section 1.1</span></a></li>
9919 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9922 <h2><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9923 <h3><span class="mw-headline" id="Section_1.1">Section 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9924 <h4><span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
9925 <h4><span class="mw-headline" id="Section_1.1.1.1">Section 1.1.1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: Section 1.1.1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h4>
9926 <h2><span class="mw-headline" id="Section_2">Section 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Section 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9932 Resolving duplicate section names
9937 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9938 <h2><span class="mw-headline" id="Foo_bar_2">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9943 Resolving duplicate section names with differing case (bug 10721)
9948 <h2><span class="mw-headline" id="Foo_bar">Foo bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9949 <h2><span class="mw-headline" id="Foo_Bar_2">Foo Bar</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9961 Template with sections, __NOTOC__
9968 <h2><span class="mw-headline" id="Section_0">Section 0</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 0">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9969 <h3><span class="mw-headline" id="Section_1">Section 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Sections&action=edit&section=T-1" title="Template:Sections">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
9970 <h2><span class="mw-headline" id="Section_2">Section 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Template:Sections&action=edit&section=T-2" title="Template:Sections">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9971 <h2><span class="mw-headline" id="Section_4">Section 4</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 4">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9976 __NOEDITSECTION__ keyword
9982 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9983 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9988 Link inside a section heading
9990 ==Section with a [[Main Page|link]] in it==
9992 <h2><span class="mw-headline" id="Section_with_a_link_in_it">Section with a <a href="/wiki/Main_Page" title="Main Page">link</a> in it</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section with a link in it">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
9997 TOC regression (bug 12077)
10004 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10006 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
10008 <li class="toclevel-2 tocsection-2"><a href="#title_1.1"><span class="tocnumber">1.1</span> <span class="toctext">title 1.1</span></a></li>
10011 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
10014 <h2><span class="mw-headline" id="title_1">title 1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10015 <h3><span class="mw-headline" id="title_1.1">title 1.1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
10016 <h2><span class="mw-headline" id="title_2">title 2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10021 BUG 1219 URL next to image (good)
10023 http://example.com [[Image:foobar.jpg]]
10025 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
10030 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
10033 The line above must have a trailing space!
10036 But just in case it doesn't...
10038 <h1><span class="mw-headline" id=".3D">=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: =">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10039 <p>The line above must have a trailing space!
10041 <h1><span class="mw-headline" id=".3D_2">=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10042 <p>But just in case it doesn't...
10047 Header with special characters (bug 25462)
10049 The tooltips shall not show entities to the user (ie. be double escaped)
10066 <p>The tooltips shall not show entities to the user (ie. be double escaped)
10068 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10070 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
10071 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
10072 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
10073 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
10074 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
10077 <h2><span class="mw-headline" id="text_.3E_text">text > text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10080 <h2><span class="mw-headline" id="text_.3C_text">text < text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: text < text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10083 <h2><span class="mw-headline" id="text_.26_text">text & text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: text & text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10086 <h2><span class="mw-headline" id="text_.27_text">text ' text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: text ' text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10089 <h2><span class="mw-headline" id="text_.22_text">text " text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: text " text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
10095 Headers with excess '=' characters
10096 (Are similar tests necessary beyond the 1st level?)
10100 =''italic'' heading==
10101 ==''italic'' heading=
10103 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10105 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
10106 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
10107 <li class="toclevel-1 tocsection-3"><a href="#italic_heading.3D"><span class="tocnumber">3</span> <span class="toctext"><i>italic</i> heading=</span></a></li>
10108 <li class="toclevel-1 tocsection-4"><a href="#.3Ditalic_heading"><span class="tocnumber">4</span> <span class="toctext">=<i>italic</i> heading</span></a></li>
10111 <h1><span class="mw-headline" id="foo.3D">foo=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: foo=">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10112 <h1><span class="mw-headline" id=".3Dfoo">=foo</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: =foo">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10113 <h1><span class="mw-headline" id="italic_heading.3D"><i>italic</i> heading=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: italic heading=">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10114 <h1><span class="mw-headline" id=".3Ditalic_heading">=<i>italic</i> heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: =italic heading">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
10119 HTML headers vs TOC (bug 23393)
10120 (__NOEDITSECTION__ for clearer output, doesn't matter here)
10132 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10134 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
10136 <li class="toclevel-2 tocsection-1"><a href="#Header_1.1"><span class="tocnumber">1.1</span> <span class="toctext">Header 1.1</span></a></li>
10137 <li class="toclevel-2 tocsection-2"><a href="#Header_1.2"><span class="tocnumber">1.2</span> <span class="toctext">Header 1.2</span></a></li>
10140 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
10142 <li class="toclevel-2 tocsection-3"><a href="#Header_2.1"><span class="tocnumber">2.1</span> <span class="toctext">Header 2.1</span></a></li>
10143 <li class="toclevel-2 tocsection-4"><a href="#Header_2.2"><span class="tocnumber">2.2</span> <span class="toctext">Header 2.2</span></a></li>
10148 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
10149 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
10150 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
10151 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
10152 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
10153 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
10158 BUG 1219 URL next to image (broken)
10160 http://example.com[[Image:foobar.jpg]]
10162 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
10167 Bug 1186 news: in the middle of text
10169 http://en.wikinews.org/wiki/Wikinews:Workplace
10171 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
10177 Namespaced link must have a title
10186 Namespaced link must have a title (bad fragment version)
10188 [[Project:#fragment]]
10190 <p>[[Project:#fragment]]
10196 ### HTML tags and HTML attributes
10200 div with no attributes
10202 <div>HTML rocks</div>
10204 <div>HTML rocks</div>
10209 div with double-quoted attribute
10211 <div id="rock">HTML rocks</div>
10213 <div id="rock">HTML rocks</div>
10218 div with single-quoted attribute
10220 <div id='rock'>HTML rocks</div>
10222 <div id="rock">HTML rocks</div>
10227 div with unquoted attribute
10229 <div id=rock>HTML rocks</div>
10231 <div id="rock">HTML rocks</div>
10236 div with illegal double attributes
10238 <div id="a" id="b">HTML rocks</div>
10240 <div id="b">HTML rocks</div>
10244 # FIXME: produce empty string instead of "class" in the PHP parser, following
10247 div with empty attribute value, space before equals
10251 <div class =>HTML rocks</div>
10253 <div class="">HTML rocks</div>
10257 # The PHP parser escapes the opening brace to { for some reason, so
10258 # disabled this test for it.
10260 div with braces in attribute value
10264 <div title="{}">Foo</div>
10266 <div title="{}">Foo</div>
10269 # This it very inconsistent in the PHP parser: it returns
10270 # class="class" if there is a space between the name and the equal sign (see
10271 # 'div with empty attribute value, space before equals'), but strips the
10272 # attribute completely if the space is missing. We hope that not much content
10273 # depends on this, so are implementing the behavior below in Parsoid for
10274 # consistencies' sake. Disabled for the PHP parser.
10275 # FIXME: fix this behavior in the PHP parser?
10277 div with empty attribute value, no space before equals
10281 <div class=>HTML rocks</div>
10283 <div class="">HTML rocks</div>
10288 HTML multiple attributes correction
10290 <p class="error" class="awesome">Awesome!</p>
10292 <p class="awesome">Awesome!</p>
10297 Table multiple attributes correction
10300 !+ class="error" class="awesome"| status
10305 <th class="awesome"> status
10313 <DIV ID="x">HTML ROCKS</DIV>
10315 <div id="x">HTML ROCKS</div>
10320 Non-ASCII pseudo-tags are rendered as text
10329 Pseudo-tag with URL 'name' renders as url link
10331 <http://example.com/>
10333 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
10338 text with amp in the middle of nowhere
10342 <p>Remember AT&T?
10347 text with character entity: eacute
10349 I always thought é was a cute letter.
10351 <p>I always thought é was a cute letter.
10356 text with entity-escaped character entity-like string: eacute
10358 I always thought &eacute; was a cute letter.
10360 <p>I always thought &eacute; was a cute letter.
10365 text with undefined character entity: xacute
10367 I always thought &xacute; was a cute letter.
10369 <p>I always thought &xacute; was a cute letter.
10375 ### Nesting tests (see bug 41545, 50604, 51081)
10378 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
10379 # Note that html2wt is considerably more difficult if we use <b> in
10380 # the test case, instead of <big>
10382 Ensure that HTML adoption agency algorithm is properly implemented.
10384 <big>X<big>Y</big>Z</big>
10386 <p><big>X<big>Y</big>Z</big>
10390 # This was bug 41545 in the PHP parser.
10394 <kbd>X<kbd>Y</kbd>Z</kbd>
10396 <p><kbd>X<kbd>Y</kbd>Z</kbd>
10400 # The following cases were bug 51081 in the PHP parser.
10401 # Note that there are some other nestable tags (b, i, etc) which are
10402 # not covered; see bug 51081 for discussion.
10406 <em>X<em>Y</em>Z</em>
10408 <p><em>X<em>Y</em>Z</em>
10413 Nesting of <strong>
10415 <strong>X<strong>Y</strong>Z</strong>
10417 <p><strong>X<strong>Y</strong>Z</strong>
10426 <p><q>X<q>Y</q>Z</q>
10433 <ruby>X<ruby>Y</ruby>Z</ruby>
10435 <p><ruby>X<ruby>Y</ruby>Z</ruby>
10442 <bdo>X<bdo>Y</bdo>Z</bdo>
10444 <p><bdo>X<bdo>Y</bdo>Z</bdo>
10456 [[Media:Foobar.jpg]]
10458 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
10463 Media link with text
10465 [[Media:Foobar.jpg|A neat file to look at]]
10467 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
10471 # FIXME: this is still bad HTML tag nesting
10473 Media link with nasty text
10474 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
10476 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
10478 <a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Safe Link<div style="display:none">" onmouseover="alert(document.cookie)" onfoo="</div></a>
10483 Media link to nonexistent file (bug 1702)
10485 [[Media:No such.jpg]]
10487 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
10492 Image link to nonexistent file (bug 1850 - good)
10494 [[Image:No such.jpg]]
10496 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
10501 :Image link to nonexistent file (bug 1850 - bad)
10503 [[:Image:No such.jpg]]
10505 <p><a href="/index.php?title=File:No_such.jpg&action=edit&redlink=1" class="new" title="File:No such.jpg (page does not exist)">Image:No such.jpg</a>
10512 Character reference normalization in link text (bug 1938)
10514 [[Main Page|this&that]]
10516 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
10523 Test for unicode normalization
10525 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
10529 (bug 19451) Links should refer to the normalized form.
10537 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10538 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10539 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10540 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10541 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
10546 Empty attribute crash test (bug 2067)
10548 <font color="">foo</font>
10550 <p><font color="">foo</font>
10555 Empty attribute crash test single-quotes (bug 2067)
10557 <font color=''>foo</font>
10559 <p><font color="">foo</font>
10564 Attribute test: equals, then nothing
10566 <font color=>foo</font>
10568 <p><font>foo</font>
10573 Attribute test: unquoted value
10575 <font color=x>foo</font>
10577 <p><font color="x">foo</font>
10582 Attribute test: unquoted but illegal value (hash)
10584 <font color=#x>foo</font>
10586 <p><font color="#x">foo</font>
10591 Attribute test: no value
10593 <font color>foo</font>
10595 <p><font color="color">foo</font>
10600 Bug 2095: link with three closing brackets
10604 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
10609 Bug 2095: link with pipe and three closing brackets
10611 [[Main Page|link]]]
10613 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
10618 Bug 2095: link with pipe and three closing brackets, version 2
10620 [[Main Page|[http://example.com/]]]
10622 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
10632 Template:Dangerous attribute
10634 " onmouseover="alert(document.cookie)
10638 Template:Dangerous style attribute
10640 border-size: expression(alert(document.cookie))
10646 <div style="float: right; {{{1}}}">Magic div</div>
10650 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
10652 <div title="{{test}}"></div>
10654 <div title="This is a test template"></div>
10659 Bug 2304: HTML attribute safety (dangerous template; 2309)
10661 <div title="{{dangerous attribute}}"></div>
10663 <div title=""></div>
10668 Bug 2304: HTML attribute safety (dangerous style template; 2309)
10670 <div style="{{dangerous style attribute}}"></div>
10672 <div style="/* insecure input */"></div>
10677 Bug 2304: HTML attribute safety (safe parameter; 2309)
10679 {{div style|width: 200px}}
10681 <div style="float: right; width: 200px">Magic div</div>
10686 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
10688 {{div style|width: expression(alert(document.cookie))}}
10690 <div style="/* insecure input */">Magic div</div>
10695 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
10697 {{div style|"><script>alert(document.cookie)</script>}}
10699 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10704 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
10706 {{div style|" ><script>alert(document.cookie)</script>}}
10708 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
10713 Bug 2304: HTML attribute safety (link)
10715 <div title="[[Main Page]]"></div>
10717 <div title="[[Main Page]]"></div>
10722 Bug 2304: HTML attribute safety (italics)
10724 <div title="''foobar''"></div>
10726 <div title="''foobar''"></div>
10731 Bug 2304: HTML attribute safety (bold)
10733 <div title="'''foobar'''"></div>
10735 <div title="'''foobar'''"></div>
10741 Bug 2304: HTML attribute safety (ISBN)
10743 <div title="ISBN 1234567890"></div>
10745 <div title="ISBN 1234567890"></div>
10750 Bug 2304: HTML attribute safety (RFC)
10752 <div title="RFC 1234"></div>
10754 <div title="RFC 1234"></div>
10759 Bug 2304: HTML attribute safety (PMID)
10761 <div title="PMID 1234567890"></div>
10763 <div title="PMID 1234567890"></div>
10768 Bug 2304: HTML attribute safety (web link)
10770 <div title="http://example.com/"></div>
10772 <div title="http://example.com/"></div>
10777 Bug 2304: HTML attribute safety (named web link)
10779 <div title="[http://example.com/ link]"></div>
10781 <div title="[http://example.com/ link]"></div>
10786 Bug 3244: HTML attribute safety (extension; safe)
10788 <div style="<nowiki>background:blue</nowiki>"></div>
10790 <div style="background:blue"></div>
10795 Bug 3244: HTML attribute safety (extension; unsafe)
10797 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10799 <div style="/* insecure input */"></div>
10803 # More MSIE fun discovered by Tom Gilder
10806 MSIE CSS safety test: spurious slash
10808 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10810 <div style="/* insecure input */">evil</div>
10815 MSIE CSS safety test: hex code
10817 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10819 <div style="/* insecure input */">evil</div>
10824 MSIE CSS safety test: comment in url
10826 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10828 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10833 MSIE CSS safety test: comment in expression
10835 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10837 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10843 Table attribute legitimate extension
10846 !+ style="<nowiki>color:blue</nowiki>"| status
10851 <th style="color:blue"> status
10857 Table attribute safety
10860 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10865 <th style="/* insecure input */"> status
10871 CSS line continuation 1
10873 <div style="background-image: u\ rl(test.jpg);"></div>
10875 <div style="/* insecure input */"></div>
10880 CSS line continuation 2
10882 <div style="background-image: u\ rl(test.jpg); "></div>
10884 <div style="/* insecure input */"></div>
10895 Expansion of multi-line templates in attribute values (bug 6255)
10897 <div style="background: {{identity|#00FF00}}">-</div>
10899 <div style="background: #00FF00">-</div>
10905 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10907 <div style="background:
10910 <div style="background: #00FF00">-</div>
10915 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10917 <div style="background: #00FF00">-</div>
10919 <div style="background: #00FF00">-</div>
10924 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
10927 Parser hook: empty input
10940 Parser hook: empty input using terminated empty elements
10953 Parser hook: empty input using terminated empty elements (space before)
10966 Parser hook: basic input
10980 Parser hook: case insensitive
10994 Parser hook: case insensitive, redux
11007 Parser hook: nested tags
11011 <tag><tag></tag></tag>
11022 Parser hook: basic arguments
11024 <tag width=200 height = "100" depth = '50' square></tag>
11032 'square' => 'square',
11039 Parser hook: argument containing a forward slash (bug 5344)
11041 <tag filename='/tmp/bla'></tag>
11046 'filename' => '/tmp/bla',
11053 Parser hook: empty input using terminated empty elements (bug 2374)
11066 # </tag> should be output literally since there is no matching tag that begins it
11068 Parser hook: basic arguments using terminated empty elements (bug 2374)
11070 <tag width=200 height = "100" depth = '50' square/>
11080 'square' => 'square',
11089 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
11093 Parser hook: static parser hook not inside a comment
11095 <statictag>hello, world</statictag>
11096 <statictag action=flush/>
11104 Parser hook: static parser hook inside a comment
11106 <!-- <statictag>hello, world</statictag> -->
11107 <statictag action=flush/>
11113 # Nested template calls; this case was broken by Parser.php rev 1.506,
11117 Template:One-parameter
11119 (My parameter is: {{{1}}})
11123 Template:Map-one-parameter
11125 {{{{{1}}}|{{{2}}}}}
11129 Nested template calls
11131 {{Map-one-parameter|One-parameter|param}}
11133 <p>(My parameter is: param)
11142 Sanitizer: Closing of open tags
11144 <s></s><table></table>
11146 <s></s><table></table>
11151 Sanitizer: Closing of open but not closed tags
11160 Sanitizer: Closing of closed but not open tags
11169 Sanitizer: Closing of closed but not open table tags
11171 Table not started</td></tr></table>
11173 <p>Table not started</td></tr></table>
11178 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
11180 <span id="æ: v">byte</span>[[#æ: v|backlink]]
11182 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
11187 Sanitizer: Validating the contents of the id attribute (bug 4515)
11193 Something, but definitely not <br id="9" />...
11197 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
11201 <br id="foo" /><br id="foo" />
11203 Something need to be done. foo-2 ?
11207 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
11210 <meta itemprop="hello" content="world">
11211 <meta http-equiv="refresh" content="5">
11212 <meta itemprop="hello" http-equiv="refresh" content="5">
11213 <link itemprop="hello" href="{{SERVER}}">
11214 <link rel="stylesheet" href="{{SERVER}}">
11215 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
11218 <div itemscope="itemscope">
11219 <p> <meta itemprop="hello" content="world" />
11220 <meta http-equiv="refresh" content="5">
11221 <meta itemprop="hello" content="5" />
11223 <link itemprop="hello" href="http://example.org" />
11224 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
11225 <link itemprop="hello" href="http://example.org" />
11231 Language converter: output gets cut off unexpectedly (bug 5757)
11235 this bit is safe: }-
11237 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
11239 then we get cut off here: }-
11241 all additional text is vanished
11243 <p>this bit is safe: }-
11244 </p><p>but if we add a conversion instance: xxx
11245 </p><p>then we get cut off here: }-
11246 </p><p>all additional text is vanished
11251 Self closed html pairs (bug 5487)
11254 <center><font id="bug" />Centered text</center>
11255 <div><font id="bug2" />In div text</div>
11257 <center><font id="bug" />Centered text</center>
11258 <div><font id="bug2" />In div text</div>
11267 Punctuation: nbsp before exclamation
11271 <p>C'est grave !
11276 Punctuation: CSS !important (bug 11874)
11278 <div style="width:50% !important">important</div>
11280 <div style="width:50% !important">important</div>
11285 Punctuation: CSS ! important (bug 11874; with space after)
11287 <div style="width:50% ! important">important</div>
11289 <div style="width:50% ! important">important</div>
11295 HTML bullet list, closed tags (bug 5497)
11310 HTML bullet list, unclosed tags (bug 5497)
11327 HTML ordered list, closed tags (bug 5497)
11342 HTML ordered list, unclosed tags (bug 5497)
11359 HTML nested bullet list, closed tags (bug 5497)
11384 HTML nested bullet list, open tags (bug 5497)
11409 HTML nested ordered list, closed tags (bug 5497)
11434 HTML nested ordered list, open tags (bug 5497)
11459 HTML ordered list item with parameters oddity
11461 <ol><li id="fragment">One</li></ol>
11463 <ol><li id="fragment">One</li></ol>
11468 bug 5918: autonumbering
11470 [http://first/] [http://second] [ftp://ftp]
11474 [mailto:enclosed@mail.tld With target]
11476 [mailto:enclosed@mail.tld]
11478 mailto:inline@mail.tld
11480 <p><a rel="nofollow" class="external autonumber" href="http://first/">[1]</a> <a rel="nofollow" class="external autonumber" href="http://second">[2]</a> <a rel="nofollow" class="external autonumber" href="ftp://ftp">[3]</a>
11481 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
11482 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
11483 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
11484 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
11490 # Security and HTML correctness
11491 # From Nick Jenkins' fuzz testing
11495 Fuzz testing: Parser13
11510 Fuzz testing: Parser14
11515 <h2><span class="mw-headline" id="onmouseover.3D">onmouseover=</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
11516 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
11518 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
11525 Fuzz testing: Parser14-table
11530 <h2><span class="mw-headline" id="a">a</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: a">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
11531 <table style="__TOC__">
11537 # Known to produce bogus xml (extra </td>)
11539 Fuzz testing: Parser16
11559 Fuzz testing: Parser21
11562 ! irc://{{ftp://a" onmouseover="alert('hello world');"
11567 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
11577 Fuzz testing: Parser22
11579 http://===r:::https://b
11583 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
11591 # Known to produce bad XML for now
11593 Fuzz testing: Parser24
11600 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
11601 <br style="onmouseover='alert(document.cookie);' " />
11603 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11608 <u class="|">}}}} >
11609 <br style="onmouseover='alert(document.cookie);'" />
11611 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
11620 # Note: the current result listed for this is not what the original one was,
11621 # but the original bug was JavaScript injection, which is fixed in any case.
11622 # It's not clear that the original result listed was any more correct than the
11623 # current one. Original result:
11626 # <li class="||">
11627 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11629 Fuzz testing: Parser25 (bug 6055)
11635 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
11637 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
11642 Fuzz testing: URL adjacent extension (with space, clean)
11645 http://example.com <nowiki>junk</nowiki>
11647 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
11652 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
11655 http://example.com<nowiki>junk</nowiki>
11657 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
11662 Fuzz testing: URL adjacent extension (no space, dirty; pre)
11665 http://example.com<pre>junk</pre>
11667 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
11672 Fuzz testing: image with bogus manual thumbnail
11674 [[Image:foobar.jpg|thumbnail= ]]
11676 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
11681 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
11683 <pre dir=" "></pre>
11685 <pre dir=" "></pre>
11690 Parsing optional HTML elements (Bug 6171)
11695 <td> Some tabular data</td>
11696 <td> More tabular data ...
11697 <td> And yet som tabular data</td>
11703 <td> Some tabular data</td>
11704 <td> More tabular data ...
11705 </td><td> And yet som tabular data</td>
11712 Correct handling of <td>, <tr> (Bug 6171)
11717 <td> Some tabular data</td>
11718 <td> More tabular data ...</td>
11719 <td> And yet som tabular data</td>
11725 <td> Some tabular data</td>
11726 <td> More tabular data ...</td>
11727 <td> And yet som tabular data</td>
11735 Parsing crashing regression (fr:JavaScript)
11739 <p></body></x>
11744 Inline wiki vs wiki block nesting
11750 <p><b>Bold paragraph</b>
11751 </p><p>New wiki paragraph
11756 Inline HTML vs wiki block nesting
11764 <p><b>Bold paragraph</b>
11765 </p><p>New wiki paragraph
11769 # Original result was this:
11770 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
11772 # While that might be marginally more intuitive, maybe, the six-apostrophe
11773 # construct is clearly pathological and the result stated here (which is what
11774 # the parser actually does) is about as reasonable as anything.
11776 Mixing markup for italics and bold
11779 '''bold''''''bold''bolditalics'''''
11781 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11789 Article for special page transclusion test
11793 Special page transclusion
11796 {{Special:Prefixindex/Xyzzyx}}
11798 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11803 Special page transclusion twice (bug 5021)
11806 {{Special:Prefixindex/Xyzzyx}}
11807 {{Special:Prefixindex/Xyzzyx}}
11809 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11810 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11815 Transclusion of default MediaWiki message
11817 {{MediaWiki:Mainpage}}
11824 Transclusion of nonexistent MediaWiki message
11826 {{MediaWiki:Mainpagexxx}}
11828 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11833 Transclusion of MediaWiki message with underscore
11835 {{MediaWiki:history_short}}
11842 Transclusion of MediaWiki message with space
11844 {{MediaWiki:history short}}
11851 Invalid header with following text
11861 Section extraction test (section 0)
11881 Section extraction test (section 1)
11903 Section extraction test (section 2)
11924 Section extraction test (section 3)
11944 Section extraction test (section 4)
11968 Section extraction test (section 5)
11988 Section extraction test (section 6)
12009 Section extraction test (section 7)
12029 Section extraction test (section 8)
12049 Section extraction test (section 9)
12070 Section extraction test (section 10)
12090 Section extraction test (nonexistent section 11)
12109 Section extraction test with bogus heading (section 1)
12114 ==bogus== not a legal section
12118 ==bogus== not a legal section
12122 Section extraction test with bogus heading (section 2)
12127 ==bogus== not a legal section
12134 Section extraction test with comment after heading (section 1)
12146 Section extraction test with comment after heading (section 2)
12158 Section extraction test with bogus <nowiki> heading (section 1)
12163 ==bogus== <nowiki>not a legal section</nowiki>
12167 ==bogus== <nowiki>not a legal section</nowiki>
12171 Section extraction test with bogus <nowiki> heading (section 2)
12176 ==bogus== <nowiki>not a legal section</nowiki>
12183 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
12184 # instead of respecting commented sections
12186 Section extraction prefixed by comment (section 1)
12197 Section extraction prefixed by comment (section 2)
12208 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
12209 # instead of respecting HTML-style headings
12211 Section extraction, mixed wiki and html (section 1)
12227 Section extraction, mixed wiki and html (section 2)
12243 # Formerly testing for bug 3342
12245 Section extraction, heading surrounded by <noinclude>
12249 <noinclude>==unmarked==</noinclude>
12255 # Test behavior of bug 19910
12257 Sectiion with all-equals
12262 The line above must have a trailing space
12265 But just in case it doesn't...
12269 But just in case it doesn't...
12273 Section replacement test (section 0)
12304 Section replacement test (section 1)
12333 Section replacement test (section 2)
12363 Section replacement test (section 3)
12394 Section replacement test (section 4)
12421 Section replacement test (section 5)
12452 Section replacement test (section 6)
12482 Section replacement test (section 7)
12513 Section replacement test (section 8)
12544 Section replacement test (section 9)
12573 Section replacement test (section 10)
12603 Section replacement test with initial whitespace (bug 13728)
12607 Preformatted initial line
12611 Preformatted initial line
12618 Section extraction, heading followed by pre with 20 spaces (bug 6398)
12630 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
12643 Section extraction, <pre> around bogus header (bug 10309)
12660 Section replacement, <pre> around bogus header (bug 10309)
12662 noxml replace=2,"xxx"
12683 Handling of 
 in URLs
12687 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
12694 5 quotes, code coverage +1 line (php)
12701 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
12703 5 quotes, code coverage +1 line (parsoid)
12709 <p><i><b></b></i></p>
12713 Special:Search page linking.
12717 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
12724 title=[[Parser test]]
12729 * {{FULLPAGENAMEE}}
12731 * {{BASEPAGENAMEE}}
12735 * {{ROOTPAGENAMEE}}
12737 * {{TALKPAGENAMEE}}
12738 * {{SUBJECTPAGENAME}}
12739 * {{SUBJECTPAGENAMEE}}
12742 * {{NAMESPACENUMBER}}
12746 * {{SUBJECTSPACEE}}
12747 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
12749 <ul><li> Parser test
12750 </li><li> Parser_test
12751 </li><li> Parser test
12752 </li><li> Parser_test
12753 </li><li> Parser test
12754 </li><li> Parser_test
12755 </li><li> Parser test
12756 </li><li> Parser_test
12757 </li><li> Parser test
12758 </li><li> Parser_test
12759 </li><li> Talk:Parser test
12760 </li><li> Talk:Parser_test
12761 </li><li> Parser test
12762 </li><li> Parser_test
12770 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
12774 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
12784 image4 |300px| centre
12785 image5.svg| http://///////
12790 <ul class="gallery mw-gallery-traditional">
12791 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12792 <div class="thumb" style="height: 150px;">Image1.png</div>
12793 <div class="gallerytext">
12796 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12797 <div class="thumb" style="height: 150px;">Image2.gif</div>
12798 <div class="gallerytext">
12803 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12804 <div class="thumb" style="height: 150px;">Image3</div>
12805 <div class="gallerytext">
12808 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12809 <div class="thumb" style="height: 150px;">Image4</div>
12810 <div class="gallerytext">
12815 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12816 <div class="thumb" style="height: 150px;">Image5.svg</div>
12817 <div class="gallerytext">
12818 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12822 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12823 <div class="thumb" style="height: 150px;">* image6</div>
12824 <div class="gallerytext">
12832 Gallery (with options)
12834 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12835 File:Nonexistant.jpg|caption
12836 File:Nonexistant.jpg
12837 image:foobar.jpg|some '''caption''' [[Main Page]]
12839 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12842 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
12843 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12844 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12845 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
12846 <div class="gallerytext">
12851 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12852 <div class="thumb" style="height: 70px;">Nonexistant.jpg</div>
12853 <div class="gallerytext">
12856 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12857 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12858 <div class="gallerytext">
12859 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12863 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12864 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12865 <div class="gallerytext">
12868 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12869 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12870 <div class="gallerytext">
12880 Gallery with wikitext inside caption
12883 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12884 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12887 <ul class="gallery mw-gallery-traditional">
12888 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12889 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12890 <div class="gallerytext">
12891 <p><a href="/wiki/File:Foobar.jpg" class="image" title="desc"><img alt="inneralt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg" width="20" height="2" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/30px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/40px-Foobar.jpg 2x" /></a>
12895 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12896 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12897 <div class="gallerytext">
12898 <p>This is a test template
12907 gallery (with showfilename option)
12909 <gallery showfilename>
12910 File:Nonexistant.jpg|caption
12911 File:Nonexistant.jpg
12912 image:foobar.jpg|some '''caption''' [[Main Page]]
12916 <ul class="gallery mw-gallery-traditional">
12917 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12918 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
12919 <div class="gallerytext">
12920 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12925 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12926 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
12927 <div class="gallerytext">
12928 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12932 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12933 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12934 <div class="gallerytext">
12935 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12936 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12940 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12941 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12942 <div class="gallerytext">
12943 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12952 Gallery (with namespace-less filenames)
12955 File:Nonexistant.jpg
12961 <ul class="gallery mw-gallery-traditional">
12962 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12963 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
12964 <div class="gallerytext">
12967 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12968 <div class="thumb" style="height: 150px;">Nonexistant.jpg</div>
12969 <div class="gallerytext">
12972 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12973 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12974 <div class="gallerytext">
12977 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12978 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12979 <div class="gallerytext">
12987 HTML Hex character encoding (spells the word "JavaScript")
12989 JavaScript
12991 <p>JavaScript
12996 HTML Hex character encoding bogus encoding (bug 26437 regression check)
13000 <p>&#xsee;&#XSEE;
13005 HTML Hex character encoding mixed case
13014 __FORCETOC__ override
13026 ISBN 978-0-1234-56 789
13028 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
13033 ISBN followed by 5 spaces
13044 ISBN ISBN 1234567890
13046 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13051 Bug 22905: <abbr> followed by ISBN followed by </a>
13053 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
13055 <p><abbr>(fr)</abbr> <a href="/wiki/Special:BookSources/2753300917" class="internal mw-magiclink-isbn">ISBN 2753300917</a> <a rel="nofollow" class="external text" href="http://www.example.com">example.com</a>
13064 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
13069 Double RFC with a wiki link
13073 <p>RFC <a href="/index.php?title=RFC_1234&action=edit&redlink=1" class="new" title="RFC 1234 (page does not exist)">RFC 1234</a>
13082 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
13087 Centre-aligned image
13089 [[Image:foobar.jpg|centre]]
13091 <div class="center"><div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div></div>
13098 [[Image:foobar.jpg|none]]
13100 <div class="floatnone"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
13105 Width + Height sized image (using px) (height is ignored)
13107 [[Image:foobar.jpg|640x480px]]
13109 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
13114 Width-sized image (using px, no following whitespace)
13116 [[Image:foobar.jpg|640px]]
13118 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
13123 Width-sized image (using px, with following whitespace - test regression from r39467)
13125 [[Image:foobar.jpg|640px ]]
13127 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
13132 Width-sized image (using px, with preceding whitespace - test regression from r39467)
13134 [[Image:foobar.jpg| 640px]]
13136 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg" width="640" height="73" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/960px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/1280px-Foobar.jpg 2x" /></a>
13141 Another italics / bold test
13149 # Note the results may be incorrect, as parserTest output included this:
13150 # XML error: Mismatched tag at byte 6120:
13151 # ...<dd> </dt></dl> </dd...
13159 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
13170 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
13172 Images with the "|" character in the comment
13174 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
13176 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
13181 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
13183 <html><script>alert(1);</script></html>
13185 <p><html><script>alert(1);</script></html>
13190 HTML with raw HTML ($wgRawHtml==true)
13194 <html><script>alert(1);</script></html>
13196 <p><script>alert(1);</script>
13201 Parents of subpages, one level up
13203 subpage title=[[Subpage test/L1/L2/L3]]
13207 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">L2</a>
13213 Parents of subpages, one level up, not named
13215 subpage title=[[Subpage test/L1/L2/L3]]
13219 <p><a href="/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1" class="new" title="Subpage test/L1/L2 (page does not exist)">Subpage test/L1/L2</a>
13226 Parents of subpages, two levels up
13228 subpage title=[[Subpage test/L1/L2/L3]]
13234 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1</a>2
13235 </p><p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">L1l</a>
13240 Parents of subpages, two levels up, without trailing slash or name.
13242 subpage title=[[Subpage test/L1/L2/L3]]
13251 Parents of subpages, two levels up, with lots of extra trailing slashes.
13253 subpage title=[[Subpage test/L1/L2/L3]]
13257 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
13262 Subpage test/L1/L2/L3Sibling
13268 Transclusion of a sibling page (one level up)
13270 subpage title=[[Subpage test/L1/L2/L3]]
13279 Transclusion of a child page
13281 subpage title=[[Subpage test/L1/L2]]
13290 Non-transclusion because of too many up levels
13292 subpage title=[[Subpage test/L1/L2/L3]]
13294 {{../../../../More than parent}}
13296 <p>{{../../../../More than parent}}
13301 Definition list code coverage
13307 <dl><dt> title  </dt><dd> def
13308 </dd><dt> title </dt><dd> def
13309 </dd><dt>title</dt><dd> def
13315 Don't fall for the self-closing div
13317 <div>hello world</div/>
13319 <div>hello world</div>
13328 <p>[[:Template:Msg]]
13337 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
13341 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
13343 Always escape literal '>' in output, not just after '<'
13357 <p>This is a test template
13358 This is a test template
13370 Inclusion of !userCanEdit() content
13374 <h2><span class="mw-headline" id="header">header</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=MediaWiki:Fake&action=edit&section=T-1" title="MediaWiki:Fake">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13380 Out-of-order TOC heading levels
13389 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13391 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
13393 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
13394 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
13397 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
13399 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
13400 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
13405 <h2><span class="mw-headline" id="2">2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13406 <h6><span class="mw-headline" id="6">6</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a><span class="mw-editsection-bracket">]</span></span></h6>
13407 <h3><span class="mw-headline" id="3">3</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a><span class="mw-editsection-bracket">]</span></span></h3>
13408 <h1><span class="mw-headline" id="1">1</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: 1">edit</a><span class="mw-editsection-bracket">]</span></span></h1>
13409 <h5><span class="mw-headline" id="5">5</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: 5">edit</a><span class="mw-editsection-bracket">]</span></span></h5>
13410 <h2><span class="mw-headline" id="2_2">2</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=6" title="Edit section: 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13416 ISBN with a dummy number
13426 ISBN with space-delimited number
13430 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
13436 ISBN with multiple spaces, no number
13455 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
13456 </p><p>ISBN 12345678901
13462 ISBN with trailing year (bug 8110)
13464 ISBN 1-234-56789-0 - 2006
13466 ISBN 1 234 56789 0 - 2006
13468 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
13469 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
13477 {{anchorencode:foo bar©#%n}}
13479 <p>foo_bar.C2.A9.23.25n
13484 anchorencode trims spaces
13486 {{anchorencode: __pretty__please__}}
13493 anchorencode deals with links
13495 {{anchorencode: [[hello|world]] [[hi]]}}
13502 anchorencode deals with templates
13504 {{anchorencode: {{Foo}} }}
13511 anchorencode encodes like the TOC generator: (bug 18431)
13513 === _ +:.3A%3A&&]] ===
13514 {{anchorencode: _ +:.3A%3A&&]] }}
13517 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
13518 <p>.2B:.3A.253A.26.26.5D.5D
13522 # Expected output in the following test is not necessarily expected (there
13523 # should probably be <p> tags inside the <blockquote> in the output) -- it's
13524 # only testing for well-formedness.
13526 Bug 6200: blockquotes and paragraph formatting
13546 Bug 8293: Use of center tag ruins paragraph formatting
13567 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
13571 <span><s>x</span></s>
13573 <p><span><s>x</span></s></span>
13578 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
13582 <span><s>x</span></s>
13584 <p><span><s>x</s></span><s></s>
13589 ### Language variants related tests
13592 Self-link in language variants
13594 title=[[Dunav]] language=sr
13596 Both [[Dunav]] and [[Дунав]] are names for this river.
13598 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
13609 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
13611 title=[[Duna]] language=sr
13613 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
13615 <p><a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Дуна</a> is not a self-link while <strong class="selflink">Duna</strong> and <strong class="selflink">Dуна</strong> are still self-links.
13620 Link to pages in language variants
13624 Main Page can be written as [[Маин Паге]]
13626 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
13632 Multiple links to pages in language variants
13636 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
13638 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a> can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a> same as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>.
13644 Simple template in language variants
13650 <p>This is a test template
13656 Template with explicit namespace in language variants
13662 <p>This is a test template
13668 Basic test for template parameter in language variants
13672 {{парамтест|param=foo}}
13674 <p>This is a test template with parameter foo
13680 Simple category in language variants
13684 [[Category:МедиаWики Усер'с Гуиде]]
13686 <a href="/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%98%D0%B0:MediaWiki_User%27s_Guide" title="Категорија:MediaWiki User's Guide">MediaWiki User's Guide</a>
13703 Don't convert blue categorylinks to another variant (bug 33210)
13707 [[A]][[Category:分类]]
13709 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
13714 Stripping -{}- tags (language variants)
13718 Latin proverb: -{Ne nuntium necare}-
13720 <p>Latin proverb: Ne nuntium necare
13726 Prevent conversion with -{}- tags (language variants)
13728 language=sr variant=sr-ec
13730 Latinski: -{Ne nuntium necare}-
13732 <p>Латински: Ne nuntium necare
13738 Prevent conversion of text with -{}- tags (language variants)
13740 language=sr variant=sr-ec
13742 Latinski: -{Ne nuntium necare}-
13744 <p>Латински: Ne nuntium necare
13750 Prevent conversion of links with -{}- tags (language variants)
13752 language=sr variant=sr-ec
13756 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
13762 -{}- tags within headlines (within html for parserConvert())
13764 language=sr variant=sr-ec
13768 <h2><span class="mw-headline" id="-.7BNaslov.7D-">Naslov</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Уредите одељак „Naslov“">уреди</a><span class="mw-editsection-bracket">]</span></span></h2>
13774 Explicit definition of language variant alternatives
13776 language=zh variant=zh-tw
13778 -{zh:China;zh-tw:Taiwan}-, not China
13780 <p>Taiwan, not China
13786 Conversion around HTML tags
13788 language=sr variant=sr-ec
13790 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13791 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13794 <span title="ЛаCтин">ски</span>
13800 Explicit session-wise language variant mapping (A flag and - flag)
13802 language=zh variant=zh-tw
13804 Taiwan is not China.
13805 But -{A|zh:China;zh-tw:Taiwan}- is China,
13806 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13807 and -{China}- is China.
13809 <p>Taiwan is not China.
13810 But Taiwan is Taiwan,
13811 (This should be stripped!)
13812 and China is China.
13817 Explicit session-wise language variant mapping (H flag for hide)
13819 language=zh variant=zh-tw
13821 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13824 <p>(This should be stripped!)
13830 Adding explicit conversion rule for title (T flag)
13832 language=zh variant=zh-tw showtitle
13834 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13837 <p>Should be stripped!
13842 Testing that changing the language variant here in the tests actually works
13844 language=zh variant=zh showtitle
13846 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13849 <p>Should be stripped!
13854 Recursive conversion of alt and title attrs shouldn't clear converter state
13856 language=zh variant=zh-cn showtitle
13858 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13859 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13863 Should be stripped<span title="Exclamation">!</span>
13868 Bug 24072: more test on conversion rule for title
13870 language=zh variant=zh-tw showtitle
13872 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13873 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13876 <p>This should be stripped!
13877 This won't take interferes with the title rule.
13882 Partly disable title conversion if variant == main language code
13884 language=zh variant=zh title=[[ZH]] showtitle
13886 -{T|zh-cn:CN;zh-tw:TW}-
13894 Partly disable title conversion if variant == main language code, more
13896 language=zh variant=zh title=[[ZH]] showtitle
13906 Raw output of variant escape tags (R flag)
13908 language=zh variant=zh-tw
13910 Raw: -{R|zh:China;zh-tw:Taiwan}-
13912 <p>Raw: zh:China;zh-tw:Taiwan
13917 Nested using of manual convert syntax
13919 language=zh variant=zh-hk
13921 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13923 <p>Nested: Hello Hong Kong!
13928 Proper conversion of text in external links
13930 language=sr variant=sr-ec
13932 http://www.google.com
13933 gopher://www.google.com
13934 [http://www.google.com http://www.google.com]
13935 [gopher://www.google.com gopher://www.google.com]
13936 [https://www.google.com irc://www.google.com]
13937 [ftp://www.google.com www.google.com/ftp://dir]
13938 [//www.google.com www.google.com]
13940 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13941 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13942 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13943 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13944 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13945 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13946 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13951 Do not convert roman numbers to language variants
13953 language=sr variant=sr-ec
13957 <p>Фридрих IV је цар.
13962 Unclosed language converter markup "-{"
13973 Don't convert raw rule "-{R|=>}-" to "=>"
13984 Bug 529: Uncovered bullet
13994 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13995 # Templates in Wikipedia rely on this behavior, as tidy has always been
13996 # enabled there. These tests are normally run *without* tidy, so specify the
13997 # full output here.
13998 # To test realistic parsing behavior, apply a tidy-like transformation to both
13999 # the expected output and your parser's output.
14001 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
14003 ******* Foo {{bullet}}
14005 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
14018 Bug 529: Uncovered table already at line-start
14041 Bug 529: Uncovered bullet in parser function result
14043 * Foo {{lc:{{bullet}} }}
14052 Bug 5678: Double-parsed template argument
14054 {{lc:{{{1}}}|hello}}
14061 Bug 5678: Double-parsed template invocation
14063 {{lc:{{paramtest {{!}} param = hello }} }}
14065 <p>{{paramtest | param = hello }}
14070 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
14073 title=[[Main Page]]
14075 {{PRVNÍVELKÉ:ěščř}}
14076 {{prvnívelké:ěščř}}
14096 Morwen/13: Unclosed link followed by heading
14103 <h2><span class="mw-headline" id="heading">heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14108 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
14115 <h1><span class="mw-headline" id="heading">heading</span></h1>
14120 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
14127 <h2><span class="mw-headline" id="heading">heading</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: heading">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14142 Paragraphs inside divs (no extra line breaks)
14154 Paragraphs inside divs (extra line break on open)
14169 Paragraphs inside divs (extra line break on close)
14184 Paragraphs inside divs (extra line break on open and close)
14201 Nesting tags, paragraphs on lines which begin with <div>
14205 <div></div><strong>A
14214 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
14216 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
14220 <blockquote>Line one
14222 Line two</blockquote>
14224 <blockquote>Line one
14225 Line two</blockquote>
14230 Bug 6200: paragraphs inside blockquotes (extra line break on open)
14237 Line two</blockquote>
14242 Line two</blockquote>
14247 Bug 6200: paragraphs inside blockquotes (extra line break on close)
14251 <blockquote>Line one
14256 <blockquote>Line one
14264 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
14283 Paragraphs inside blockquotes/divs (no extra line breaks)
14285 <blockquote><div>Line one
14287 Line two</div></blockquote>
14289 <blockquote><div>Line one
14290 Line two</div></blockquote>
14295 Paragraphs inside blockquotes/divs (extra line break on open)
14300 Line two</div></blockquote>
14305 Line two</div></blockquote>
14310 Paragraphs inside blockquotes/divs (extra line break on close)
14312 <blockquote><div>Line one
14315 </div></blockquote>
14317 <blockquote><div>Line one
14320 </div></blockquote>
14325 Paragraphs inside blockquotes/divs (extra line break on open and close)
14331 </div></blockquote>
14337 </div></blockquote>
14342 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
14344 wgLinkHolderBatchSize=0
14350 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
14351 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
14352 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
14357 Free external link invading image caption
14359 [[Image:Foobar.jpg|thumb|http://x|hello]]
14361 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>hello</div></div></div>
14366 Bug 15196: localised external link numbers
14370 [http://en.wikipedia.org/]
14372 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
14377 Multibyte character in padleft
14379 {{padleft:-Hello|7|Æ}}
14386 Multibyte character in padright
14388 {{padright:Hello-|7|Æ}}
14395 formatdate parser function
14397 {{#formatdate:2009-03-24}}
14399 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
14404 formatdate parser function, with default format
14406 {{#formatdate:2009-03-24|mdy}}
14408 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
14413 Spacing of numbers in formatted dates
14415 {{#formatdate:January 15}}
14417 <p><span class="mw-formatted-date" title="01-15">January 15</span>
14422 formatdate parser function, with default format and on a page of which the content language is always English and different from the wiki content language
14424 language=nl title=[[MediaWiki:Common.css]]
14426 {{#formatdate:2009-03-24|dmy}}
14428 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
14441 Edit comment with link
14445 I like the [[Main Page]] a lot
14447 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
14451 Edit comment with link and link text
14455 I like the [[Main Page|best pages]] a lot
14457 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14461 Edit comment with link and link text with suffix
14465 I like the [[Main Page|best page]]s a lot
14467 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
14471 Edit comment with section link (non-local, eg in history list)
14473 comment title=[[Main Page]]
14475 /* External links */ removed bogus entries
14477 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14481 Edit comment with section link and text before it (non-local, eg in history list)
14483 comment title=[[Main Page]]
14485 pre-comment text /* External links */ removed bogus entries
14487 pre-comment text <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14491 Edit comment with section link (local, eg in diff view)
14493 comment local title=[[Main Page]]
14495 /* External links */ removed bogus entries
14497 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
14501 Edit comment with subpage link (bug 14080)
14505 title=[[Subpage test]]
14507 Poked at a [[/subpage]] here...
14509 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
14513 Edit comment with subpage link and link text (bug 14080)
14517 title=[[Subpage test]]
14519 Poked at a [[/subpage|neat little page]] here...
14521 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
14525 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
14528 title=[[Subpage test]]
14530 Poked at a [[/subpage]] here...
14532 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
14536 Edit comment with bare anchor link (local, as on diff)
14540 title=[[Main Page]]
14544 <a href="#section">#section</a>
14548 Edit comment with bare anchor link (non-local, as on history)
14551 title=[[Main Page]]
14555 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
14559 Anchor starting with underscore
14563 <p><a href="#_ref">One</a>
14568 Id starting with underscore
14570 <div id="_ref"></div>
14572 <div id="_ref"></div>
14577 Space normalisation on autocomment (bug 22784)
14580 title=[[Main Page]]
14582 /* __hello__world__ */
14584 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
14588 percent-encoding and + signs in comments (Bug 26410)
14592 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
14594 <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">ABC3D% ++</a> <a href="/index.php?title=ABC3D%25_%2B%2B&action=edit&redlink=1" class="new" title="ABC3D% ++ (page does not exist)">+%20</a>
14598 Bad images - basic functionality
14607 Bad images - bug 16039: text after bad image disappears
14621 Verify that displaytitle works (bug #22501) no displaytitle
14625 wgAllowDisplayTitle=true
14626 wgRestrictDisplayTitle=false
14628 this is not the the title
14631 <p>this is not the the title
14636 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
14641 wgAllowDisplayTitle=true
14642 wgRestrictDisplayTitle=false
14644 this is not the the title
14645 {{DISPLAYTITLE:whatever}}
14648 <p>this is not the the title
14653 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
14658 wgAllowDisplayTitle=true
14659 wgRestrictDisplayTitle=true
14661 this is not the the title
14662 {{DISPLAYTITLE:whatever}}
14665 <p>this is not the the title
14670 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
14675 wgAllowDisplayTitle=true
14676 wgRestrictDisplayTitle=true
14678 this is not the the title
14679 {{DISPLAYTITLE:screen}}
14682 <p>this is not the the title
14687 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
14692 wgAllowDisplayTitle=false
14694 this is not the the title
14695 {{DISPLAYTITLE:screen}}
14698 <p>this is not the the title
14699 <a href="/index.php?title=Template:DISPLAYTITLE:screen&action=edit&redlink=1" class="new" title="Template:DISPLAYTITLE:screen (page does not exist)">Template:DISPLAYTITLE:screen</a>
14704 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
14709 wgAllowDisplayTitle=false
14711 this is not the the title
14714 <p>this is not the the title
14719 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
14724 wgAllowDisplayTitle=true
14725 wgRestrictDisplayTitle=true
14727 this is not the the title
14728 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
14730 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
14731 <p>this is not the the title
14736 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
14741 wgAllowDisplayTitle=true
14742 wgRestrictDisplayTitle=true
14744 this is not the the title
14745 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
14747 <span style="color: red;">s</span>creen
14748 <p>this is not the the title
14753 preload: check <noinclude> and <includeonly>
14757 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
14763 preload: check <onlyinclude>
14767 Goodbye <onlyinclude>Hello world</onlyinclude>
14773 preload: can pass tags through if we want to
14777 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
14779 <includeonly>Hello world</includeonly>
14783 preload: check that it doesn't try to do tricks
14787 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14789 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14793 Play a bit with r67090 and bug 3158
14797 <div style="width:50% !important"> </div>
14798 <div style="width:50% !important"> </div>
14799 <div style="width:50% !important"> </div>
14800 <div style="border : solid;"> </div>
14802 <div style="width:50% !important"> </div>
14803 <div style="width:50% !important"> </div>
14804 <div style="width:50% !important"> </div>
14805 <div style="border : solid;"> </div>
14810 HTML5 data attributes
14812 <span data-foo="bar">Baz</span>
14813 <p data-abc-def_hij="">Quuz</p>
14815 <p><span data-foo="bar">Baz</span>
14817 <p data-abc-def_hij="">Quuz</p>
14822 percent-encoding and + signs in internal links (Bug 26410)
14824 [[User:+%]] [[Page+title%]]
14825 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14826 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14827 [[%33%45]] [[%33%45+]]
14829 <p><a href="/index.php?title=User:%2B%25&action=edit&redlink=1" class="new" title="User:+% (page does not exist)">User:+%</a> <a href="/index.php?title=Page%2Btitle%25&action=edit&redlink=1" class="new" title="Page+title% (page does not exist)">Page+title%</a>
14830 <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%20</a> <a href="/index.php?title=%25%2B&action=edit&redlink=1" class="new" title="%+ (page does not exist)">%+ </a> <a href="/index.php?title=%25%2Br&action=edit&redlink=1" class="new" title="%+r (page does not exist)">%+r</a>
14831 <a href="/index.php?title=%25&action=edit&redlink=1" class="new" title="% (page does not exist)">%</a> <a href="/index.php?title=%2B&action=edit&redlink=1" class="new" title="+ (page does not exist)">+</a> <a href="/index.php?title=Special:Upload&wpDestFile=%25%2Babc9" class="new" title="File:%+abc9">bar</a>
14832 <a href="/index.php?title=3E&action=edit&redlink=1" class="new" title="3E (page does not exist)">3E</a> <a href="/index.php?title=3E%2B&action=edit&redlink=1" class="new" title="3E+ (page does not exist)">3E+</a>
14837 Special characters in embedded file links (bug 27679)
14839 [[File:Contains & ampersand.jpg]]
14840 [[File:Does not exist.jpg|Title with & ampersand]]
14842 <p><a href="/index.php?title=Special:Upload&wpDestFile=Contains_%26_ampersand.jpg" class="new" title="File:Contains & ampersand.jpg">File:Contains & ampersand.jpg</a>
14843 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14849 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14851 Text's been normalized?
14853 <p>Text's been normalized?
14858 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14860 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14862 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14867 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14869 [http://www.example.org/ ideograms]
14871 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14876 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14878 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14880 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14904 Bug 31098 Template which includes system messages which includes the template
14908 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14909 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14914 Bug31490 Turkish: ucfirst 'blah'
14925 Bug31490 Turkish: ucfirst 'ix'
14936 Bug31490 Turkish: lcfirst 'BLAH'
14947 Bug31490 Turkish: ucfırst (with a dotless i)
14953 <p><a href="/index.php?title=%C5%9Eablon:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Şablon:Ucfırst:blah (sayfa mevcut değil)">Şablon:Ucfırst:blah</a>
14958 Bug31490 ucfırst (with a dotless i) with English language
14964 <p><a href="/index.php?title=Template:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Template:Ucfırst:blah (page does not exist)">Template:Ucfırst:blah</a>
14969 Bug 26375: TOC with italics
14971 title=[[Main Page]]
14974 == ''Lost'' episodes ==
14976 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14978 <li class="toclevel-1 tocsection-1"><a href="#Lost_episodes"><span class="tocnumber">1</span> <span class="toctext"><i>Lost</i> episodes</span></a></li>
14981 <h2><span class="mw-headline" id="Lost_episodes"><i>Lost</i> episodes</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Lost episodes">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14986 Bug 26375: TOC with bold
14988 title=[[Main Page]]
14991 == '''should be bold''' then normal text ==
14993 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14995 <li class="toclevel-1 tocsection-1"><a href="#should_be_bold_then_normal_text"><span class="tocnumber">1</span> <span class="toctext"><b>should be bold</b> then normal text</span></a></li>
14998 <h2><span class="mw-headline" id="should_be_bold_then_normal_text"><b>should be bold</b> then normal text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: should be bold then normal text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15003 Bug 33845: Headings become cursive in TOC when they contain an image
15005 title=[[Main Page]]
15008 == Image [[Image:foobar.jpg]] ==
15010 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15012 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
15015 <h2><span class="mw-headline" id="Image">Image <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Image">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15020 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
15022 title=[[Main Page]]
15025 == <blockquote>Quote</blockquote> ==
15027 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15029 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
15032 <h2><span class="mw-headline" id="Quote"><blockquote>Quote</blockquote></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Quote">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15037 Unclosed tags in TOC
15039 title=[[Main Page]]
15043 <small>Hanc marginis exiguitas non caperet.</small>
15046 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15048 <li class="toclevel-1 tocsection-1"><a href="#Proof:_2_.3C_3"><span class="tocnumber">1</span> <span class="toctext">Proof: 2 < 3</span></a></li>
15051 <h2><span class="mw-headline" id="Proof:_2_.3C_3">Proof: 2 < 3</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Proof: 2 < 3">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15052 <p><small>Hanc marginis exiguitas non caperet.</small>
15058 Multiple tags in TOC
15061 == <i>Foo</i> <b>Bar</b> ==
15063 == <i>Foo</i> <blockquote>Bar</blockquote> ==
15065 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15067 <li class="toclevel-1 tocsection-1"><a href="#Foo_Bar"><span class="tocnumber">1</span> <span class="toctext"><i>Foo</i> <b>Bar</b></span></a></li>
15068 <li class="toclevel-1 tocsection-2"><a href="#Foo_Bar_2"><span class="tocnumber">2</span> <span class="toctext"><i>Foo</i> Bar</span></a></li>
15071 <h2><span class="mw-headline" id="Foo_Bar"><i>Foo</i> <b>Bar</b></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Foo Bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15072 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i> <blockquote>Bar</blockquote></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Foo Bar">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15077 Tags with parameters in TOC
15080 == <sup class="in-h2">Hello</sup> ==
15082 == <sup class="a > b">Evilbye</sup> ==
15084 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15086 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
15087 <li class="toclevel-1 tocsection-2"><a href="#b.22.3EEvilbye"><span class="tocnumber">2</span> <span class="toctext"><sup> b">Evilbye</sup></span></a></li>
15090 <h2><span class="mw-headline" id="Hello"><sup class="in-h2">Hello</sup></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Hello">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15091 <h2><span class="mw-headline" id="b.22.3EEvilbye"><sup> b">Evilbye</sup></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: b">Evilbye">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15096 span tags with directionality in TOC
15099 == <span dir="ltr">C++</span> ==
15101 == <span dir="rtl">זבנג!</span> ==
15103 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
15105 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
15107 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
15109 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15111 <li class="toclevel-1 tocsection-1"><a href="#C.2B.2B"><span class="tocnumber">1</span> <span class="toctext"><span dir="ltr">C++</span></span></a></li>
15112 <li class="toclevel-1 tocsection-2"><a href="#.D7.96.D7.91.D7.A0.D7.92.21"><span class="tocnumber">2</span> <span class="toctext"><span dir="rtl">זבנג!</span></span></a></li>
15113 <li class="toclevel-1 tocsection-3"><a href="#The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">3</span> <span class="toctext"><span>The attributes on these span tags must be deleted from the TOC</span></span></a></li>
15114 <li class="toclevel-1 tocsection-4"><a href="#All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">4</span> <span class="toctext"><span>All attributes on these span tags must be deleted from the TOC</span></span></a></li>
15115 <li class="toclevel-1 tocsection-5"><a href="#Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span class="tocnumber">5</span> <span class="toctext"><span dir="ltr">Attributes after dir on these span tags must be deleted from the TOC</span></span></a></li>
15118 <h2><span class="mw-headline" id="C.2B.2B"><span dir="ltr">C++</span></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: C++">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15119 <h2><span class="mw-headline" id=".D7.96.D7.91.D7.A0.D7.92.21"><span dir="rtl">זבנג!</span></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=2" title="Edit section: זבנג!">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15120 <h2><span class="mw-headline" id="The_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=3" title="Edit section: The attributes on these span tags must be deleted from the TOC">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15121 <h2><span class="mw-headline" id="All_attributes_on_these_span_tags_must_be_deleted_from_the_TOC"><span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=4" title="Edit section: All attributes on these span tags must be deleted from the TOC">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15122 <h2><span class="mw-headline" id="Attributes_after_dir_on_these_span_tags_must_be_deleted_from_the_TOC"><span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=5" title="Edit section: Attributes after dir on these span tags must be deleted from the TOC">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15129 == {{int:headline_sample}} ==
15133 Bug 32057: Title needed when expanding <h> nodes.
15135 title=[[Main Page]]
15139 <h2><span class="mw-headline" id="Headline_text">Headline text</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Main_Page&action=edit&section=1" title="Edit section: Headline text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15144 Strip marker in urlencode
15146 {{urlencode:x<nowiki/>y}}
15147 {{urlencode:x<nowiki/>y|wiki}}
15148 {{urlencode:x<nowiki/>y|path}}
15175 Strip marker in formatNum
15177 {{formatnum:1<nowiki/>2}}
15178 {{formatnum:1<nowiki/>2|R}}
15186 Check noCommafy in formatNum
15190 {{formatnum:123456.78}}
15191 {{formatnum:123456.78|NOSEP}}
15199 Strip marker in grammar
15203 {{grammar:elative|foo<nowiki/>bar}}
15210 Strip marker in padleft
15212 {{padleft:|2|x<nowiki/>y}}
15219 Strip marker in padright
15221 {{padright:|2|x<nowiki/>y}}
15228 Strip marker in anchorencode
15230 {{anchorencode:x<nowiki/>y}}
15237 nowiki inside link inside heading (bug 18295)
15239 ==[[foo|x<nowiki>y</nowiki>z]]==
15241 <h2><span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
15246 new support for bdi element (bug 31817)
15248 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15250 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
15255 Ignore pipe between table row attributes
15259 |- id=foo | style='color: red'
15267 <tr id="foo" style="color: red">
15274 Gallery override link with WikiLink (bug 34852)
15277 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
15280 <ul class="gallery mw-gallery-traditional">
15281 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15282 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15283 <div class="gallerytext">
15293 Gallery override link with absolute external link (bug 34852)
15296 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
15299 <ul class="gallery mw-gallery-traditional">
15300 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15301 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15302 <div class="gallerytext">
15312 Gallery override link with malicious javascript (bug 34852)
15315 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
15318 <ul class="gallery mw-gallery-traditional">
15319 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15320 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/%22_onclick%3D%22alert(%27malicious_javascript_code!%27);"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15321 <div class="gallerytext">
15331 Gallery with invalid title as link (bug 43964)
15334 File:foobar.jpg|link=<
15337 <ul class="gallery mw-gallery-traditional">
15338 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
15339 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
15340 <div class="gallerytext">
15348 Language parser function
15357 Padleft and padright as substr
15359 {{padleft:|3|abcde}}
15360 {{padright:|3|abcde}}
15368 Special parser function
15370 {{#special:RandomPage}}
15371 {{#special:BaDtItLe}}
15372 {{#special:Foobar}}
15381 Bug 34939 - Case insensitive link parsing ([HttP://])
15383 [HttP://MediaWiki.Org/]
15385 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
15390 Bug 34939 - Case insensitive link parsing ([HttP:// title])
15392 [HttP://MediaWiki.Org/ MediaWiki]
15394 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
15399 Bug 34939 - Case insensitive link parsing (HttP://)
15401 HttP://MediaWiki.Org/
15403 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
15409 ### Parsoids-specific tests
15410 ### Parsoid-PHP parser incompatibilities
15413 1. SOL-sensitive wikitext tokens as template-args
15415 parsoid=wt2html,wt2wt
15421 <span about="#mwt1" typeof="mw:Transclusion">
15422 </span><ul about="#mwt1"><li>a</li></ul>
15423 <span about="#mwt2" typeof="mw:Transclusion">
15424 </span><ol about="#mwt2"><li>a</li></ol>
15425 <span about="#mwt3" typeof="mw:Transclusion">
15426 </span><dl about="#mwt3"><dd>a</dd></dl>
15429 #### ----------------------------------------------------------------
15430 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
15431 #### tags. Parsoid's output for these tags differs from that of the
15433 #### ----------------------------------------------------------------
15436 Ref: 1. ref-location should be replaced with an index span
15441 B <ref name="x">foo</ref>
15444 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
15445 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-2">[2]</a></span>
15446 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"y"}}' id="cite_ref-y-3-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-y-3">[3]</a></span></p>
15450 Ref: 2. ref-tags with identical names should all get the same index
15454 A <ref name="x">foo</ref>
15457 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
15458 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
15462 Ref: 3. spaces in ref-names should be ignored
15466 A <ref name="x">foo</ref>
15467 B <ref name=" x " />
15470 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
15471 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
15472 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-2" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
15476 Ref: 4. 'constructor' should be accepted as a valid ref-name
15477 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
15481 A <ref name="constructor">foo</ref>
15483 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"constructor"}}' id="cite_ref-constructor-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-constructor-1">[1]</a></span></p>
15487 Ref: 5. body should accept generic wikitext
15492 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
15497 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid=\"{&quot;dsr&quot;:[19,40,3,3]}\"><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" data-parsoid=\"{&quot;a&quot;:{&quot;href&quot;:&quot;./Bolded_link&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;bolded link&quot;},&quot;stx&quot;:&quot;simple&quot;,&quot;dsr&quot;:[22,37,2,2]}\">bolded link</a></b> and this is a <span about=\"#mwt3\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;transclusion&quot;}}}\" data-parsoid=\"{&quot;src&quot;:&quot;{{echo|transclusion}}&quot;,&quot;dsr&quot;:[55,76,null,null]}\">transclusion</span>\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15499 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15500 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> This is a <b><a rel="mw:WikiLink" href="./Bolded_link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}}}'>transclusion</span>
15505 Ref: 6. indent-pres should not be output in ref-body
15517 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n bar\n baz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15519 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15520 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15527 Ref: 6. No p-wrapping in ref-body
15546 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n\nbar\n\n\nbaz\n\n\n\nbooz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15548 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15549 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
15563 Ref: 8. transclusion wikitext has lower precedence
15567 A <ref> foo {{echo|</ref> B C}}
15571 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid=\"{&quot;src&quot;:&quot;{{&quot;,&quot;dsr&quot;:[12,14,2,null]}\">{{</span>echo|"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
15573 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15574 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <span typeof="mw:Nowiki">{{</span>echo|</li></ol>
15578 Ref: 9. unclosed comments should not leak out of ref-body
15582 A <ref> foo <!--</ref> B C
15586 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <!---->"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
15588 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15589 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
15593 Ref: 10. Unclosed HTML tags should not leak out of ref-body
15597 A <ref> <b> foo </ref> B C
15601 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"<b data-parsoid=\"{&quot;stx&quot;:&quot;html&quot;,&quot;autoInsertedEnd&quot;:true,&quot;dsr&quot;:[8,16,3,0]}\"> foo </b>"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
15603 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
15604 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b> foo </b></li></ol>
15608 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
15615 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B
15616 C <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> D</p>
15620 Ref: 12. ref-tags act as trailing newline migration barrier
15624 <!--the newline at the end of this line moves out of the p-tag-->a
15626 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
15631 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
15634 <p>b<!--the newline at the end of this line stays inside the p-tag--> <span about="#mwt1" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
15635 <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
15642 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
15650 <p><span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> A
15651 <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar\n"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> B</p>
15655 Ref: 14. A nested ref-tag should be emitted as plain text
15659 <ref>foo <ref>bar</ref> baz</ref>
15663 <p><span about="#mwt1" class="reference" data-mw="{"name":"ref","body":{"html":"foo &lt;ref&gt;bar&lt;/ref&gt; baz"},"attrs":{}}" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15665 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
15666 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <ref>bar</ref> baz</li></ol>
15670 Ref: 15. ref-tags with identical names should get identical indexes
15674 A1 <ref name="a">foo</ref> A2 <ref name="a" />
15675 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
15679 <p>A1 <span about="#mwt3" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span> A2 <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
15680 B1 <span about="#mwt7" class="reference" data-mw='{"name":"ref","attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span> B2 <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
15682 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-a-1-0">1.0</a> <a href="#cite_ref-a-1-1">1.1</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy">↑ <a href="#cite_ref-b-2-0">2.0</a> <a href="#cite_ref-b-2-1">2.1</a></span> bar</li></ol>
15686 References: 1. references tag without any refs should be handled properly
15692 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
15696 References: 2. references tag with group only outputs references from that group
15700 A <ref group="a">foo</ref>
15701 B <ref group="b">bar</ref>
15703 <references group='a' />
15705 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
15706 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[b 1]</a></span></p>
15708 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
15712 References: 3. ref list should be cleared after processing references
15724 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15726 <ol about="#mwt4" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
15728 <p>B <span about="#mwt6" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
15730 <ol about="#mwt8" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bar</li></ol>
15734 References: 4. only referenced group should be cleared after processing references
15738 A <ref group="a">afoo</ref>
15741 <references group="a"/>
15747 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"afoo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
15748 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bfoo</ref>","dsr":[30,45,5,6]}'><a href="#cite_note-1">[1]</a></span></p>
15750 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> afoo</li></ol>
15752 <p>C <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
15754 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bfoo</li><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> cfoo</li></ol>
15758 References: 5. ref tags in references should be processed while ignoring all other content
15763 B <ref name="b">bar</ref>
15766 <ref name="a">foo</ref>
15767 This should just get lost.
15770 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
15771 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
15773 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost.","html":"<span about=\"#mwt8\" class=\"reference\" data-mw=\"{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;a&quot;}}\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-a-1\">[1]</a></span>"},"attrs":{}}'><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy"><a href="#cite_ref-a-1-0">↑</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> bar</li></ol>
15777 References: 6. <references /> from a transclusion
15781 {{echo|<references />}}
15783 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15787 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
15791 A <ref>foo bar for a</ref>
15797 <ref name="b">foo</ref>
15800 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo bar for a"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
15801 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
15803 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo bar for a</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> </li></ol>
15805 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"b\">foo</ref>","html":"\n<span about=\"#mwt10\" class=\"reference\" data-mw=\"{&quot;name&quot;:&quot;ref&quot;,&quot;body&quot;:{&quot;html&quot;:&quot;foo&quot;},&quot;attrs&quot;:{&quot;name&quot;:&quot;b&quot;}}\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"><a href=\"#cite_note-b-1\">[1]</a></span>\n"},"attrs":{}}'><li about="#cite_note-b-1" id="cite_note-b-1"><span rel="mw:referencedBy">↑</span> foo</li></ol>
15809 #### ----------------------------------------------------------------
15810 #### The following section of tests are primarily to test
15811 #### wikitext escaping capabilities of Parsoid. Given that
15812 #### escaping can be done any number of ways, the wikitext (input)
15813 #### is always adjusted to reflect how Parsoid adds nowiki
15816 #### We are marking several tests as parsoid-only since the
15817 #### HTML in the result section is different from what the
15818 #### PHP parser generates for it.
15819 #### ----------------------------------------------------------------
15822 #### --------------- Headings ---------------
15824 #### 1. Nested inside html <h1>=foo=</h1>
15825 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15826 #### 3. Nested inside html with wikitext split by html tags
15827 #### 4. No escape needed
15828 #### 5. Empty headings <h1></h1>
15829 #### 6. Heading chars in SOL context
15830 #### ----------------------------------------
15832 Headings: 0. Unnested
15836 <nowiki>=foo=</nowiki>
15838 <nowiki> =foo= </nowiki>
15840 <nowiki>=foo=</nowiki>
15842 =foo''a''<nowiki>=</nowiki>
15844 <p><span typeof="mw:Nowiki">=foo=</span></p>
15846 <p><span typeof="mw:Nowiki"> =foo= </span>
15848 <span typeof="mw:Nowiki">=foo=</span></p>
15850 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15854 Headings: 1. Nested inside html
15858 =<nowiki>=foo=</nowiki>=
15860 ==<nowiki>=foo=</nowiki>==
15862 ===<nowiki>=foo=</nowiki>===
15864 ====<nowiki>=foo=</nowiki>====
15866 =====<nowiki>=foo=</nowiki>=====
15868 ======<nowiki>=foo=</nowiki>======
15870 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15871 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15872 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15873 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15874 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15875 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15879 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15884 <nowiki>*</nowiki>bar
15890 <nowiki>=bar=</nowiki>
15898 Headings: 3. Nested inside html with wikitext split by html tags
15902 =='''bold'''<nowiki>foo=</nowiki>=
15904 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15908 Headings: 4a. No escaping needed (testing just h1 and h2)
15926 =<nowiki>=</nowiki>=
15934 <h1><i>=</i>foo=</h1>
15935 <h1><span typeof="mw:Nowiki">=</span></h1>
15939 Headings: 4b. No escaping needed (inside p-tags)
15954 Headings: 5. Empty headings
15966 =====<nowiki/>=====
15968 ======<nowiki/>======
15979 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15983 <nowiki>=a=</nowiki>
15985 <nowiki>=a=</nowiki>
15987 <nowiki>=a=</nowiki>
15989 <nowiki>=a=</nowiki>
15998 Headings: 6b. Heading chars in SOL context (with trailing newlines)
16026 Headings: 6c. Heading chars in SOL context (leading newline break)
16031 <nowiki>=b=</nowiki>
16038 Headings: 6d. Heading chars in SOL context (with interspersed comments)
16042 <!--c0--><nowiki>=a=</nowiki>
16044 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
16046 <p><!--c0-->=a=</p>
16047 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
16051 Headings: 6d. Heading chars in SOL context (No escaping needed)
16060 #### --------------- Lists ---------------
16061 #### 0. Outside nests (*foo, etc.)
16062 #### 1. Nested inside html <ul><li>*foo</li></ul>
16063 #### 2. Inside definition lists
16064 #### 3. Only bullets at start should be escaped
16065 #### 4. No escapes needed
16066 #### 5. No unnecessary escapes
16067 #### 6. Escape bullets in SOL position
16068 #### 7. Escape bullets in a multi-line context
16069 #### ----------------------------------------
16072 Lists: 0. Outside nests
16074 <nowiki>*</nowiki>foo
16076 <nowiki>#</nowiki>foo
16084 Lists: 1. Nested inside html
16086 *<nowiki>*foo</nowiki>
16088 *<nowiki>#foo</nowiki>
16090 *<nowiki>:foo</nowiki>
16092 *<nowiki>;foo</nowiki>
16094 #<nowiki>*foo</nowiki>
16096 #<nowiki>#foo</nowiki>
16098 #<nowiki>:foo</nowiki>
16100 #<nowiki>;foo</nowiki>
16122 Lists: 2. Inside definition lists
16124 ;<nowiki>;foo</nowiki>
16126 ;<nowiki>:foo</nowiki>
16128 ;<nowiki>:foo</nowiki>
16131 :<nowiki>:foo</nowiki>
16146 Lists: 3. Only bullets at start of text should be escaped
16148 *<nowiki>*foo*bar</nowiki>
16150 *<nowiki>*foo</nowiki>''it''*bar
16154 <ul><li>*foo<i>it</i>*bar
16160 Lists: 4. No escapes needed
16172 <ul><li><i>foo</i>*bar
16174 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
16179 Lists: 5. No unnecessary escapes
16181 * bar <span><nowiki>[[foo]]</nowiki></span>
16183 *=bar <span><nowiki>[[foo]]</nowiki></span>
16185 *[[bar <span><nowiki>[[foo]]</nowiki></span>
16187 *]]bar <span><nowiki>[[foo]]</nowiki></span>
16189 *=bar <span>foo]]</span>=
16193 <ul><li> bar <span>[[foo]]</span>
16195 <ul><li>=bar <span>[[foo]]</span>
16197 <ul><li>[[bar <span>[[foo]]</span>
16199 <ul><li>]]bar <span>[[foo]]</span>
16201 <ul><li>=bar <span>foo]]</span>=
16203 <ul><li> <s></s>: a
16209 Lists: 6. Escape bullets in SOL position
16213 <!--cmt--><nowiki>*foo</nowiki>
16215 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
16219 Lists: 7. Escape bullets in a multi-line context
16222 <nowiki>*</nowiki>b
16229 #### --------------- HRs ---------------
16230 #### 1. Single line
16231 #### -----------------------------------
16234 HRs: 1. Single line
16238 ----<nowiki>----</nowiki>
16242 <hr><span typeof="mw:Nowiki">----</span>
16247 #### --------------- Tables ---------------
16248 #### 1a. Simple example
16249 #### 1b. No escaping needed (!foo)
16250 #### 1c. No escaping needed (|foo)
16251 #### 1d. No escaping needed (|}foo)
16253 #### 2a. Nested in td (<td>foo|bar</td>)
16254 #### 2b. Nested in td (<td>foo||bar</td>)
16255 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
16257 #### 3a. Nested in th (<th>foo!bar</th>)
16258 #### 3b. Nested in th (<th>foo!!bar</th>)
16259 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
16263 #### 4c. No escaping needed
16264 #### --------------------------------------
16267 Tables: 1a. Simple example
16278 Tables: 1b. No escaping needed
16287 Tables: 1c. No escaping needed
16296 Tables: 1d. No escaping needed
16305 Tables: 2a. Nested in td
16310 |<nowiki>foo|bar</nowiki>
16314 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
16318 Tables: 2b. Nested in td
16323 |<nowiki>foo||bar</nowiki>
16324 |''it''<nowiki>foo||bar</nowiki>
16328 <td><span typeof="mw:Nowiki">foo||bar</span></td>
16329 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
16333 Tables: 2c. Nested in td -- no escaping needed
16341 <table><tbody><tr><td>foo!!bar
16342 </td></tr></tbody></table>
16347 Tables: 3a. Nested in th
16355 <table><tbody><tr><th>foo!bar
16356 </th></tr></tbody></table>
16361 Tables: 3b. Nested in th
16366 !<nowiki>foo!!bar</nowiki>
16370 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
16375 Tables: 3c. Nested in th -- no escaping needed
16380 !<nowiki>foo||bar</nowiki>
16384 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
16388 Tables: 4a. Escape -
16396 |<nowiki>-bar</nowiki>
16400 <tr><th>-bar</th></tr>
16402 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
16406 Tables: 4b. Escape +
16414 |<nowiki>+bar</nowiki>
16418 <tr><th>+bar</th></tr>
16420 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
16424 Tables: 4c. No escaping needed
16443 <tr><td>foo-bar</td><td>foo+bar</td></tr>
16444 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
16452 ### SSS FIXME: Disabled right now because accurate html2wt
16453 ### on this snippet requires data-parsoid flags that we've
16454 ### stripped out of these tests. We should scheme how we
16455 ### we want to handle these kind of tests that require
16456 ### data-parsoid flags for accurate html2wt serialization
16459 Tables: 4d. No escaping needed
16477 #### --------------- Links ----------------
16478 #### 1. Quote marks in link text
16479 #### 2. Wikilinks: Escapes needed
16480 #### 3. Wikilinks: No escapes needed
16481 #### 4. Extlinks: Escapes needed
16482 #### 5. Extlinks: No escapes needed
16483 #### --------------------------------------
16485 Links 1. Quote marks in link text
16489 [[Foo|Foo<nowiki>''boo''</nowiki>]]
16491 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
16495 Links 2. WikiLinks: Escapes needed
16499 [[Foo|<nowiki>[Foobar]</nowiki>]]
16500 [[Foo|<nowiki>Foobar]</nowiki>]]
16501 [[Foo|x [Foobar] x]]
16502 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
16503 [[Foo|<nowiki>[[Bar]]</nowiki>]]
16504 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
16505 [[Foo|<nowiki>|Bar</nowiki>]]
16506 [[Foo|<nowiki>]]bar</nowiki>]]
16507 [[Foo|<nowiki>[[bar</nowiki>]]
16508 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
16510 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
16511 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
16512 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
16513 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
16514 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
16515 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
16516 <a href="Foo" rel="mw:WikiLink">|Bar</a>
16517 <a href="Foo" rel="mw:WikiLink">]]bar</a>
16518 <a href="Foo" rel="mw:WikiLink">[[bar</a>
16519 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
16523 Links 3. WikiLinks: No escapes needed
16530 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
16531 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
16535 Links 4. ExtLinks: Escapes needed
16539 [http://google.com <nowiki>[google]</nowiki>]
16540 [http://google.com <nowiki>google]</nowiki>]
16542 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
16543 <a href="http://google.com" rel="mw:ExtLink">google]</a>
16547 Links 5. ExtLinks: No escapes needed
16551 [http://google.com [google]
16553 <a href="http://google.com" rel="mw:ExtLink">[google</a>
16556 #### --------------- Quotes ---------------
16557 #### 1. Quotes inside <b> and <i>
16558 #### 2. Link fragments separated by <i> and <b> tags
16559 #### 3. Link fragments inside <i> and <b>
16560 #### 4. No escaping needed
16561 #### --------------------------------------
16563 1. Quotes inside <b> and <i>
16565 parsoid=html2wt,wt2wt
16567 ''<nowiki>'foo'</nowiki>''
16568 ''<nowiki>''foo''</nowiki>''
16569 ''<nowiki>'''foo'''</nowiki>''
16571 '''<nowiki>'foo'</nowiki>'''
16572 '''<nowiki>''foo''</nowiki>'''
16573 '''<nowiki>'''foo'''</nowiki>'''
16574 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
16575 '''foo'''<nowiki/>'s
16578 '<nowiki/>''foo''<nowiki/>'
16580 '''foo'''<nowiki/>'
16581 '<nowiki/>'''foo'''<nowiki/>'
16590 <b>foo'<i>bar'</i>baz</b>
16601 2. Link fragments separated by <i> and <b> tags
16603 [[''foo''<nowiki>hello]]</nowiki>
16605 [['''foo'''<nowiki>hello]]</nowiki>
16607 <p>[[<i>foo</i>hello]]
16608 </p><p>[[<b>foo</b>hello]]
16613 3. Link fragments inside <i> and <b>
16614 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
16615 this is one of the shortcomings of this format)
16617 ''[[foo''<nowiki>]]</nowiki>
16619 '''[[foo'''<nowiki>]]</nowiki>
16622 </p><p><b>[[foo</b>]]
16627 4. No escaping needed
16629 '<span>''bar''</span>'
16630 '<span>'''bar'''</span>'
16632 <p>'<span><i>bar</i></span>'
16633 '<span><b>bar</b></span>'
16637 #### ----------- Paragraphs ---------------
16638 #### 1. No unnecessary escapes
16639 #### --------------------------------------
16642 1. No unnecessary escapes
16644 bar <span><nowiki>[[foo]]</nowiki></span>
16646 =bar <span><nowiki>[[foo]]</nowiki></span>
16648 [[bar <span><nowiki>[[foo]]</nowiki></span>
16650 ]]bar <span><nowiki>[[foo]]</nowiki></span>
16652 =bar <span>foo]]</span><nowiki>=</nowiki>
16654 <p>bar <span>[[foo]]</span>
16655 </p><p>=bar <span>[[foo]]</span>
16656 </p><p>[[bar <span>[[foo]]</span>
16657 </p><p>]]bar <span>[[foo]]</span>
16658 </p><p>=bar <span>foo]]</span>=
16662 #### ----------------------- PRE --------------------------
16663 #### 1. Leading whitespace in SOL context should be escaped
16664 #### ------------------------------------------------------
16666 1. Leading whitespace in SOL context should be escaped
16670 <nowiki> </nowiki>a
16672 <nowiki> </nowiki> a
16674 <nowiki> </nowiki>a(tab)
16676 <nowiki> </nowiki> a
16678 <nowiki> </nowiki> a
16681 <nowiki> </nowiki>b
16684 <nowiki> </nowiki>b
16687 <nowiki> </nowiki> b
16693 <p><!--cmt--> a</p>
16702 #### --------------- HTML tags ---------------
16705 #### 3. multi-line html tag
16706 #### -----------------------------------------
16712 <a href="http://google.com">google</a>
16714 <a href="http://google.com">google</a>
16720 <nowiki><div>foo</div>
16721 <div style="color:red">foo</div></nowiki>
16723 <p><div>foo</div>
16724 <div style="color:red">foo</div>
16729 3. multi-line html tag
16744 <nowiki><ref>foo</ref></nowiki>
16746 <p><ref>foo</ref>
16750 #### --------------- Others ---------------
16754 <nowiki>foo</nowiki>
16756 <p><nowiki>foo</nowiki>
16760 ## The quote-char in the input is necessary for triggering the bug
16762 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
16764 parsoid=wt2wt,html2wt
16773 Tag-like HTML structures are passed through as text
16795 </p><p>1<d e>f
16800 # This was a bug in the PHP parser (see bug 17663 and its dups,
16801 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
16803 Tag names followed by punctuation should not be recognized as tags
16807 <p><s.ome> text
16812 HTML tag with necessary entities in attributes
16814 <span title="&amp;">foo</span>
16816 <p><span title="&amp;">foo</span>
16821 HTML tag with 'unnecessary' entity encoding in attributes
16823 <span title="&">foo</span>
16825 <p><span title="&">foo</span>
16830 HTML tag with broken attribute value quoting
16832 <span title="Hello world>Foo</span>
16834 <p><span>Foo</span>
16839 Parsoid-only: HTML tag with broken attribute value quoting
16843 <span title="Hello world>Foo</span>
16845 <p><span title="Hello world">Foo</span>
16850 Table with broken attribute value quoting
16853 | title="Hello world|Foo
16864 Table with broken attribute value quoting on consecutive lines
16867 | title="Hello world|Foo
16868 | style="color:red|Bar
16881 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16886 | title="Hello world|Foo
16887 | style="color:red|Bar
16892 <td title="Hello world">Foo
16893 </td><td style="color: red">Bar
16894 </td></tr></tbody></table>
16899 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16909 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16919 Accept empty td cell attribute
16922 | align="center" | foo || |
16927 <td align="center"> foo </td>
16934 Non-empty attributes in th-cells
16937 ! Foo !! style="color: red" | Bar
16943 <th style="color: red"> Bar
16949 Accept empty attributes in th-cells
16964 Empty table rows go away
16985 ### Parsoid-centric tests for testing RTing of inter-element separators
16986 ### Edge cases not tested by existing parser tests and specific to
16987 ### Parsoid-specific serialization strategies.
16991 RT-ed inter-element separators should be valid separators
17004 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
17005 (Parsoid-only since PHP parser relies on Tidy for correct output)
17021 Empty TD followed by TD with tpl-generated attribute
17026 |{{echo|style='color:red'}}|foo
17040 Indented table with an empty td
17059 Empty TR followed by a template-generated TR
17060 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
17062 parsoid=wt2html,wt2wt
17066 {{echo|<tr><td>foo</td></tr>}}
17072 <tr typeof="mw:Transclusion">
17073 <td>foo</td></tr></tbody></table>
17076 ## PHP and parsoid output differ for this, and since this is primarily
17077 ## for testing Parsoid's serializer, marking this Parsoid only
17079 Empty TR followed by mixed-ws-comment line should RT correctly
17093 <td> <!--c--></td></tr>
17095 <td><!--c--> <!--d--></td></tr>
17101 Multi-line image caption generated by templates with/without trailing newlines
17105 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
17106 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
17108 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC</div></div></div>
17109 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC\n\n</div></div></div>
17113 ## PHP emits broken html for this, and since this is primarily
17114 ## a Parsoid serializer test, marking this Parsoid only
17116 Improperly nested inline or quotes tags with whitespace in between
17120 <span> <s>x</span> </s>
17123 <p><span> <s>x</s></span><s> </s>
17124 <b> <i>x</i></b><i> </i>
17129 Encapsulate protected attributes from wt
17133 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
17135 <body><div data-x-typeof="mw:placeholder stuff" data-x-data-parsoid="weird" data-x-data-parsoid-other="no" data-x-about="time" data-x-rel="mw:true">foo</div>
17139 # -----------------------------------------------------------------
17140 # The following section of tests are primarily to spec requirements
17141 # around serialization of new/edited content.
17143 # All these tests are marked Parsoid html2wt and html2html only
17144 # ----------------------------------------------------------------
17147 Image: Modifying size of an image
17151 [[Image:Wiki.png|230x230px]]
17153 <p data-parsoid='{"dsr":[0,24,0,0]}'><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"100px"}],"cacheKey":"[[Image:Wiki.png|100px]]","img":{"h":115,"w":100,"wdset":true},"dsr":[0,24,null,null]}'><a href="./File:Wiki.png" data-parsoid='{"a":{"href":"./File:Wiki.png"}}'><img resource="./File:Wiki.png" src="//upload.wikimedia.org/wikipedia/en/thumb/b/bc/Wiki.png/100px-Wiki.png" height="230" width="200" data-parsoid='{"a":{"resource":"./File:Wiki.png"},"sa":{"resource":"Image:Wiki.png"}}'></a></span></p>
17157 Image: New block level image should have \n before and after
17162 [[File:Wiki.png|right|thumb|150x150px]]
17165 <p>123</p><figure typeof="mw:Image/Thumb" class="mw-halign-right"><a href="./File:Wiki.png"><img src="http://192.168.142.128/mw/images/thumb/b/bc/Wiki.png/131px-Wiki.png" width="131" height="150" resource="./File:Wiki.png"></a></figure><p>456</p>
17168 # Wacky -- the leading newline in input is required because
17169 # that is what the serializer emits. To be fixed. Not fixing
17170 # the test because this test is required to test serialization of
17171 # new content and preferred whitespace style.
17173 Lists: Add space after bullets
17180 * <span> baz</span>
17185 <li><span> baz</span></li>
17190 Parsoid: Serialize positional parameters with = in them as named parameter
17196 <p about="#mwt1" typeof="mw:Transclusion"
17197 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
17201 # -----------------------------------------------------------------
17202 # End of section for Parsoid-only html2wt tests for serialization
17204 # -----------------------------------------------------------------
17211 Try for 100% code coverage