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-formedness
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-specific options (not run by PHP parser unless
25 # the test includes an html/php section)
26 # php php-only test (not run by the parsoid parser unless
27 # the test includes an html/parsoid section)
28 # showtitle make the first line the title
29 # comment run through Linker::formatComment() instead of main parser
30 # local format section links in edit comment text as local links
31 # notoc disable table of contents
32 # thumbsize=NNN set the default thumb size to NNNpx for this test
34 # You can also set the following parser properties via test options:
35 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
36 # wgLinkHolderBatchSize, wgRawHtml
38 # For testing purposes, temporary articles can created:
39 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
40 # where '/' denotes a newline.
42 # This is the standard article assumed to exist.
73 MediaWiki:bad image list
75 * [[File:Bad.jpg]] except [[Nasty page]]
103 Template:echo_with_span
109 Template:echo_with_div
121 Template:table_attribs
124 |</noinclude>style="color: red"| Foo
130 {{table_attribs}} || Bar || Baz
134 Template:image_attribs
137 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
181 Template:EmptyTRWithHTMLAttrTest
184 <tr align="center"></tr>
185 <tr><td>foo</td></tr>
186 <tr align="center"></tr>
187 <tr><td>bar</td></tr>
204 This is a simple paragraph.
206 <p>This is a simple paragraph.
211 Paragraphs with extra newline spacing
234 Paragraphs with newline spacing with comment lines in between
242 <!--foo--><!--More than 1 comment, still stripped-->
246 <!--foo--> <!----> <!-- bar -->
307 Paragraphs with newline spacing with non-empty white-space lines in between
334 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
342 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
381 Extra newlines: More paragraphs with indented comment
396 Extra newlines followed by heading
411 <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>
412 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
415 <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>
420 Extra newlines between heading and content are swallowed
428 <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>
429 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
436 http://fr.wikipedia.org/wiki/🍺
437 <!-- EasterEgg we love beer, better be able be able to link to it -->
439 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
443 # Note that the html+tidy output removes the spaces after the <li>,
444 # which is a bug (http://sourceforge.net/p/tidy/bugs/945/, etc).
445 # This is an issue for all tests with lists. We intentionally do
446 # *not* add html+tidy clauses for these, as we don't want to
447 # document/test the broken behavior. (Parsoid matches the non-tidy
448 # output in these cases.)
457 <li> Item 2</li></ul>
465 * plain''italic''plain
466 * plain''italic''plain''italic''plain
467 * plain'''bold'''plain
468 * plain'''bold'''plain'''bold'''plain
469 * plain''italic''plain'''bold'''plain
470 * plain'''bold'''plain''italic''plain
471 * plain''italic'''bold-italic'''italic''plain
472 * plain'''bold''bold-italic''bold'''plain
473 * plain'''''bold-italic'''italic''plain
474 * plain'''''bold-italic''bold'''plain
475 * plain''italic'''bold-italic'''''plain
476 * plain'''bold''bold-italic'''''plain
477 * plain l'''italic''plain
478 * plain l''''bold''' plain
481 <li> plain<i>italic</i>plain</li>
482 <li> plain<i>italic</i>plain<i>italic</i>plain</li>
483 <li> plain<b>bold</b>plain</li>
484 <li> plain<b>bold</b>plain<b>bold</b>plain</li>
485 <li> plain<i>italic</i>plain<b>bold</b>plain</li>
486 <li> plain<b>bold</b>plain<i>italic</i>plain</li>
487 <li> plain<i>italic<b>bold-italic</b>italic</i>plain</li>
488 <li> plain<b>bold<i>bold-italic</i>bold</b>plain</li>
489 <li> plain<i><b>bold-italic</b>italic</i>plain</li>
490 <li> plain<b><i>bold-italic</i>bold</b>plain</li>
491 <li> plain<i>italic<b>bold-italic</b></i>plain</li>
492 <li> plain<b>bold<i>bold-italic</i></b>plain</li>
493 <li> plain l'<i>italic</i>plain</li>
494 <li> plain l'<b>bold</b> plain</li></ul>
498 # this example taken from the [[simple:Moon]] article (bug 47326)
500 Italics and possessives (1)
502 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
504 <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
508 # this example taken from [[en:Flaming Pie]] (bug 49926)
510 Italics and possessives (2)
512 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
514 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
518 # this example taken from [[en:Dictionary]] (bug 49926)
520 Italics and possessives (3)
522 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''.
524 <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>.
530 ### 2-quote opening sequence tests
533 Italics and bold: 2-quote opening sequence: (2,2)
542 Italics and bold: 2-quote opening sequence: (2,3)
552 # same html as previous, but wikitext adjusted to match parsoid html2wt
554 Italics and bold: 2-quote opening sequence: (2,3) w/ nowiki
563 Italics and bold: 2-quote opening sequence: (2,4)
573 # same html as previous, but wikitext adjusted to match parsoid html2wt
575 Italics and bold: 2-quote opening sequence: (2,4) w/ nowiki
577 ''foo<nowiki>''</nowiki>''
583 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
585 Italics and bold: 2-quote opening sequence: (2,5)
598 # same html as previous, but wikitext adjusted to match parsoid html2wt
600 Italics and bold: 2-quote opening sequence: (2,5+3) w/ nowiki
602 ''foo'''''<nowiki/>'''
613 ### 3-quote opening sequence tests
617 Italics and bold: 3-quote opening sequence: (3,2)
627 # same html as previous, but wikitext adjusted to match parsoid html2wt
629 Italics and bold: 3-quote opening sequence: (3,2) w/ nowiki
638 Italics and bold: 3-quote opening sequence: (3,3)
647 Italics and bold: 3-quote opening sequence: (3,4)
657 # same html as previous, but wikitext adjusted to match parsoid html2wt
659 Italics and bold: 3-quote opening sequence: (3,4) w/ nowiki
667 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
669 Italics and bold: 3-quote opening sequence: (3,5)
682 # same html as previous, but wikitext adjusted to match parsoid html2wt
684 Italics and bold: 3-quote opening sequence: (3,5+2) w/ nowiki
686 '''foo'''''<nowiki/>''
697 ### 4-quote opening sequence tests
701 Italics and bold: 4-quote opening sequence: (4,2)
711 # same html as previous, but wikitext adjusted to match parsoid html2wt
713 Italics and bold: 4-quote opening sequence: (4,2) w/ nowiki
715 <nowiki>''</nowiki>''foo''
722 Italics and bold: 4-quote opening sequence: (4,3)
732 # same html as previous, but wikitext adjusted to match parsoid html2wt
734 Italics and bold: 4-quote opening sequence: (4,3) w/ nowiki
743 Italics and bold: 4-quote opening sequence: (4,4)
753 # same html as previous, but wikitext adjusted to match parsoid html2wt
755 Italics and bold: 4-quote opening sequence: (4,4) w/ nowiki
757 '<nowiki/>'''foo'<nowiki/>'''
763 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
765 Italics and bold: 4-quote opening sequence: (4,5)
774 <p>'<b>foo</b><i></i>
778 # same html as previous, but wikitext adjusted to match parsoid html2wt
780 Italics and bold: 4-quote opening sequence: (4,5+2) w/ nowiki
782 '<nowiki/>'''foo'''''<nowiki/>''
787 <p>'<b>foo</b><i></i>
793 ### 5-quote opening sequence tests
797 Italics and bold: 5-quote opening sequence: (5,2)
807 # same html as previous, but wikitext adjusted to match parsoid html2wt
808 # skipping wt2html and html2html because it wants to put <i> before <b>
810 Italics and bold: 5-quote opening sequence: (5,2+3)
812 parsoid=wt2wt,html2wt
821 Italics and bold: 5-quote opening sequence: (5,3)
831 # same html as previous, but wikitext adjusted to match parsoid html2wt
833 Italics and bold: 5-quote opening sequence: (5,3+2)
842 Italics and bold: 5-quote opening sequence: (5,4)
848 <p><i><b>foo'</b></i>
852 # same html as previous, but wikitext adjusted to match parsoid html2wt
854 Italics and bold: 5-quote opening sequence: (5,4+2) w/ nowiki
856 '''''foo'<nowiki/>'''''
858 <p><i><b>foo'</b></i>
863 Italics and bold: 5-quote opening sequence: (5,5)
872 ### multiple quote sequences in a line
875 Italics and bold: multiple quote sequences: (2,4,2)
881 <p><i>foo'<b>bar</b></i>
886 # same html as previous, but wikitext adjusted to match parsoid html2wt
888 Italics and bold: multiple quote sequences: (2,4,2+3) w/ nowiki
890 ''foo'<nowiki/>'''bar'''''
892 <p><i>foo'<b>bar</b></i>
898 Italics and bold: multiple quote sequences: (2,4,3)
904 <p><i>foo'<b>bar</b></i>
909 # same html as previous, but wikitext adjusted to match parsoid html2wt
911 Italics and bold: multiple quote sequences: (2,4,3+2) w/ nowiki
913 ''foo'<nowiki/>'''bar'''''
915 <p><i>foo'<b>bar</b></i>
921 Italics and bold: multiple quote sequences: (2,4,4)
927 <p><i>foo'<b>bar'</b></i>
932 # same html as previous, but wikitext adjusted to match parsoid html2wt
934 Italics and bold: multiple quote sequences: (2,4,4+2) w/ nowiki
936 ''foo'<nowiki/>'''bar'<nowiki/>'''''
938 <p><i>foo'<b>bar'</b></i>
943 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
945 Italics and bold: multiple quote sequences: (3,4,2)
954 <p><b>foo'</b>bar<i></i>
958 # same html as previous, but wikitext adjusted to match parsoid html2wt
960 Italics and bold: multiple quote sequences: (3,4,2+2) w/ nowiki
964 '''<nowiki>foo'</nowiki>'''bar''<nowiki/>''
969 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<i></i>
974 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
976 Italics and bold: multiple quote sequences: (3,4,3)
985 <p><b>foo'</b>bar<b></b>
989 # same html as previous, but wikitext adjusted to match parsoid html2wt
991 Italics and bold: multiple quote sequences: (3,4,3+3) w/ nowiki
993 '''<nowiki>foo'</nowiki>'''bar'''<nowiki/>'''
998 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<b></b>
1003 ### other quote tests
1006 Italics and bold: other quote tests: (2,3,5)
1008 ''this is about '''foo's family'''''
1010 <p><i>this is about <b>foo's family</b></i>
1016 Italics and bold: other quote tests: (2,(3,3),2)
1018 ''this is about '''foo's''' family''
1020 <p><i>this is about <b>foo's</b> family</i>
1026 Italics and bold: other quote tests: (3,2,3,2)
1030 '''this is about ''foo'''s family''
1032 <p><b>this is about <i>foo</i></b><i>s family</i>
1037 # same html as previous, but wikitext adjusted to match parsoid html2wt
1039 Italics and bold: other quote tests: (3,2,3+2+2,2)
1041 '''this is about ''foo'''''<nowiki/>''s family''
1043 <p><b>this is about <i>foo</i></b><i>s family</i>
1049 Italics and bold: other quote tests: (3,2,3,3)
1053 '''this is about ''foo'''s family'''
1055 <p>'<i>this is about </i>foo<b>s family</b>
1060 # same html as previous, but wikitext adjusted to match parsoid html2wt
1062 Italics and bold: other quote tests: (3,2,3,3) w/ nowiki
1064 '<nowiki/>''this is about ''foo'''s family'''
1066 <p>'<i>this is about </i>foo<b>s family</b>
1072 Italics and bold: other quote tests: (3,(2,2),3)
1074 '''this is about ''foo's'' family'''
1076 <p><b>this is about <i>foo's</i> family</b>
1082 Italicized possessive
1084 The ''[[Main Page]]'''s talk page.
1086 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
1091 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
1092 (Requires tidy for PHP parser output to be fixed up)
1094 parsoid=wt2html,wt2wt
1111 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
1112 <td><i>a</i></td><td><i>b</i></td></tr>
1121 Non-html5 tags should be accepted
1123 <center>''foo''</center>
1125 <font>''foo''</font>
1126 <strike>''foo''</strike>
1129 <center><i>foo</i></center>
1130 <p><big><i>foo</i></big>
1131 <font><i>foo</i></font>
1132 <strike><i>foo</i></strike>
1138 <wbr> is valid wikitext (bug 52468)
1146 # <strike> is HTML4, <s> is HTML4/5.
1148 <s> or <strike> for strikethrough
1150 <strike>strike</strike>
1154 <p><strike>strike</strike>
1162 Text-level semantic html elements in wikitext
1165 <strong>text</strong>
1181 <ruby><rb>明日</rb><rp>(</rp><rt>Ashita</rt><rp> </rp><rtc>あした</rtc><rp>)</rp></ruby>
1188 <strong>text</strong>
1204 <ruby><rb>明日</rb><rp>(</rp><rt>Ashita</rt><rp> </rp><rtc>あした</rtc><rp>)</rp></ruby>
1212 # test cases taken from
1213 # http://www.w3.org/TR/html5/text-level-semantics.html#the-ruby-element
1215 Ruby markup (W3C-style)
1217 ; Mono-ruby for individual base characters
1218 : <ruby>日<rt>に</rt>本<rt>ほん</rt>語<rt>ご</rt></ruby>
1220 : <ruby>今日<rt>きょう</rt></ruby>
1222 : <ruby>法<rb>華</rb><rb>経</rb><rt>ほ</rt><rt>け</rt><rt>きょう</rt></ruby>
1224 : <ruby>東<rb>京</rb><rp>(</rp><rt>とう</rt><rt>きょう</rt><rp>)</rp></ruby>
1226 : <ruby><rb>旧</rb><rb>金</rb><rb>山</rb><rt>jiù</rt><rt>jīn</rt><rt>shān</rt><rtc>San Francisco</rtc></ruby>
1228 <rb>♥</rb><rtc><rt>Heart</rt></rtc><rtc lang="fr"><rt>Cœur</rt></rtc>
1229 <rb>☘</rb><rtc><rt>Shamrock</rt></rtc><rtc lang="fr"><rt>Trèfle</rt></rtc>
1230 <rb>✶</rb><rtc><rt>Star</rt></rtc><rtc lang="fr"><rt>Étoile</rt></rtc>
1233 <dl><dt> Mono-ruby for individual base characters</dt>
1234 <dd> <ruby>日<rt>に</rt>本<rt>ほん</rt>語<rt>ご</rt></ruby></dd>
1235 <dt> Group ruby</dt>
1236 <dd> <ruby>今日<rt>きょう</rt></ruby></dd>
1237 <dt> Jukugo ruby</dt>
1238 <dd> <ruby>法<rb>華</rb><rb>経</rb><rt>ほ</rt><rt>け</rt><rt>きょう</rt></ruby></dd>
1239 <dt> Inline ruby</dt>
1240 <dd> <ruby>東<rb>京</rb><rp>(</rp><rt>とう</rt><rt>きょう</rt><rp>)</rp></ruby></dd>
1241 <dt> Double-sided ruby</dt>
1242 <dd> <ruby><rb>旧</rb><rb>金</rb><rb>山</rb><rt>jiù</rt><rt>jīn</rt><rt>shān</rt><rtc>San Francisco</rtc></ruby></dd></dl>
1244 <rb>♥</rb><rtc><rt>Heart</rt></rtc><rtc lang="fr"><rt>Cœur</rt></rtc>
1245 <rb>☘</rb><rtc><rt>Shamrock</rt></rtc><rtc lang="fr"><rt>Trèfle</rt></rtc>
1246 <rb>✶</rb><rtc><rt>Star</rt></rtc><rtc lang="fr"><rt>Étoile</rt></rtc>
1251 # There is a tidy bug here: http://sourceforge.net/p/tidy/bugs/946/
1253 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
1255 <b→> doesn't work! </b→>
1257 <bä> doesn't work! </bä>
1259 <boo> works fine </boo>
1261 <s.foo>s.foo</s.foo>
1265 <p><b→> doesn't work! </b→>
1266 </p><p><bä> doesn't work! </bä>
1267 </p><p><boo> works fine </boo>
1268 </p><p><s.foo>s.foo</s.foo>
1269 </p><p><sub-ID#1>
1274 Isolated close tags should be treated as literal text (bug 52760)
1281 </p><p><s.foo>s</s>
1286 ### Special characters
1290 Bare pipe character (bug 52363)
1299 Bare pipe character from a template (bug 52363)
1308 ### <nowiki> test cases
1312 <nowiki> unordered list
1314 <nowiki>* This is not an unordered list item.</nowiki>
1316 <p>* This is not an unordered list item.
1323 <nowiki>Lorem ipsum dolor
1331 <p>Lorem ipsum dolor
1344 :There is not nowiki.
1345 :There is <nowiki>nowiki</nowiki>.
1347 #There is not nowiki.
1348 #There is <nowiki>nowiki</nowiki>.
1350 *There is not nowiki.
1351 *There is <nowiki>nowiki</nowiki>.
1353 <dl><dd>There is not nowiki.</dd>
1354 <dd>There is nowiki.</dd></dl>
1355 <ol><li>There is not nowiki.</li>
1356 <li>There is nowiki.</li></ol>
1357 <ul><li>There is not nowiki.</li>
1358 <li>There is nowiki.</li></ul>
1363 Entities inside <nowiki>
1365 <nowiki><</nowiki>
1372 Entities inside template parameters
1378 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}}]}'>–</span></p>
1382 Properly escape nowiki when combined with other wiki markup
1386 <nowiki>* </nowiki></nowiki> tag
1388 <p>* </nowiki> tag</p>
1395 Comments and Indent-Pre
1397 <!-- comment 1 --> asdf
1399 <!-- comment 1 --> asdf
1402 <!-- comment 1 --> asdf
1403 <!-- comment 2 -->xyz
1405 <!-- comment 1 --> asdf
1406 <!-- comment 2 --> xyz
1462 asdf<!-- comment 1 -->jkl
1472 <!-- foo --> b <!-- bar -->
1486 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1492 Comment semantics and delimiters
1494 <!-- --><!----><!-----><!------>
1500 Comment semantics and delimiters, redux
1502 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1503 -- foo -- funky huh? ... -->
1509 Comment semantics and delimiters: directors cut
1511 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1512 everything starting with < followed by !-- until the first -- and > we see,
1513 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1521 Comment semantics: nesting
1523 <!--<!-- no, we're not going to do anything fancy here -->-->
1530 Comment semantics: unclosed comment at end
1532 <!--This comment will run out to the end of the document
1537 # Bug 58184: document parsoid's behaviour
1539 Suppress comment closing tag in lenient browsers
1541 parsoid=wt2html,html2html
1543 <!-- Browsers--!> think this is closed -->
1547 <!-- Browsers--¡> think this is closed -->
1551 Comment in template title
1560 Comment on its own line post-expand
1572 Comment on its own line post-expand with non-significant whitespace
1584 Multiple comments should still parse as SOL-transparent
1586 parsoid=wt2html,wt2wt
1589 <!--c2--><!--c3--><!--c4-->*b
1600 ### paragraph wrapping tests
1615 Block tag on one line (<div>)
1631 Block tag on one line (<blockquote>)
1633 a <blockquote>foo</blockquote>
1637 a <blockquote>foo</blockquote>
1649 Block tag on both lines (<div>)
1666 Block tag on both lines (<blockquote>)
1668 a <blockquote>foo</blockquote>
1670 b <blockquote>foo</blockquote>
1672 a <blockquote>foo</blockquote>
1673 b <blockquote>foo</blockquote>
1687 Multiple lines without block tags
1711 # Tidy strips out the empty <div> tags. Parsoid doesn't.
1712 # So, we have a separate section for Parsoid. We don't want
1713 # to mimic this stripping behavior in Parsoid. It affects
1714 # editing experience and also requires us to maintain additional
1717 Empty lines between lines with block tags
1755 <div data-parsoid='{"stx":"html"}'></div>
1758 <div data-parsoid='{"stx":"html"}'></div><p>a</p>
1761 <div data-parsoid='{"stx":"html"}'>a</div><p>b</p>
1763 <div data-parsoid='{"stx":"html"}'>b</div><p>d</p>
1766 <div data-parsoid='{"stx":"html"}'>e</div>
1769 ## PHP parser emits output which is broken
1770 ## XXX The parsoid output doesn't match the tidy output.
1772 Unclosed HTML p-tags should be handled properly
1780 <p>foo</div></p>
1784 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1789 ## SSS FIXME: I can come up with other scenarios where this doesn't work because
1790 ## of eager output of buffered tokens in the p-wrapper. But, I'm going to ignore
1793 1. P-wrapping should leave sol-transparent tags outside p-tags where possible
1797 a [[Category:A1]] [[Category:A2]]
1802 <link href="Category:A1"/> <link href="Category:A2"/> <link href="Category:A3"/> <link href="Category:A4"/>
1806 2. P-wrapping should leave sol-transparent tags outside p-tags where possible
1812 <link href="Category:A1"/><p>a</p>
1816 ### Preformatted text
1825 And a [[Main Page|link]]
1831 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1836 Tabs don't trigger preformatted text
1840 This is preformatted text.
1846 <pre>This is preformatted text.
1852 Ident preformatting with inline content
1863 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1880 Regression with preformatted in <center>
1894 Bug 52763: Preformatted in <blockquote>
1900 indented cell (no pre-wrapping!)
1910 <p> indented cell (no pre-wrapping!)
1918 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
1935 Bug 15491: <ins>/<del> in blockquote
1938 Foo <del>bar</del> <ins>baz</ins> quux
1942 <p>Foo <del>bar</del> <ins>baz</ins> quux
1948 # Note that the p-wrapping is newline sensitive, which could be
1949 # considered a bug: tidy will wrap only the 'Foo' in the example
1950 # below in a <p> tag. (see comment 23-25 of bug #6200)
1952 Bug 15491: <ins>/<del> in blockquote (2)
1954 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1957 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
1963 <del>bar</del> <ins>baz</ins> quux</blockquote>
1967 <pre> with attributes (bug 3202)
1969 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1971 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1976 <pre> with width attribute (bug 3202)
1978 <pre width="8">Narrow screen goodies</pre>
1980 <pre width="8">Narrow screen goodies</pre>
1985 <pre> with forbidden attribute (bug 3202)
1987 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1989 <pre width="8">Narrow screen goodies</pre>
1994 Entities inside <pre>
2003 <pre> with forbidden attribute values (bug 3202)
2005 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
2007 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
2012 <nowiki> inside <pre> (bug 13238)
2020 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
2028 <pre><nowiki>Foo</nowiki></pre>
2033 <nowiki> and <pre> preference (first one wins)
2064 </pre> inside nowiki
2066 <nowiki></pre></nowiki>
2072 # Parsoid doesn't strip empty tags, like Tidy does.
2074 Empty pre; pre inside other HTML tags (bug 54946)
2076 parsoid=wt2html,wt2wt
2107 HTML pre followed by indent-pre
2122 <p><pre>foo</pre></p>
2124 <p data-parsoid='{"stx":"html","autoInsertedEnd":true}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
2128 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
2136 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
2146 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
2158 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
2179 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
2183 {{echo| foo}}{{echo| bar}}
2188 {{echo|<!--cmt--> foo}}
2190 <!--cmt-->{{echo| foo}}
2192 {{echo|{{echo| }}bar}}
2210 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
2247 Things that look like <pre> tags aren't treated as such
2249 Barack Obama <President> of the United States
2250 <President></President>
2252 <p>Barack Obama <President> of the United States
2253 <President></President>
2257 ## PHP parser discards the "<pre " string
2259 Handle broken pre-like tags (bug 64025)
2263 {{echo|<pre <pre>x</pre>}}
2265 <table><pre </table>
2268 <table><pre></pre></table>
2271 <pre about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"a":{"<pre":null},"sa":{"<pre":""},"stx":"html","pi":[[{"k":"1","spc":["","","",""]}]]}' data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<pre <pre>x</pre>"}},"i":0}}]}'>x</pre>
2280 Parsoid: handle pre with space after attribute
2284 <pre style="width:50%;" >{{echo|foo}}</pre>
2286 <pre style="width:50%;">{{echo|foo}}</pre>
2289 # TODO / maybe: fix wt2wt for this
2291 Parsoid: Don't paragraph-wrap fosterable content
2317 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
2345 #--------------------------------------------------------------------
2346 # Transclusion parameter whitespace stripping tests
2347 # Behavior is different for positional and named parameters
2348 #--------------------------------------------------------------------
2350 Templates: Strip leading and trailing whitespace from named-param values
2354 {{echo|1= {{echo|b}} }}
2367 <ul><li> d</li></ul>
2372 Templates: Don't strip whitespace from positional-param values
2376 {{echo|{{echo|b}} }}
2408 <ul><li> f</li></ul>
2416 Templates: Handle empty comment-and-ws-only lines correctly
2419 <!--should be ignored-->
2420 <!--should be ignored as well-->
2429 Templates: Handle comments in the target
2432 <!-- should be ignored -->
2435 {{echo<!-- should be ignored -->
2438 {{echo<!-- should be ignored -->|foo}}
2440 {{<!-- should be ignored -->echo|foo}}
2442 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo\n<!-- should be ignored -->\n","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2444 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo<!-- should be ignored -->\n","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2446 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo<!-- should be ignored -->","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2448 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2452 Templates: Handle comments in parameter names (bug 67657)
2455 <!-- should be ignored -->
2459 <!-- should be ignored -->
2462 {{echo|1<!-- should be ignored --> = foo}}
2464 {{echo|<!-- should be ignored -->1 = foo}}
2466 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo","key":{"wt":"1\n<!-- should be ignored -->"}}},"i":0}}]}'>foo</p>
2468 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo","key":{"wt":"<!-- should be ignored -->\n1"}}},"i":0}}]}'>foo</p>
2470 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo","key":{"wt":"1<!-- should be ignored -->"}}},"i":0}}]}'>foo</p>
2472 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo","key":{"wt":"<!-- should be ignored -->1"}}},"i":0}}]}'>foo</p>
2476 Templates: Other wikitext in parameter names (bug 67657)
2480 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"''1''":{"wt":"foo"}},"i":0}}]}'>{{{1}}}</p>
2486 #--------------------------------------------------------------------
2487 # Transclusion parameter escaping tests
2488 #--------------------------------------------------------------------
2490 Templates: Parsoid parameter escaping test 1
2494 {{echo|[foo]|{{echo|[bar]}}}}
2496 <p about="#mwt1" typeof="mw:Transclusion"
2497 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
2501 Parsoid: Pipes in external links in template parameter
2505 {{echo|[{{echo|http://example.com}} link]}}
2507 <p><a rel="mw:ExtLink" href="http://example.com" about="#mwt31" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{echo|http://example.com}} link]"}},"i":0}}]}'>link</a></p>
2511 Parsoid: pipe in transclusion parameter
2515 {{echo|http://foo.com/a|b}}
2517 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2518 typeof="mw:Transclusion"
2519 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a&#124;b"}},"i":0}}]}'>http://foo.com/a|b</a></p>
2523 Parsoid: Pipe in external link target and content in template parameter
2525 parsoid=html2wt,wt2wt
2527 {{echo|[http://foo.com/a|b a|b]}}
2529 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2530 typeof="mw:Transclusion"
2531 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
2532 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
2536 Parsoid: Pipe in template with nested template in external link target in template parameter (seriously)
2540 {{echo|[{{fullurl:{{FULLPAGENAME}}|action=edit}} bar]}}
2542 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{fullurl:{{FULLPAGENAME}}|action=edit}} bar]"}},"i":0}}]}'>[Main Page bar]</p>
2546 Templates: Don't escape already nowiki-escaped text in template parameters
2548 parsoid=html2wt,wt2wt
2550 {{echo|foo<nowiki>|</nowiki>bar}}
2551 {{echo|<nowiki><div></nowiki>}}
2552 {{echo|<nowiki></nowiki>}}
2554 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"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>
2555 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt2" data-mw='{"parts":[{"template":{"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>
2556 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}}]}'></span>
2562 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
2564 parsoid=html2wt,wt2wt
2566 {{echo|{{echo|1=bar}}}}
2568 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{echo|1=bar}}"}},"i":0}}]}'>bar</p>
2573 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
2579 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a : b"}},"i":0}}]}'>a<span typeof="mw:Placeholder" data-parsoid='{"isDisplayHack":true}'> </span>: b</p>
2583 ### Parsoid-centric tests for testing RT edge cases for pre
2587 1a. Indent-Pre and Comments
2600 1b. Indent-Pre and Comments
2613 1c. Indent-Pre and Comments
2626 1d. Indent-Pre and Comments
2627 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2640 2a. Indent-Pre and tables
2661 2b. Indent-Pre and tables
2677 2c. Indent-Pre and tables (bug 42252)
2694 2d. Indent-Pre and tables
2711 <tbody><tr><td> b</td></tr>
2716 2e. Indent-Pre and table-line syntax
2729 2f. Indent-pre started by table-line syntax
2748 3a. Indent-Pre and block tags (single-line html)
2752 c <blockquote> foo </blockquote>
2757 c <blockquote> foo </blockquote>
2758 <pre><span> foo </span>
2761 <p>a </p><p data-parsoid='{"stx":"html"}'> foo </p>
2762 <p>b </p><div data-parsoid='{"stx":"html"}'> foo </div>
2763 <p>c </p><blockquote data-parsoid='{"stx":"html"}'> foo </blockquote>
2764 <pre><span> foo </span>
2781 3b. Indent-Pre and block tags (multi-line html)
2786 <pre>a <span>foo</span>
2791 <pre>a <span data-parsoid='{"stx":"html"}'>foo</span></pre>
2792 b <div data-parsoid='{"stx":"html"}'> foo </div>
2802 3c. Indent-Pre and block tags (pre-content on separate line)
2866 4. Indent-Pre and extension tags
2872 a <ul class="gallery mw-gallery-traditional">
2873 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2874 <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>
2875 <div class="gallerytext">
2882 <ul class="gallery mw-gallery-traditional">
2883 <li class="gallerybox" style="width: 155px">
2884 <div style="width: 155px">
2885 <div class="thumb" style="width: 150px;">
2886 <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>
2888 <div class="gallerytext"></div>
2895 Table wikitext syntax outside wiki-tables
2898 ! not a table heading
2901 | class="foo bar" | baz
2908 ! not a table heading
2911 | class="foo bar" | baz
2920 Render paragraphs when indent-pre is suppressed in blocklevels
2937 4. Multiple spaces at start-of-line
2955 ## NOTE: the leading white-space chars on empty line are significant
2957 5a. White-space in indent-pre
2969 ## NOTE: the leading white-space chars on empty line are significant
2971 5b. White-space in indent-pre
2990 5c. White-space in indent-pre
3003 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
3026 7a. Indent-pre and category links
3028 parsoid=wt2html,wt2wt
3030 [[Category:foo]] <!-- No pre-wrapping -->
3031 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
3033 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
3034 <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":" [[Category:foo]]"}},"i":0}}]}'> </span><link rel="mw:PageProp/Category" href="./Category:Foo" about="#mwt1"> <!-- No pre-wrapping -->
3038 7b. Indent-pre and category links
3040 parsoid=wt2html,wt2wt
3043 [[Category:foo]] {{echo|b}}
3046 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
3047 <link rel="mw:PageProp/Category" href="./Category:Foo"> <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b"}},"i":0}}]}'>b</span></pre>
3051 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
3055 HTML-pre: 1. embedded newlines
3089 <pre data-parsoid='{"stx":"html"}'>foo</pre>
3091 <pre data-parsoid='{"stx":"html","strippedNL":"\n"}'>
3095 <pre data-parsoid='{"stx":"html"}'>
3100 <pre data-parsoid='{"stx":"html"}'>
3108 HTML-pre: big spaces
3145 <pre data-parsoid='{"stx":"html"}'>
3164 HTML-pre: 2: indented text
3177 HTML-pre: 3: other wikitext
3198 ### Definition lists
3205 <dl><dt> name </dt>
3206 <dd> Definition</dd></dl>
3211 Definition list for indentation only
3215 <dl><dd> Indented text</dd></dl>
3220 Definition list with no space
3225 <dd>Definition</dd></dl>
3230 Definition list with URL link
3232 ; http://example.com/ : definition
3234 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
3235 <dd> definition</dd></dl>
3240 Definition list with bracketed URL link
3242 ;[http://www.example.com/ Example]:Something about it
3244 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
3245 <dd>Something about it</dd></dl>
3250 Definition list with wikilink containing colon
3252 ; [[Help:FAQ]]: The least-read page on Wikipedia
3254 <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>
3255 <dd> The least-read page on Wikipedia</dd></dl>
3259 # At Brion's and JeLuF's insistence... :)
3261 Definition list with news link containing colon
3263 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
3265 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
3266 <dd> This isn't even a real newsgroup!</dd></dl>
3271 Malformed definition list with colon
3273 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
3275 <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</dt></dl>
3280 Definition lists: colon in external link text
3282 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
3284 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
3285 <dd> OK, I made that up</dd></dl>
3290 Definition lists: colon in HTML attribute
3292 ;<b style="display: inline">bold</b>
3294 <dl><dt><b style="display: inline">bold</b></dt></dl>
3299 Definition lists: self-closed tag
3301 ;one<br/>two : two-line fun
3303 <dl><dt>one<br />two </dt>
3304 <dd> two-line fun</dd></dl>
3309 Bug 11748: Literal closing tags
3313 <dd>test test test test test</dd>
3315 <dd>test test test test test</dd>
3320 <dd>test test test test test</dd>
3322 <dd>test test test test test</dd>
3328 Definition and unordered list using wiki syntax nested in unordered list using html tags.
3331 ; term : description
3336 <dl><dt> term </dt>
3337 <dd> description</dd></dl>
3338 <ul><li> unordered</li></ul>
3345 Definition list with empty definition and following paragraph
3357 Nested definition lists using html syntax
3366 Definition Lists: No nesting: Multiple dd's
3379 Definition Lists: Indentation: Regular
3387 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
3392 Definition Lists: Indentation: Missing 1st level
3398 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
3403 Definition Lists: Indentation: Multi-level indent
3407 <dl><dd><dl><dd><dl><dd>i3</dd></dl></dd></dl></dd></dl>
3412 Definition Lists: Hacky use to indent tables
3419 should be left alone
3421 <dl><dd><dl><dd><table>
3426 </td></tr></table></dd></dl></dd></dl>
3428 should be left alone
3433 Definition Lists: Hacky use to indent tables, with comments (bug 63979)
3441 should be left alone
3444 <dl><dd><dl><dd><table><tr>
3447 </tr></table><!-- bar --></dd></dl></dd></dl>
3449 should be left alone</p>
3453 Definition Lists: Hacky use to indent tables, with comment before table
3459 <dl><dd><dl><dd><!-- foo --><table><tr>
3461 </tr></table></dd></dl></dd></dl>
3466 Definition Lists: Hacky use to indent tables (WS-insensitive)
3475 <dd> <table><tr><td>a</td></tr></table> </dd>
3478 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
3479 ## as an empty dt item. It also ignores all but the last ";" when followed
3480 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
3481 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
3484 ## Ex: ";;t2 ::d2" is transformed into:
3496 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
3497 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
3508 ## All Parsoid only definition list tests have this difference.
3510 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
3511 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
3514 Table / list interaction: indented table with lists in table contents
3529 <ul><li> b</li></ul>
3533 <ul><li> d</li></ul>
3534 </td></tr></table></dd></dl>
3539 Table / list interaction: lists nested in tables nested in indented lists
3562 </td></tr></table></dd></dl>
3569 Definition Lists: Nesting: Multi-level (Parsoid only)
3599 Definition Lists: Nesting: Test 2 (Parsoid only)
3619 Definition Lists: Nesting: Test 3 (Parsoid only)
3647 Definition Lists: Nesting: Test 4
3652 <dl><dd><dl><dd><dl><dt>t3</dt>
3653 <dd>d3</dd></dl></dd></dl></dd></dl>
3658 ## The Parsoid team believes the following three test exposes a
3659 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
3660 ## wrong to close the <dl> after the <dt> containing the <ul>.)
3661 ## It also exposes a "misfeature" in tidy, which doesn't like
3662 ## <dl> tags with a single <dt> child; it converts the <dt> into
3663 ## a <dd> in that case. (Parsoid leaves the <dt> alone!)
3665 Definition Lists: Mixed Lists: Test 1
3671 <dl><dd><dl><dt><ul><li> foo</li>
3672 <li> bar</li></ul></dt></dl>
3673 <dl><dt> baz</dt></dl></dd></dl>
3708 Definition Lists: Mixed Lists: Test 2
3713 <ul><li><dl><dd> d1</dd>
3714 <dd> d2</dd></dl></li></ul>
3720 Definition Lists: Mixed Lists: Test 3
3725 <ul><li><dl><dd><dl><dd><dl><dd> d1</dd>
3726 <dd> d2</dd></dl></dd></dl></dd></dl></li></ul>
3732 Definition Lists: Mixed Lists: Test 4
3737 <ul><li><dl><dt>d1 </dt>
3740 <dd>d4</dd></dl></li></ul>
3746 Definition Lists: Mixed Lists: Test 5
3752 <dl><dd> d2</dd></dl></dd></dl></li></ul>
3758 Definition Lists: Mixed Lists: Test 6
3763 <ol><li><ul><li><dl><dd>d1
3764 <dl><dd><dl><dd> d3</dd></dl></dd></dl></dd></dl></li></ul></li></ol>
3770 Definition Lists: Mixed Lists: Test 7
3775 <dl><dd><ul><li> d1</li>
3776 <li> d2</li></ul></dd></dl>
3782 Definition Lists: Mixed Lists: Test 8
3787 <dl><dd><ul><li> d1</li></ul>
3788 <dl><dd><ul><li> d2</li></ul></dd></dl></dd></dl>
3794 Definition Lists: Mixed Lists: Test 9
3798 <ul><li><dl><dt>foo </dt>
3799 <dd>bar</dd></dl></li></ul>
3805 Definition Lists: Mixed Lists: Test 10
3809 <ul><li><ol><li><dl><dt>foo </dt>
3810 <dd>bar</dd></dl></li></ol></li></ul>
3814 # The Parsoid team disagrees with the PHP parser's seemingly-random
3815 # rules regarding dd/dt on the next two tests. Parsoid is more
3816 # consistent, and recognizes the shared nesting and keeps the
3817 # still-open tags around until the nesting is complete.
3818 # (And tidy again converts <dt> to <dd> before 'bar'.)
3821 Definition Lists: Mixed Lists: Test 11
3826 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt>
3827 <dd><ul><li><dl><dt><dl><dt>bar</dt></dl></dd></dl></li></ul></dd></dl>
3828 <dl><dt>boo </dt>
3829 <dd>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
3884 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3885 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3889 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3890 <dd data-parsoid='{"stx":"row"}'>baz</dd>
3899 # Another case where tidy converts a <dt> to a <dd> (but Parsoid doesn't).
3901 Definition Lists: Weird Ones: Test 1
3903 *#;*::;; foo : bar (who uses this?)
3905 <ul><li><ol><li><dl><dt> foo </dt>
3906 <dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)</dt></dl></dd></dl></dd></dl></dd></dl></li></ul></dd></dl></li></ol></li></ul>
3925 <dt>bar (who uses this?)</dt>
3957 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3958 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
3973 External links: non-bracketed
3975 Non-bracketed: http://example.com
3977 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
3981 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
3983 External links: numbered
3985 Numbered: [http://example.com]
3986 Numbered: [http://example.net]
3987 Numbered: [http://example.com]
3989 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
3990 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
3991 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
3994 <p>Numbered: <a rel="mw:ExtLink" href="http://example.com"></a>
3995 Numbered: <a rel="mw:ExtLink" href="http://example.net"></a>
3996 Numbered: <a rel="mw:ExtLink" href="http://example.com"></a></p>
4000 External links: specified text
4002 Specified text: [http://example.com link]
4004 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
4009 External links: trail
4011 Linktrails should not work for external links: [http://example.com link]s
4013 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
4018 External links: dollar sign in URL
4020 http://example.com/1$2345
4022 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
4026 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4028 External links: dollar sign in URL (autonumber)
4030 [http://example.com/1$2345]
4032 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
4035 <p><a rel="mw:ExtLink" href="http://example.com/1$2345"></a></p>
4039 External links: open square bracket forbidden in URL (bug 4377)
4041 parsoid=wt2html,wt2wt,html2html
4043 http://example.com/1[2345
4045 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
4048 <p><a rel="mw:ExtLink" href="http://example.com/1">http://example.com/1</a>[2345</p>
4052 External links: open square bracket forbidden in URL (named) (bug 4377)
4054 parsoid=wt2html,html2html
4056 [http://example.com/1[2345]
4058 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
4061 <p><a rel="mw:ExtLink" href="http://example.com/1">[2345</a></p>
4064 # parsoid adds a space before the link name
4066 External links: open square bracket forbidden in URL (named) (bug 4377)
4069 [http://example.com/1 [2345]
4071 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
4076 External links: nowiki in URL link text (bug 6230)
4078 [http://example.com/ <nowiki>''example site''</nowiki>]
4080 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
4085 External links: newline forbidden in text (bug 6230 regression check)
4087 [http://example.com/ first
4090 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
4096 External links: Pipe char between url and text
4098 [http://example.com | link]
4100 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
4105 External links: protocol-relative URL in brackets
4107 [//example.com/ Test]
4109 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
4113 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4115 External links: protocol-relative URL in brackets without text
4119 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
4122 <p><a rel="mw:ExtLink" href="//example.com"></a></p>
4126 External links: protocol-relative URL in free text is left alone
4130 <p>//example.com/Foo
4135 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
4137 foo//example.com/Foo
4139 <p>foo//example.com/Foo
4144 External links: with no contents
4146 [http://en.wikipedia.org/wiki/Foo]
4148 [[wikipedia:Foo|Bar]]
4150 [[wikipedia:Foo|<span>Bar</span>]]
4152 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/wiki/Foo">[1]</a>
4153 </p><p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo">Bar</a>
4154 </p><p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo"><span>Bar</span></a>
4157 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo"></a></p>
4158 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" title="wikipedia:Foo">Bar</a></p>
4159 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" title="wikipedia:Foo"><span>Bar</span></a></p>
4163 External links: Free with trailing punctuation
4173 http://example.com/url_with_(brackets)
4175 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>,
4176 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>;
4177 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>\
4178 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>.
4179 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>:
4180 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>!
4181 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>?
4182 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4183 <a rel="nofollow" class="external free" href="http://example.com/url_with_(brackets)">http://example.com/url_with_(brackets)</a>
4188 External links: No preceding word characters allowed (bug 65278)
4190 NOPEhttp://example.com
4191 N0http://example.com
4192 ok:http://example.com
4193 ok-http://example.com
4195 <p>NOPEhttp://example.com
4196 N0http://example.com
4197 ok:<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4198 ok-<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4205 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4207 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
4212 External image from https
4214 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4216 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
4221 External image (when not allowed)
4223 wgAllowExternalImages=0
4225 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4227 <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>
4232 Link to non-http image, no img tag
4234 Link to non-http image, no img tag: ftp://example.com/test.jpg
4236 <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>
4241 External links: terminating separator
4243 Terminating separator: http://example.com/thing,
4245 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
4250 External links: intervening separator
4252 Intervening separator: http://example.com/1,2,3
4254 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
4259 External links: old bug with URL in query
4261 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
4263 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
4268 External links: old URL-in-URL bug, mixed protocols
4270 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
4272 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
4277 External links: URL in text
4279 URL in text: [http://example.com http://example.com]
4281 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4286 External links: Clickable images
4288 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
4290 <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>
4295 External links: raw ampersand
4297 Old & use: http://x&y
4299 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
4304 External links: encoded ampersand
4306 Old & use: http://x&y
4308 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
4311 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y">http://x&y</a></p>
4315 External links: encoded equals (bug 6102)
4317 http://example.com/?foo=bar
4319 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
4322 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a></p>
4326 ## Note that parsoid doesn't explicit mark autonumbered links, nor
4327 ## does it number them. As discussed in bug 53505, we can identify
4328 ## autonumbered links via CSS.
4332 External links: [raw ampersand]
4334 Old & use: [http://x&y]
4336 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
4339 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
4342 # note that parsoid html is identical to [raw ampersand] case; so html2wt
4343 # mode will return the [raw ampersand] wikitext
4345 External links: [encoded ampersand]
4347 parsoid=wt2html,wt2wt,html2html
4349 Old & use: [http://x&y]
4351 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
4354 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
4358 External links: [raw equals]
4360 [http://example.com/?foo=bar]
4362 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
4365 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
4368 # note that parsoid html is identical to [raw equals] case; so html2wt
4369 # mode will return the [raw equals] wikitext
4371 External links: [encoded equals] (bug 6102)
4373 parsoid=wt2html,wt2wt,html2html
4375 [http://example.com/?foo=bar]
4377 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
4380 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
4383 # xxx parsoid strips the IDN character, so the round-trip tests will
4384 # obviously fail and are disabled. --cscott
4386 External links: [IDN ignored character reference in hostname; strip it right off]
4388 parsoid=wt2html,wt2wt,html2html
4390 [http://e‌xample.com/]
4392 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
4395 <p><a rel="mw:ExtLink" href="http://example.com/"></a></p>
4398 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
4399 # Where an external link could easily circumvent the sanitization of the text of
4400 # a link like this (where an IDN-ignore character is in the URL somewhere), this
4401 # test demands a higher standard. That's a bit strange.
4405 # http://example.com -> [http://example.com|http://example.com]
4406 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
4408 # The first example is sanitized, but the second is not. Any security benefits
4409 # from this production are trivial to circumvent. Either remove this test and
4410 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
4411 # the test accordingly.
4415 # xxx parsoid strips the IDN character, so the round-trip tests will
4416 # obviously fail and are disabled. --cscott
4418 External links: IDN ignored character reference in hostname; strip it right off
4420 parsoid=wt2html,html2html
4422 http://e‌xample.com/
4424 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
4427 <p><a rel="mw:ExtLink" href="http://example.com/">http://example.com/</a></p>
4431 External links: www.jpeg.org (bug 554)
4435 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
4439 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4441 External links: URL within URL (original bug 2)
4443 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
4445 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
4448 <p><a rel="mw:ExtLink" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp"></a></p>
4452 BUG 361: URL inside bracketed URL
4454 [http://www.example.com/foo http://www.example.com/bar]
4456 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
4461 BUG 361: URL within URL, not bracketed
4463 http://www.example.com/foo?=http://www.example.com/bar
4465 <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>
4470 BUG 289: ">"-token in URL-tail
4472 http://www.example.com/<hello>
4474 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
4479 BUG 289: literal ">"-token in URL-tail
4481 http://www.example.com/<b>html</b>
4483 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
4488 BUG 289: ">"-token in bracketed URL
4490 [http://www.example.com/<hello> stuff]
4492 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
4497 BUG 289: literal ">"-token in bracketed URL
4499 [http://www.example.com/<b>html</b> stuff]
4501 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
4506 BUG 289: literal double quote at end of URL
4508 http://www.example.com/"hello"
4510 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
4515 BUG 289: literal double quote in bracketed URL
4517 [http://www.example.com/"hello" stuff]
4519 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
4524 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
4526 [http://www.example.com test]
4528 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
4533 External links: link text with spaces
4535 [http://www.example.com a b c]
4536 [http://www.example.com ''a'' ''b'']
4538 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
4539 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
4544 External links: wiki links within external link (Bug 3695)
4546 [http://example.com [[wikilink]] embedded in ext link]
4548 <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>
4551 <p><a rel="mw:ExtLink" href="http://example.com"></a><a rel="mw:WikiLink" href="./Wikilink" title="Wikilink">wikilink</a><span> embedded in ext link</span></p>
4555 BUG 787: Links with one slash after the url protocol are invalid
4559 [http:/example.com title]
4561 <p>http:/example.com
4562 </p><p>[http:/example.com title]
4567 Bracketed external links with template-generated invalid target
4569 [{{echo|http:/example.com}} title]
4571 <p>[http:/example.com title]
4576 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
4578 ''[http://example.com text'']
4579 [http://example.com '''text]'''
4580 ''Something [http://example.com in italic'']
4581 ''Something [http://example.com mixed''''', even bold]'''
4582 '''''Now [http://example.com both''''']
4584 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
4585 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
4586 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
4587 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
4588 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
4594 Bug 4781: %26 in URL
4596 http://www.example.com/?title=AT%26T
4598 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
4601 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a></p>
4604 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
4605 # % is actually legal in HTML5. Any change in output would need testing though.
4607 Bug 4781, 5267: %25 in URL
4609 http://www.example.com/?title=100%25_Bran
4611 <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>
4614 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a></p>
4618 Bug 4781, 5267: %28, %29 in URL
4620 http://www.example.com/?title=Ben-Hur_%281959_film%29
4622 <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>
4625 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">http://www.example.com/?title=Ben-Hur_%281959_film%29</a></p>
4630 Bug 4781: %26 in autonumber URL
4632 [http://www.example.com/?title=AT%26T]
4634 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
4637 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T"></a></p>
4641 Bug 4781, 5267: %26 in autonumber URL
4643 [http://www.example.com/?title=100%25_Bran]
4645 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
4648 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran"></a></p>
4652 Bug 4781, 5267: %28, %29 in autonumber URL
4654 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
4656 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
4659 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29"></a></p>
4664 Bug 4781: %26 in bracketed URL
4666 [http://www.example.com/?title=AT%26T link]
4668 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
4671 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">link</a></p>
4675 Bug 4781, 5267: %25 in bracketed URL
4677 [http://www.example.com/?title=100%25_Bran link]
4679 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
4684 Bug 4781, 5267: %28, %29 in bracketed URL
4686 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
4688 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
4691 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a></p>
4695 External link containing a period in the anchor. (bug 63947)
4697 [//foo.org/bar#baz. bang]
4699 [//foo.org/bar. bang]
4701 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4702 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4705 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4706 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4710 External link containing a single quote. (bug 63947)
4714 [//foo.org/bar'baz bang]
4716 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4717 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4720 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4721 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4726 External link containing a period in the anchor. (bug 63947)
4728 [//foo.org/bar#baz. bang]
4730 [//foo.org/bar. bang]
4732 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4733 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4736 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4737 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4741 External link containing a single quote. (bug 63947)
4745 [//foo.org/bar'baz bang]
4747 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4748 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4751 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4752 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4757 External link containing double-single-quotes in text '' (bug 4598 sanity check)
4759 Some [http://example.com/ pretty ''italics'' and stuff]!
4761 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
4766 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
4768 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
4770 <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>
4775 External link containing double-single-quotes with no space separating the url from text in italics
4777 [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]].]
4779 <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>
4782 <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> <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>.</p>
4784 <p><a rel="mw:ExtLink" href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm"><i>La muerte de Casagemas</i> (1901) en el sitio de </a><a rel="mw:WikiLink" href="./Museo_Picasso_(París)" title="Museo Picasso (París)">Museo Picasso</a><span>.</span></p>
4788 External link with comments in link text
4790 [http://www.google.com Google <!-- comment -->]
4792 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
4797 URL-encoding in URL functions (single parameter)
4799 {{localurl:Some page|amp=&}}
4801 <p>/index.php?title=Some_page&amp=&
4806 URL-encoding in URL functions (multiple parameters)
4808 {{localurl:Some page|q=?&=&}}
4810 <p>/index.php?title=Some_page&q=?&amp=&
4817 http://example.com/index.php?foozoid%5B%5D=bar
4819 http://example.com/index.php?foozoid[]=bar
4821 <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>
4822 </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>
4825 <p><a rel="mw:ExtLink" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a></p>
4827 <p><a rel="mw:ExtLink" href="http://example.com/index.php?foozoid[]=bar">http://example.com/index.php?foozoid[]=bar</a></p>
4831 IPv6 urls (bug 21261)
4835 http://[2404:130:0:1000::187:2]/index.php
4837 <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>
4842 Non-extlinks in brackets
4851 [{{echo|foo}} ''bar'']
4852 [{{echo|foo}}l's] errand
4853 [{{echo|foo}}l's errand]
4855 [url=http://example.com]
4868 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
4873 Percent encoding in external links
4875 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
4877 <p><a rel="nofollow" class="external text" href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a>
4880 <p><a rel="mw:ExtLink"
4881 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
4885 Use url link syntax for links where the content is equal the link target
4889 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4892 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
4896 Parenthesis in external links, especially URL links
4900 http://example.com/test)
4902 http://example.com/(test)
4904 http://example.com/((test)
4906 (http://example.com/(test))
4908 (http://example.com/(test)))))
4910 http://example.com/a)b
4912 [http://example.com) foo]
4914 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4915 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
4916 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</a>
4917 </p><p><a rel="nofollow" class="external free" href="http://example.com/((test)">http://example.com/((test)</a>
4918 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test))">http://example.com/(test))</a>
4919 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test)))))">http://example.com/(test)))))</a>
4920 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
4921 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
4924 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
4925 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
4926 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</a></p>
4927 <p><a rel="mw:ExtLink" href="http://example.com/((test)">http://example.com/((test)</a></p>
4928 <p>(<a rel="mw:ExtLink" href="http://example.com/(test))">http://example.com/(test))</a></p>
4929 <p>(<a rel="mw:ExtLink" href="http://example.com/(test)))))">http://example.com/(test)))))</a></p>
4930 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
4931 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
4935 Parenthesis in external links, w/ transclusion or comment
4937 (http://example.com/{{echo|hi}})
4939 (http://example.com<!-- hi -->)
4941 <p>(<a rel="nofollow" class="external free" href="http://example.com/hi">http://example.com/hi</a>)
4942 </p><p>(<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4945 <p>(<a typeof="mw:ExpandedAttrs" about="#mwt2" rel="mw:ExtLink" href="http://example.com/hi" data-parsoid='{"stx":"url","a":{"href":"http://example.com/hi"},"sa":{"href":"http://example.com/{{echo|hi}}"}}' data-mw='{"attribs":[[{"txt":"href"},{"html":"http://example.com/<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[20,31,null,null]}\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&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;hi&quot;}},&quot;i&quot;:0}}]}\">hi</span>"}]]}'>http://example.com/hi</a>)</p>
4947 <p>(<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url","a":{"href":"http://example.com"},"sa":{"href":"http://example.com<!-- hi -->"}}'>http://example.com</a>)</p>
4951 Replace invalid link targets when serializing
4955 <a rel="mw:WikiLink" href="./]] foo [[bar">Manual</a>
4957 [[MediaWiki:Badtitletext|Manual]]
4967 Normal text. '''Bold text.''' Normal text. ''Italic text.''
4969 Normal text. '''''Bold italic text.''''' Normal text.
4971 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
4972 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
4977 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
4978 # parser strips. The wikitext contains just the first half of the bold
4981 Unclosed and unmatched quotes
4983 '''''Bold italic text '''with bold deactivated''' in between.'''''
4985 '''''Bold italic text ''with italic deactivated'' in between.'''''
4989 ..spanning two paragraphs (should not work).'''
4991 '''Bold tag left open
4993 ''Italic tag left open
4997 <!-- Unmatching number of opening, closing tags: -->
4998 '''This year''''s election ''should'' beat '''last year''''s.
5000 ''Tom'''s car is bigger than ''Susan'''s.
5002 Plain ''italic'''s plain
5004 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
5005 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
5006 </p><p><b>Bold text..</b>
5007 </p><p>..spanning two paragraphs (should not work).
5008 </p><p><b>Bold tag left open</b>
5009 </p><p><i>Italic tag left open</i>
5011 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
5012 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
5013 </p><p>Plain <i>italic'</i>s plain
5016 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
5017 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
5018 </p><p><b>Bold text..</b>
5019 </p><p>..spanning two paragraphs (should not work).<b></b>
5020 </p><p><b>Bold tag left open</b>
5021 </p><p><i>Italic tag left open</i>
5023 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
5024 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
5025 </p><p>Plain <i>italic'</i>s plain
5032 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
5035 # This should not produce <table></table> as <table><tr><td></td></tr></table>
5036 # is the bare minimum required by the spec, see:
5037 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
5038 # Parsoid team replies: empty table tags are legal in HTML5
5040 A table with no data.
5053 A table with stray table end tags on start tag line (wt2html)
5057 {|style="color: red;"|}
5059 {|style="color: red;" |}
5063 {|style="color: red;"|} id="foo"
5067 {|style="color: red;" |} id="foo"
5071 <table style="color: red;"></table>
5073 <table style="color: red;">
5079 <table style="color: red;" id="foo">
5085 <table style="color: red;" id="foo">
5094 A table with no data (take 2)
5102 # A table with nothing but a caption is invalid XHTML, we might want to render
5103 # this as <p>caption</p>
5104 # Parsoid team replies: table with only a caption is legal in HTML5
5106 A table with nothing but a caption
5114 </caption><tr><td></td></tr></table>
5117 <table><caption> caption</caption></table>
5121 A table with caption with default-spaced attributes and a table row
5124 |+ style="color: red;" | caption1
5130 <caption style="color: red;"> caption1
5139 A table with captions with non-default spaced attributes and a table row
5142 |+style="color: red;"|caption2
5143 |+ style="color: red;"| caption3
5149 <caption style="color: red;">caption2
5151 <caption style="color: red;"> caption3
5160 Table td-cell syntax variations
5164 | foo bar foo || baz
5165 | style='color:red;' | baz
5166 | style='color:red;' || baz
5173 <td> foo bar foo </td>
5176 <td style="color:red;"> baz
5178 <td> style='color:red;' </td>
5206 Simple table but with multiple dashes for row wikitext
5224 Multiplication table
5226 {| border="1" cellpadding="2"
5227 |+Multiplication table
5229 ! × !! 1 !! 2 !! 3
5247 <table border="1" cellpadding="2">
5248 <caption>Multiplication table
5295 Accept "||" in table headings
5310 Accept "!!" in table data
5324 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'> Foo!! </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'></td></tr>
5329 Accept "||" in indented table headings
5339 </th></tr></table></dd></dl>
5344 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
5361 Accept "| !" at start of line in tables (ignore !-attribute)
5365 | !style="color:red" | bar
5377 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 +/-
5381 |style='color:red;'|+1
5382 |style='color:blue;'|-1
5394 <td style="color:red;">+1
5396 <td style="color:blue;">-1
5420 |rowspan=2| Cell 2, row 1 (and 2)
5431 <td rowspan="2"> Cell 2, row 1 (and 2)
5449 {| bgcolor=#ABCDEF border=2
5454 |the original table again
5462 <table bgcolor="#ABCDEF" border="2">
5470 <td>the original table again
5476 Invalid attributes in table cell (bug 1830)
5490 # The "|}" to close the table is missing from the input, so parsoid's
5491 # *2wt modes will fail.
5493 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
5495 parsoid=wt2html,html2html
5498 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
5502 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
5503 <td>]" onmouseover="alert(document.cookie)">test
5511 <td><a rel="mw:ExtLink" href="ftp://|x||"></a>" onmouseover="alert(document.cookie)">test</td></tr></tbody></table>
5516 Indented table markup mixed with indented pre content (proposed in bug 6200)
5521 Text that should be rendered preformatted
5529 <pre>Text that should be rendered preformatted
5538 Template-generated table cell attributes and cell content
5543 | <!--foo--> <!--bar--> <!--baz--> {{table_attribs}}
5544 |align=center {{table_attribs}}
5545 | <!--foo--> align=center <!--bar--> {{table_attribs}}
5550 <td style="color: red"> Foo
5552 <td style="color: red"> Foo
5554 <td style="color: red"> Foo
5556 <td align="center" style="color: red"> Foo
5558 <td align="center" style="color: red"> Foo
5564 Template-generated table cell attributes and cell content (2)
5567 |align=center {{table_cells}}
5572 <td align="center" style="color: red"> Foo </td>
5580 Table with row followed by newlines and table heading
5598 Table with empty line following the start tag
5615 # FIXME: Preserve the attribute properly (with an empty string as value) in
5616 # the PHP parser. Parsoid implements the behavior below.
5618 Table attributes with empty value
5628 </td></tr></tbody></table>
5633 Wikitext table with a lot of comments
5656 Wikitext table with double-line table cell
5673 Table cell with a single comment
5690 Table-cell after a comment-only-empty-line
5707 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>a</td>
5709 <!--c2--><td data-parsoid='{"autoInsertedEnd":true}'> b</td></tr>
5715 Build table with {{!}}
5717 {{{!}} class="wikitable"
5720 {{!}}- style="color:red;"
5721 {{!}} data {{!}}{{!}} style="color:red;" {{!}} second data
5724 <table class="wikitable">
5730 <tr style="color:red;">
5732 <td style="color:red;"> second data
5738 Build table with pipe as data
5740 {| class="wikitable"
5743 |- style="color:red;"
5744 | data || style="color:red;" | second data
5746 | style="color:red;" | data with | || style="color:red;" | second data with |
5748 || data with | ||| second data with |
5751 <table class="wikitable">
5757 <tr style="color:red;">
5759 <td style="color:red;"> second data
5762 <td style="color:red;"> data with | </td>
5763 <td style="color:red;"> second data with |
5766 <td> data with | </td>
5767 <td> second data with |
5773 Build table with wikilink
5775 {| class="wikitable"
5776 ! header || second header
5777 |- style="color:red;"
5778 | data [[Main Page|linktext]] || second data [[Main Page|linktext]]
5780 | data || second data [[Main Page|link|text with pipe]]
5783 <table class="wikitable">
5788 <tr style="color:red;">
5789 <td> data <a href="/wiki/Main_Page" title="Main Page">linktext</a> </td>
5790 <td> second data <a href="/wiki/Main_Page" title="Main Page">linktext</a>
5794 <td> second data <a href="/wiki/Main_Page" title="Main Page">link|text with pipe</a>
5799 # The expected HTML structure in this test is debatable. The PHP parser does
5800 # not parse this kind of table at all. The main focus for Parsoid is on
5801 # round-tripping, so this output is ok for now. TODO: revisit!
5803 Wikitext table with html-syntax row
5813 <td>foo</td></tr></tbody></table>
5816 ## Note that Parsoid output differs from PHP and PHP+tidy here.
5817 ## The lack of <tr> tags in the PHP output is arguably a bug in the
5818 ## PHP parser, which tidy then compounds by fostering the content
5819 ## entirely out of the table. Parsoid recognizes the table context
5820 ## and generates <tr> and <td> wrappers as needed. Hopefully nobody
5821 ## depends on PHP's treatment of broken table markup!
5823 Implicit <td> after a |-
5825 parsoid=wt2html,html2html
5845 # Again, Parsoid adds implicit <td>s here, PHP and Tidy strip the b out.
5847 <pre> tags should be recognized in an explicit <td> context, but not in an implicit <td> context
5849 parsoid=wt2html,html2html
5882 <tr><td><pre>a</pre></td></tr>
5883 <tr><td> b</td></tr>
5888 # PHP + Tidy strips the list out of the table; Parsoid wraps it.
5889 # Parsoid generates the missing <td>, so wt2wt won't succeed.
5891 Lists should be recognized in an implicit <td> context
5893 parsoid=wt2html,html2html
5920 Parsoid: Round-trip tables directly followed by content (bug 51219)
5922 parsoid=wt2html,wt2wt
5947 Parsoid: Default to a newline after tables in new content (bug 51219)
5954 <nowiki> </nowiki>bar
5961 <tr><td>foo</td></tr></tbody></table> bar
5963 <tr><td>baz</td></tr></tbody></table><b>quux</b>
5967 Parsoid: newline inducing block nodes don't suppress <nowiki>
5979 Parsoid: Row-syntax table headings followed by comment & table cells
5981 parsoid=wt2html,wt2wt
5985 <!-- foo --> || baz || quux
5999 <tbody><tr><th> foo </th><th> bar
6000 <!-- foo --> </th><td> baz </td><td> quux</td></tr>
6005 # PHP throws away the (semi-broken) "foo" class here; Parsoid
6008 Parsoid: Recover better from broken table attributes
6028 <p>foo</p></td></tr>
6033 Strip unsupported table tags
6084 Plain link, capitalized
6088 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6093 Plain link, uncapitalized
6097 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
6104 [[Main Page|The Main Page]]
6106 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
6111 Piped link with comment in link text
6113 [[Main Page|The Main<!--front--> Page]]
6115 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
6120 Piped link with multiple pipe characters in link text
6122 [[Main Page||The|Main|Page|]]
6124 <p><a href="/wiki/Main_Page" title="Main Page">|The|Main|Page|</a>
6127 <p><a rel="mw:WikiLink" href="Main_Page" title="Main Page">|The|Main|Page|</a></p>
6135 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
6140 Broken link with fragment
6142 [[Zigzagzogzagzig#zug]]
6144 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
6149 Special page link with fragment
6151 [[Special:Version#anchor]]
6153 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
6158 Nonexistent special page link with fragment
6160 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
6162 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
6169 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
6171 <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>
6178 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
6180 <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>!!!
6191 Bug 43661: Piped links with identical prefixes
6193 [[prefixed article|prefixed articles with spaces]]
6195 [[prefixed article|prefixed articlesaoeu]]
6197 [[Main Page|Main Page test]]
6199 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
6200 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
6201 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
6207 Link with HTML entity in suffix / tail
6209 [[Main Page]]", [[Main Page]]a
6211 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
6216 Link with 3 brackets
6225 Link with 4 brackets
6229 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
6234 Piped link with 3 brackets
6236 [[[main page|the main page]]]
6238 <p>[[[main page|the main page]]]
6243 Piped link with extlink-like text
6246 [[Main Page|This is a [bar]]]
6248 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
6249 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
6254 Link with multiple pipes
6256 [[Main Page|The|Main|Page]]
6258 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
6262 # Note that parsoid does not munge anchor text; all non-space
6263 # characters are valid in HTML5 ids.
6265 Anchor containing a #. (bug 63430)
6267 [[Main Page#And#Link]]
6269 <p><a href="/wiki/Main_Page#And.23Link" title="Main Page">Main Page#And#Link</a>
6272 <p><a rel="mw:WikiLink" href="./Main_Page#And%23Link" title="Main Page">Main Page#And#Link</a></p>
6278 [[Talk:Parser testing]], [[Meta:Disclaimers]]
6280 <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>
6285 Link with space in namespace
6287 [[User talk:Foo bar]]
6289 <p><a href="/index.php?title=User_talk:Foo_bar&action=edit&redlink=1" class="new" title="User talk:Foo bar (page does not exist)">User talk:Foo bar</a>
6294 MemoryAlpha:AlphaTest
6296 This is an article in the MemoryAlpha namespace
6297 (which shadows the memoryalpha interwiki link).
6301 Namespace takes precedence over interwiki link (bug 51680)
6303 [[MemoryAlpha:AlphaTest]]
6305 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
6309 # The previous test doesn't work correctly in html2*, due to not recognizing the
6310 # link as an internal one. This one checks for the correct behavior.
6312 Link to namespace preferred over interwiki with correct rel attribute
6314 parsoid=html2wt,html2html
6316 [[MemoryAlpha:AlphaTest]]
6318 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
6323 Piped link to namespace
6325 [[Meta:Disclaimers|The disclaimers]]
6327 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
6334 [[Usually caused by a typo (oops}]]
6336 <p>[[Usually caused by a typo (oops}]]
6343 Just a test of an article title containing a percent.
6347 Link containing % (not as a hex sequence)
6351 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
6354 <p><a rel="mw:WikiLink" href="./7%25_Solution" title="7% Solution">7% Solution</a></p>
6357 # note that the parsoid HTML is identical to the previous test output,
6358 # so the previous test ensures that the html2wt mode will generate the
6359 # "not as a hex sequence" wikitext.
6361 Link containing % as a single hex sequence interpreted to char
6363 parsoid=wt2wt,wt2html,html2html
6367 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
6370 <p><a rel="mw:WikiLink" href="./7%25_Solution" title="7% Solution">7% Solution</a></p>
6374 Link containing % as a double hex sequence interpreted to hex sequence
6378 <p>[[7%2525 Solution]]
6382 # note that parsoid does not munge anchor text; all non-space
6383 # characters are valid in HTML5 anchors.
6385 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
6386 Example for such a section: == < ==
6388 [[%23%3c]][[%23%3e]]
6390 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
6393 <p><a rel="mw:WikiLink" href="./Main%20Page#%3C" title="Main Page">#<</a><a rel="mw:WikiLink" href="./Main%20Page#%3E" title="Main Page">#></a></p>
6397 Link containing "<#" and ">#" as a hex sequences
6399 [[%3c%23]][[%3e%23]]
6401 <p>[[%3c%23]][[%3e%23]]
6406 Link containing an equals sign
6408 [[Special:BookSources/isbn=4-00-026157-6]]
6410 <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>
6413 <p><a rel="mw:WikiLink" href="./Special:BookSources/isbn=4-00-026157-6" title="Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a></p>
6419 Just a test of an article title containing a tilde.
6422 # note that links containing signatures, like [[Foo~~~~]], are
6423 # massaged by the pre-save transform (PST) and so the tildes are never
6424 # seen by the parser.
6426 Link containing a tilde
6430 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
6433 <p><a rel="mw:WikiLink" href="./Foo~bar" title="Foo~bar">Foo~bar</a></p>
6437 Link containing double-single-quotes '' (bug 4598)
6439 [[Lista d''e paise d''o munno]]
6441 <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>
6444 <p><a rel="mw:WikiLink" href="./Lista_d''e_paise_d''o_munno" title="Lista d''e paise d''o munno">Lista d''e paise d''o munno</a></p>
6448 Link containing double-single-quotes '' in text (bug 4598 sanity check)
6450 Some [[Link|pretty ''italics'' and stuff]]!
6452 <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>!
6455 <p>Some <a rel="mw:WikiLink" href="Link" title="Link">pretty <i>italics</i> and stuff</a>!</p>
6459 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
6461 ''Some [[Link|pretty ''italics'' and stuff]]!''
6463 <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>
6468 Link with double quotes in title part (literal) and alternate part (interpreted)
6470 [[File:Denys_Savchenko_''Pentecoste''.jpg]]
6474 [[''Pentecoste''|Pentecoste]]
6476 [[''Pentecoste''|''Pentecoste'']]
6478 <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>
6479 </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>
6480 </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>
6481 </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>
6484 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="./File:Denys_Savchenko_''Pentecoste''.jpg"><img resource="./File:Denys_Savchenko_''Pentecoste''.jpg" src="./Special:FilePath/Denys_Savchenko_''Pentecoste''.jpg" height="220" width="220"/></a></span></p>
6485 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''">''Pentecoste''</a></p>
6486 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''">Pentecoste</a></p>
6487 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''"><i>Pentecoste</i></a></p>
6491 Broken image links with HTML captions (bug 39700)
6493 [[File:Nonexistent|<script></script>]]
6494 [[File:Nonexistent|100x100px|<script></script>]]
6495 [[File:Nonexistent|<]]
6496 [[File:Nonexistent|a<i>b</i>c]]
6498 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
6499 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
6500 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
6501 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
6504 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"<script></script>"}'><a href="./File:Nonexistent"><img resource="./File:Nonexistent" src="./Special:FilePath/Nonexistent" height="220" width="220"/></a></span>
6505 <span typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"<script></script>"}'><a href="./File:Nonexistent" data-parsoid='{"a":{"href":"./File:Nonexistent"},"sa":{}}'><img resource="./File:Nonexistent" src="./Special:FilePath/Nonexistent" height="100" width="100"/></a></span>
6506 <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"&lt;"}'><a href="./File:Nonexistent"><img resource="./File:Nonexistent" src="./Special:FilePath/Nonexistent" height="220" width="220"/></a></span>
6507 <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"a<i>b</i>c"}'><a href="./File:Nonexistent"><img resource="./File:Nonexistent" src="./Special:FilePath/Nonexistent" height="220" width="220"/></a></span></p>
6513 [[http://www.example.com]]
6515 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
6518 <p>[<a rel="mw:ExtLink" href="http://www.example.com"></a>]</p>
6522 Plain link to URL with link text
6524 [[http://www.example.com Link text]]
6526 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
6531 Plain link to protocol-relative URL
6533 [[//www.example.com]]
6535 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
6538 <p>[<a rel="mw:ExtLink" href="//www.example.com"></a>]</p>
6542 Plain link to protocol-relative URL with link text
6544 [[//www.example.com Link text]]
6546 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
6551 Plain link to page with question mark in title
6557 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
6558 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
6563 # I'm fairly sure the expected result here is wrong.
6564 # We want these to be URL links, not pseudo-pages with URLs for titles....
6565 # However the current output is also pretty screwy.
6568 # I'm changing it to match the current output--it arguably makes more
6569 # sense in the light of the test above. Old expected result was:
6570 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
6572 # But I think this test is bordering on "garbage in, garbage out" anyway.
6577 Piped link to URL: [[http://www.example.com|an example URL]]
6579 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
6582 <p>Piped link to URL: [<a rel="mw:ExtLink" href="http://www.example.com|an">example URL</a>]</p>
6586 BUG 2: [[page|http://url/]] should link to page, not http://url/
6588 [[Main Page|http://url/]]
6590 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
6593 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">http://url/</a></p>
6596 # Parsoid does not mark self-links, by design.
6598 BUG 337: Escaped self-links should be bold
6602 [[Bug462]] [[Bug462]]
6604 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
6607 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong></p>
6609 <p><a rel="mw:WikiLink" href="./Bug462" title="Bug462">Bug462</a> <a rel="mw:WikiLink" href="./Bug462" title="Bug462">Bug462</a></p>
6613 Self-link to section should not be bold
6617 [[Main Page#section]]
6619 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
6630 Self-link to numeric title
6636 <p><strong class="selflink">0</strong>
6641 Link to numeric-equivalent title
6647 <p><a href="/wiki/00" title="00">00</a>
6652 <nowiki> inside a link
6654 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
6656 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
6661 Non-breaking spaces in title
6663 [[ Main Page ]]
6665 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
6670 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
6676 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
6681 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
6687 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
6692 Internal link with en linktrail: no apostrophes (bug 27473)
6698 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
6703 Internal link with ca linktrail with apostrophes (bug 27473)
6709 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
6714 Internal link with kaa linktrail with apostrophes (bug 27473)
6720 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
6725 Link with multiple ":" in a subpage-supporting namespace (bug 63636)
6727 [[User:Foo/Test/63636:Bar|Test]]
6729 <p><a href="/index.php?title=User:Foo/Test/63636:Bar&action=edit&redlink=1" class="new" title="User:Foo/Test/63636:Bar (page does not exist)">Test</a>
6732 <p><a rel="mw:WikiLink" href="./User:Foo/Test/63636:Bar" title="User:Foo/Test/63636:Bar">Test</a></p>
6736 Purely hash wikilink
6738 title=[[User:test/123]]
6742 <p><a href="#a">b</a>
6745 <p><a rel="mw:WikiLink" href="../User:Test/123#a" data-parsoid='{"stx":"piped","a":{"href":"../User:Test/123#a"},"sa":{"href":"#a"}}'>b</a></p>
6749 1. Interaction of linktrail and template encapsulation
6755 <p><a rel="mw:WikiLink" href="Foo" title="Foo" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[[Foo]]"}},"i":0}},"l"]}'>Fool</a></p>
6759 2. Interaction of linktrail and template encapsulation
6763 {{echo|Some [[Fool]]}}s
6765 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Some [[Fool]]"}},"i":0}},"s"]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>Some </span><a rel="mw:WikiLink" href="./Fool" title="Fool" about="#mwt1" data-parsoid='{"stx":"simple","a":{"href":"./Fool"},"sa":{"href":"Fool"},"tail":"s"}'>Fools</a></p>
6769 3. Interaction of linktrail and template encapsulation
6773 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
6775 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Some [[Fool]]s are '''bold and foolish'''"}},"i":0}}]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>Some <a rel="mw:WikiLink" href="./Fool" title="Fool" data-parsoid='{"stx":"simple","a":{"href":"./Fool"},"sa":{"href":"Fool"},"tail":"s"}'>Fools</a> are <b>bold and foolish</b></p>
6785 Internal link with is link prefix
6789 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
6791 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
6802 Internal link with is link trail and link prefix
6806 [[mótmælendatrú|xxx]]ar
6808 mótmælenda[[söfnuður]]
6809 mótmælenda[[söfnuður|söfnuðir]]
6810 mótmælenda[[söfnuður|söfnuðir]]xxx
6812 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
6813 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
6814 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
6815 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
6816 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
6821 Parsoid link trail escaping
6823 parsoid=html2wt,html2html
6827 <p><a rel="mw:WikiLink" href="Apple" title="Apple">apple</a>s</p>
6831 Parsoid link prefix escaping
6834 parsoid=html2wt,html2html
6836 Aðrir mótmælenda<nowiki/>[[söfnuður]]
6838 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður" title="Söfnuður">söfnuður</a></p>
6842 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
6850 [http://wp.org ''foo'']
6852 <p><a href="/wiki/Foo" title="Foo"> bar</a>
6853 </p><p><a href="/wiki/Foo" title="Foo"> <i>bar</i></a>
6854 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
6855 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
6860 Parsoid: Scoped parsing should handle mixed transclusions and plain text
6864 [[Foo|{{echo|a}} b {{echo|c}}]]
6866 <p><a rel="mw:WikiLink" href="Foo" title="Foo"><span about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a"}},"i":0}}]}'>a</span> b <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"c"}},"i":0}}]}'>c</span></a></p>
6870 Link with angle bracket after anchor
6874 <p><a href="/wiki/Foo#.3Cbar.3E" title="Foo">Foo#<bar></a>
6877 <p><a rel="mw:WikiLink" href="./Foo#%3Cbar%3E" title="Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo#%3Cbar%3E"},"sa":{"href":"Foo#<bar>"}}'>Foo#<bar></a></p>
6881 ### Interwiki links (see maintenance/interwiki.sql)
6885 Inline interwiki link
6887 parsoid=wt2html,wt2wt,html2html
6889 [[MeatBall:SoftSecurity]]
6891 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
6894 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a></p>
6898 Inline interwiki link with empty title (bug 2372)
6900 parsoid=wt2html,wt2wt,html2html
6904 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
6907 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?" title="meatball:">MeatBall:</a></p>
6911 Interwiki link encoding conversion (bug 1636)
6913 *[[Wikipedia:ro:Olteniţa]]
6914 *[[Wikipedia:ro:Olteniţa]]
6916 <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></li>
6917 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a></li></ul>
6921 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a></li>
6922 <li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a></li>
6927 Interwiki link with fragment (bug 2130)
6929 [[MeatBall:SoftSecurity#foo]]
6931 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
6935 # Ideally the wikipedia: prefix here should be proto-relative too
6936 # [CSA]: this is kind of a bogus test, as the PHP parser test doesn't
6937 # define the 'en' prefix, and originally the test used 'wikipedia',
6938 # which isn't a localinterwiki prefix hence the links to the 'en:Foo'
6941 Different interwiki prefixes mapping to the same URL
6949 [[:wikipedia:Foo|Foo]]
6951 [[wikipedia:en:Foo]]
6953 [[:wikipedia:en:Foo]]
6957 <p><a rel="mw:ExtLink" href="//en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"simple","a":{"href":"//en.wikipedia.org/wiki/Foo"},"sa":{"href":":en:Foo"},"isIW":true}' title="en:Foo">en:Foo</a></p>
6959 <p><a rel="mw:ExtLink" href="//en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"piped","a":{"href":"//en.wikipedia.org/wiki/Foo"},"sa":{"href":":en:Foo"},"isIW":true}' title="en:Foo">Foo</a></p>
6961 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"simple","a":{"href":"http://en.wikipedia.org/wiki/Foo"},"sa":{"href":"wikipedia:Foo"},"isIW":true}' title="wikipedia:Foo">wikipedia:Foo</a></p>
6963 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"piped","a":{"href":"http://en.wikipedia.org/wiki/Foo"},"sa":{"href":":wikipedia:Foo"},"isIW":true}' title="wikipedia:Foo">Foo</a></p>
6965 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/en:Foo" data-parsoid='{"stx":"simple","a":{"href":"http://en.wikipedia.org/wiki/en:Foo"},"sa":{"href":"wikipedia:en:Foo"},"isIW":true}' title="wikipedia:en:Foo">wikipedia:en:Foo</a></p>
6967 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/en:Foo" data-parsoid='{"stx":"simple","a":{"href":"http://en.wikipedia.org/wiki/en:Foo"},"sa":{"href":":wikipedia:en:Foo"},"isIW":true}' title="wikipedia:en:Foo">wikipedia:en:Foo</a></p>
6969 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"simple","a":{"href":"http://en.wikipedia.org/wiki/Foo"},"sa":{"href":" wikiPEdia :Foo"},"isIW":true}' title="wikipedia:Foo"> wikiPEdia :Foo</a></p>
6973 Interwiki links that cannot be represented in wiki syntax
6976 [[meatball:ok#foo|ok with fragment]]
6977 [[meatball:ok_as_well?|ok ending with ? mark]]
6978 [http://de.wikipedia.org/wiki/Foo?action=history has query]
6979 [http://de.wikipedia.org/wiki/#foo is just fragment]
6982 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?ok" class="extiw" title="meatball:ok">meatball:ok</a>
6983 <a href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo" class="extiw" title="meatball:ok">ok with fragment</a>
6984 <a href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well%3F" class="extiw" title="meatball:ok as well?">ok ending with ? mark</a>
6985 <a rel="nofollow" class="external text" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
6986 <a rel="nofollow" class="external text" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a>
6989 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok" title="meatball:ok">meatball:ok</a>
6990 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo" title="meatball:ok">ok with fragment</a>
6991 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok_as_well?" title="meatball:ok as well?">ok ending with ? mark</a>
6992 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
6993 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
6997 Interwiki links: trail
6999 [[wikipedia:Foo|Ba]]r
7001 <p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo">Bar</a>
7004 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" data-parsoid='{"stx":"piped","a":{"href":"http://en.wikipedia.org/wiki/Foo"},"sa":{"href":"wikipedia:Foo"},"isIW":true,"tail":"r"}' title="wikipedia:Foo">Bar</a></p>
7008 Local interwiki link
7010 parsoid=wt2html,wt2wt,html2html
7012 [[local:Template:Foo]]
7014 <p><a href="/wiki/Template:Foo" title="Template:Foo">local:Template:Foo</a>
7017 <p><a rel="mw:WikiLink" href="./Template:Foo" title="Template:Foo">local:Template:Foo</a></p>
7020 # Parsoid does not mark self-links, by design.
7022 Local interwiki link: self-link to current page
7025 parsoid=wt2html,wt2wt,html2html
7029 <p><strong class="selflink">local:Main Page</strong>
7032 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">local:Main Page</a></p>
7036 Local interwiki link: prefix only (bug 64167)
7038 parsoid=wt2html,wt2wt,html2html
7042 <p><a href="/wiki/Main_Page" title="Main Page">local:</a>
7045 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">local:</a></p>
7049 Local interwiki link: with additional interwiki prefix (bug 61357)
7051 parsoid=wt2html,wt2wt,html2html
7053 [[local:meatball:Hello]]
7055 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?Hello" class="extiw" title="meatball:Hello">local:meatball:Hello</a>
7058 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?Hello" title="meatball:Hello">local:meatball:Hello</a></p>
7062 Multiple local interwiki link prefixes
7064 [[local:local:local:local:mi:local:Foo]]
7066 parsoid=wt2html,wt2wt,html2html
7068 <p><a href="/wiki/Foo" title="Foo">local:local:local:local:mi:local:Foo</a>
7071 <p><a rel="mw:WikiLink" href="./Foo" title="Foo">local:local:local:local:mi:local:Foo</a></p>
7075 ### Interlanguage links
7076 ### Language links (so that searching for '### language' matches..)
7082 parsoid=wt2html,wt2wt,html2html
7090 <p>Blah blah blah</p>
7091 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7095 Interlanguage link with spacing
7097 parsoid=wt2html,wt2wt,html2html
7105 <p>Blah blah blah</p>
7106 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7110 Double interlanguage link
7112 parsoid=wt2html,wt2wt,html2html
7121 <p>Blah blah blah</p>
7122 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish"/>
7123 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7127 Interlanguage link variations
7129 parsoid=wt2html,wt2wt,html2html
7140 <p>Blah blah blah</p>
7141 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish" />
7142 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese" />
7143 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Foo_bar" />
7144 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Foo_bar" />
7148 Interlanguage link, with prefix links
7158 <p>Blah blah blah</p>
7159 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7163 Double interlanguage link, with prefix links (bug 8897)
7174 <p>Blah blah blah</p>
7175 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish"/>
7176 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7180 "Extra" interlanguage links (bug 32189 / gerrit 111390)
7188 <p>Blah blah blah</p>
7189 <link rel="mw:PageProp/Language" title="Multilingual" href="http://wikisource.org/wiki/Article"/>
7193 Parsoid-specific test: Wikilinks with should RT properly
7199 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
7204 Parsoid bug 53221: Wikilinks should be properly entity-escaped
7208 He&nbsp;llo [[Foo|He&nbsp;llo]]
7210 He&nbsp;llo [[He&nbsp;llo]]
7212 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
7213 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
7217 Parsoid: handle constructor well
7223 <p><a href="/index.php?title=Constructor&action=edit&redlink=1" class="new" title="Constructor (page does not exist)">constructor</a>
7224 </p><p><a href="/index.php?title=Constructor:foo&action=edit&redlink=1" class="new" title="Constructor:foo (page does not exist)">constructor:foo</a>
7227 <p><a rel="mw:WikiLink" href="./Constructor" title="Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
7229 <p><a rel="mw:WikiLink" href="./Foo" title="Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
7238 # Note that `ko` isn't a known interlanguage prefix
7240 Parsoid: recognize interlanguage links without a target page
7250 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/"/>
7252 <p><a rel="mw:WikiLink" href="./Ko:" title="Ko:">ko:</a></p>
7255 # Note that `ko` isn't a known interwiki prefix
7257 Parsoid: recognize interwiki links without a target page
7259 parsoid=wt2html,wt2wt,html2html
7265 <p><a href="http://es.wikipedia.org/wiki/" class="extiw" title="es:">es:</a>
7266 </p><p><a href="/wiki/Ko:" title="Ko:">ko:</a>
7269 <p><a rel="mw:ExtLink" href="http://es.wikipedia.org/wiki/" title="es:">es:</a></p>
7270 <p><a rel="mw:WikiLink" href="./Ko:" title="Ko:">ko:</a></p>
7274 Handle interwiki links pointing to the current wiki as plain wiki links (bug 45209)
7278 <p><a href="/wiki/Foo" title="Foo">mi:Foo</a>
7281 <p><a rel="mw:WikiLink" href="./Foo" title="Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"mi:Foo"}}'>mi:Foo</a></p>
7285 Interlanguage link with preceding local interwiki link (bug 68085)
7287 parsoid=wt2html,wt2wt,html2html
7290 [[local:es:Spanish]]
7293 <a href="http://es.wikipedia.org/wiki/Spanish" class="extiw" title="es:Spanish">local:es:Spanish</a>
7297 <a rel="mw:ExtLink" href="http://es.wikipedia.org/wiki/Spanish" title="es:Spanish">local:es:Spanish</a></p>
7301 Looks like an interlanguage link, but is actually a local interwiki
7303 parsoid=wt2html,wt2wt,html2html
7309 <a href="/wiki/Template:Foo" title="Template:Foo">mi:Template:Foo</a>
7313 <a rel="mw:WikiLink" href="Template:Foo" title="Template:Foo">mi:Template:Foo</a></p>
7317 ### Redirects, Parsoid-only
7320 1. Simple redirect to page
7324 #REDIRECT [[Main Page]]
7326 <link rel="mw:PageProp/redirect" href="./Main_Page">
7329 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
7331 2. Other redirect variants
7333 parsoid=wt2html,wt2wt
7335 #REDIRECT [[Main_Page]]
7336 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
7338 <link rel="mw:PageProp/redirect" href="./Main_Page"><link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
7344 parsoid=wt2html,wt2wt
7349 <li>REDIRECT [[]]</li></ol>
7353 Optional colon in #REDIRECT
7355 # the colon is archaic syntax. we support it for wt2html, but we
7356 # don't care that it roundtrips back to the modern syntax.
7357 parsoid=wt2html,html2html
7359 #REDIRECT:[[Main Page]]
7361 <link rel="mw:PageProp/redirect" href="./Main_Page">
7365 Whitespace in #REDIRECT with optional colon
7367 # the colon and gratuitous whitespace is archaic syntax. we support
7368 # it for wt2html, but we don't care that it roundtrips back to the
7369 # modern syntax (without extra whitespace)
7370 parsoid=wt2html,html2html
7377 <link rel="mw:PageProp/redirect" href="./Main_Page">
7381 Piped link in #REDIRECT
7383 # content after piped link is ignored. we support this syntax,
7384 # but don't care that the piped link is lost when we roundtrip this.
7387 #REDIRECT [[Main Page|bar]]
7389 <link rel="mw:PageProp/redirect" href="./Main_Page">
7393 Redirect to category
7397 #REDIRECT [[Category:Foo]]
7399 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7403 Redirect to category with URL encoding
7407 #REDIRECT [[Category%3AFoo]]
7409 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7413 Redirect to category page
7415 parsoid=wt2html,html2html
7417 #REDIRECT [[:Category:Foo]]
7419 <p><a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Category:Foo</a></p>
7423 Redirect to image page (1)
7427 #REDIRECT [[File:Wiki.png]]
7429 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7433 Redirect to image page (2)
7437 #REDIRECT [[Image:Wiki.png]]
7439 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7443 Redirect to language
7447 #REDIRECT [[en:File:Wiki.png]]
7449 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7453 Redirect to interwiki
7457 #REDIRECT [[meatball:File:Wiki.png]]
7459 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7463 Non-English #REDIRECT
7468 #TILVÍSUN [[Main Page]]
7470 <link rel="mw:PageProp/redirect" href="./Main_Page">
7481 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
7498 Broken br tag sanitization
7506 # TODO: Fix html2html mode (bug 51055)!
7507 # This </br> handling was added as part of bug 50831; but it
7508 # differs from how PHP+tidy handles this. We should investigate
7511 Parsoid: Broken br tag recognition
7527 Incorrecly removing closing slashes from correctly formed XHTML
7529 <br style="clear:both;" />
7531 <p><br style="clear:both;" />
7536 Failing to transform badly formed HTML into correct XHTML
7538 <br style="clear: left;">
7539 <br style="clear: right;">
7540 <br style="clear: both;">
7542 <p><br style="clear: left;" />
7543 <br style="clear: right;" />
7544 <br style="clear: both;" />
7548 ## FIXME: Is Parsoid's acceptance of self-closing html-tags
7549 ## a feature or a bug? See https://phabricator.wikimedia.org/T76962
7551 Handling html with a div self-closing tag
7560 <p><div title />
7564 <p><div title=bar />
7565 <div title=bar/>
7567 <div title="bar/"></div>
7571 <div title="" data-parsoid='{"stx":"html","selfClose":true}'></div>
7572 <div title="" data-parsoid='{"stx":"html","selfClose":true}'></div>
7573 <div title="" data-parsoid='{"stx":"html","selfClose":true,"brokenHTMLTag":true}'></div>
7574 <div title="bar" data-parsoid='{"stx":"html","selfClose":true}'></div>
7575 <div title="bar" data-parsoid='{"stx":"html","selfClose":true}'></div>
7576 <div title="bar/" data-parsoid='{"stx":"html","autoInsertedEnd":true}'></div>
7580 Handling html with a br self-closing tag
7589 <p><br title="title" />
7590 <br title="title" />
7607 Horizontal ruler (should it add that extra space?)
7622 Horizontal ruler -- 4+ dashes render hr
7631 Horizontal ruler -- eats additional dashes on the same line
7640 Horizontal ruler -- does not collapse dashes on consecutive lines
7651 Horizontal ruler -- <4 dashes render as plain text
7660 Horizontal ruler -- Supports content following dashes on same line
7672 ### Block-level elements
7681 <ul><li>Common list</li>
7683 <li>item 3</li></ul>
7694 <ol><li>Numbered list</li>
7696 <li> item 3</li></ol>
7710 ***#Number on level 4
7712 **#Number on level 3
7713 **#Number on level 3
7717 #** Level 3, but ordered
7720 <ol><li> with numbers</li></ol>
7721 <ul><li> and bullets</li></ul>
7722 <ol><li> and numbers</li></ol></li>
7724 <ul><li>bullet level 2
7725 <ul><li>bullet level 3
7726 <ol><li>Number on level 4</li></ol></li></ul></li>
7728 <ol><li>Number on level 3</li>
7729 <li>Number on level 3</li></ol></li></ul>
7730 <ol><li>number level 2</li></ol></li>
7732 <ul><li><ul><li> Level 3</li></ul></li></ul></li></ul>
7733 <ol><li><ul><li><ul><li> Level 3, but ordered</li></ul></li></ul></li></ol>
7744 <ul><li>bar</li></ul></li></ul>
7754 <ul><li><ul><li>foo</li></ul></li>
7760 Nested lists 3 (first element empty)
7766 <ul><li>bar</li></ul></li></ul>
7771 Nested lists 4 (first element empty)
7776 <ul><li><ul><li></li></ul></li>
7782 Nested lists 5 (both elements empty)
7787 <ul><li><ul><li></li></ul></li>
7793 Nested lists 6 (both elements empty)
7799 <ul><li></li></ul></li></ul>
7804 Nested lists 7 (skip initial nesting levels)
7808 <ul><li><ul><li><ul><li> foo</li></ul></li></ul></li></ul>
7813 Nested lists 8 (multiple nesting transitions)
7821 <ul><li><ul><li> bar</li></ul></li>
7822 <li> baz</li></ul></li>
7828 1. Lists with start-of-line-transparent tokens before bullets: Comments
7841 2. Lists with start-of-line-transparent tokens before bullets: Template close
7846 <ul><li>foo bar</li>
7852 List items are not parsed correctly following a <pre> block (bug 785)
7858 <ul><li> <pre>foo</pre></li>
7859 <li> <pre>bar</pre></li>
7865 List items from template
7876 * notSOL{{inner list}}
7879 <ul><li> item 1</li>
7880 <li> item 2</li></ul>
7881 <ul><li> item 0</li>
7883 <li> item 2</li></ul>
7884 <ul><li> item 0</li>
7887 <li> item 2</li></ul>
7892 List interrupted by empty line or heading
7900 <ul><li> foo</li></ul>
7901 <ul><li><ul><li> bar</li></ul></li></ul>
7902 <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>
7903 <ul><li> Another list item</li></ul>
7908 Multiple list tags generated by templates
7929 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
7932 <!--This line will NOT split the list-->
7934 <!--This line will NOT split the list either-->
7936 <!--foo--> <!----> <!--This line NOT split the list either-->
7947 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
7950 <!--This line will NOT split the list-->
7952 <!--This line will NOT split the list either-->
7954 <!--foo--> <!----> <!--This line NOT split the list
7967 (The PHP parser relies on Tidy for the hack)
7969 parsoid=wt2html,wt2wt
7973 * {{echo|<li>templated li-hack}}
7974 * <!--foo--> <li> unsupported li-hack with preceding comments
7977 <li><li>not a li-hack
7984 <li>templated li-hack</li>
7985 <li>unsupported li-hack with preceding comments</li>
7988 <li>not a li-hack</li>
7993 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
8020 Parsoid: Test of whitespace serialization with Templated bullets
8027 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
8031 # ------------------------------------------------------------------------
8032 # The next set of tests are about Parsoid's ability to handle badly nested
8033 # tags (parse, minimize scope of fixup, and roundtrip back)
8034 # ------------------------------------------------------------------------
8037 Unbalanced closing block tags break a list
8038 (php parser relies on Tidy to fix up)
8056 # Parsoid fails this test, but it might be tricky to support properly.
8059 Unbalanced closing non-block tags don't break a list
8060 (php parser relies on Tidy to fix up)
8067 <li><span>a</span></li>
8068 <li><span>b</span></li>
8082 Unclosed formatting tags that straddle lists are closed and reopened
8083 (php parser relies on Tidy to fix up)
8085 parsoid=wt2html,wt2wt,html2html
8095 <ol><li> <s> a</s></li>
8096 <li><s> b </s></li></ol>
8099 # Parsoid fails this test, but it might be tricky to support properly.
8102 List embedded in a non-block tag
8103 (Ugly Parsoid output -- worth fixing; PHP parser relies on Tidy)
8110 <li><small>foo</small></li>
8120 # This is a bug in the PHP parser + tidy combination.
8121 # (The </tr> tag gets parsed as text and html-escaped by PHP,
8122 # and then fostered out of the table by tidy.)
8123 # We believe the Parsoid output to be correct.
8125 Table with missing opening <tr> tag
8127 parsoid=wt2html,wt2wt
8152 # Note that the current date is hard-coded as
8153 # 1970-01-01T00:02:03Z (a Thursday)
8154 # when running parser tests. The timezone is also fixed to GMT, so
8155 # local date will be identical to current date.
8158 Magic Word: {{CURRENTDAY}}
8167 Magic Word: {{CURRENTDAY2}}
8176 Magic Word: {{CURRENTDAYNAME}}
8185 Magic Word: {{CURRENTDOW}}
8194 Magic Word: {{CURRENTMONTH}}
8203 Magic Word: {{CURRENTMONTH1}}
8212 Magic Word: {{CURRENTMONTHABBREV}}
8214 {{CURRENTMONTHABBREV}}
8221 Magic Word: {{CURRENTMONTHNAME}}
8223 {{CURRENTMONTHNAME}}
8230 Magic Word: {{CURRENTMONTHNAMEGEN}}
8232 {{CURRENTMONTHNAMEGEN}}
8239 Magic Word: {{CURRENTTIME}}
8248 Magic Word: {{CURRENTHOUR}}
8257 Magic Word: {{CURRENTWEEK}} (@bug 4594)
8266 Magic Word: {{CURRENTYEAR}}
8275 Magic Word: {{CURRENTTIMESTAMP}}
8277 {{CURRENTTIMESTAMP}}
8284 Magic Words LOCAL (UTC)
8288 * {{LOCALMONTHNAME}}
8289 * {{LOCALMONTHNAMEGEN}}
8290 * {{LOCALMONTHABBREV}}
8299 * {{LOCALTIMESTAMP}}
8314 <li> 19700101000203</li></ul>
8319 Magic Word: {{FULLPAGENAME}}
8321 title=[[User:Ævar Arnfjörð Bjarmason]]
8325 <p>User:Ævar Arnfjörð Bjarmason
8330 Magic Word: {{FULLPAGENAMEE}}
8332 title=[[User:Ævar Arnfjörð Bjarmason]]
8336 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8341 Magic Word: {{TALKSPACE}}
8343 title=[[User:Ævar Arnfjörð Bjarmason]]
8352 Magic Word: {{TALKSPACE}}, same namespace
8354 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8363 Magic Word: {{TALKSPACE}}, main namespace
8365 title=[[Parser Test]]
8374 Magic Word: {{TALKSPACEE}}
8376 title=[[User:Ævar Arnfjörð Bjarmason]]
8385 Magic Word: {{SUBJECTSPACE}}
8387 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8396 Magic Word: {{SUBJECTSPACE}}, same namespace
8398 title=[[User:Ævar Arnfjörð Bjarmason]]
8407 Magic Word: {{SUBJECTSPACE}}, main namespace
8409 title=[[Parser Test]]
8417 Magic Word: {{SUBJECTSPACEE}}
8419 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8428 Magic Word: {{NAMESPACE}}
8430 title=[[User:Ævar Arnfjörð Bjarmason]]
8439 Magic Word: {{NAMESPACEE}}
8441 title=[[User:Ævar Arnfjörð Bjarmason]]
8450 Magic Word: {{NAMESPACENUMBER}}
8452 title=[[User:Ævar Arnfjörð Bjarmason]]
8461 Magic Word: {{SUBPAGENAME}}
8463 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8472 Magic Word: {{SUBPAGENAMEE}}
8474 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8483 Magic Word: {{ROOTPAGENAME}}
8485 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8489 <p>Ævar Arnfjörð Bjarmason
8494 Magic Word: {{ROOTPAGENAMEE}}
8496 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8500 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8505 Magic Word: {{BASEPAGENAME}}
8507 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8511 <p>Ævar Arnfjörð Bjarmason
8516 Magic Word: {{BASEPAGENAMEE}}
8518 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8522 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8527 Magic Word: {{TALKPAGENAME}}
8529 title=[[User:Ævar Arnfjörð Bjarmason]]
8533 <p>User talk:Ævar Arnfjörð Bjarmason
8538 Magic Word: {{TALKPAGENAMEE}}
8540 title=[[User:Ævar Arnfjörð Bjarmason]]
8544 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8549 Magic Word: {{SUBJECTPAGENAME}}
8551 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8555 <p>User:Ævar Arnfjörð Bjarmason
8560 Magic Word: {{SUBJECTPAGENAMEE}}
8562 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8564 {{SUBJECTPAGENAMEE}}
8566 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8571 Magic Word: {{NUMBEROFFILES}}
8580 Magic Word: {{PAGENAME}}
8582 title=[[User:Ævar Arnfjörð Bjarmason]]
8586 <p>Ævar Arnfjörð Bjarmason
8591 Magic Word: {{PAGENAME}} with metacharacters
8593 title=[['foo & bar = baz']]
8597 <p><i>'foo & bar = baz'</i>
8600 <p><i>'foo & bar = baz'</i></p>
8604 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
8606 title=[[*RFC 1234 http://example.com/]]
8610 <p>*RFC 1234 http://example.com/
8613 <p>*RFC 1234 http://example.com/</p>
8617 Magic Word: {{PAGENAMEE}}
8619 title=[[User:Ævar Arnfjörð Bjarmason]]
8623 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8628 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
8630 title=[[*RFC 1234 http://example.com/]]
8634 <p>*RFC_1234_http://example.com/
8637 <p>*RFC_1234_http://example.com/</p>
8641 Magic Word: {{REVISIONID}}
8650 Magic Word: {{SCRIPTPATH}}
8659 Magic Word: {{STYLEPATH}}
8668 Magic Word: {{SERVER}}
8672 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
8677 Magic Word: {{SERVERNAME}}
8686 Magic Word: {{SITENAME}}
8695 Case-sensitive magic words, when cased differently, should just be template transclusions
8702 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
8703 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
8704 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
8705 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
8710 Case-insensitive magic words should still work with weird casing.
8720 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
8725 Namespace 1 {{ns:1}}
8734 Namespace 1 {{ns:01}}
8743 Namespace 0 {{ns:0}} (bug 4783)
8751 Namespace 0 {{ns:00}} (bug 4783)
8759 Namespace -1 {{ns:-1}}
8768 Namespace User {{ns:User}}
8777 Namespace User talk {{ns:User_talk}}
8786 Namespace User talk {{ns:uSeR tAlK}}
8795 Namespace File {{ns:File}}
8804 Namespace File {{ns:Image}}
8813 Namespace (lang=de) Benutzer {{ns:User}}
8824 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
8830 <p>Benutzer Diskussion
8838 {{urlencode:hi world?!}}
8839 {{urlencode:hi world?!|WIKI}}
8840 {{urlencode:hi world?!|PATH}}
8841 {{urlencode:hi world?!|QUERY}}
8851 Magic Word: prioritize type info over data-parsoid
8857 <meta property="mw:PageProp/forcetoc" data-parsoid='{"src":"__NOTOC__","magicSrc":"__NOTOC__"}'/>
8861 Magic Word: serialize on separate line (parsoid)
8863 parsoid=wt2wt,html2wt
8869 foo<meta property="mw:PageProp/notoc"/>bar
8873 Magic Word: rt non-english wikis
8880 <meta property="mw:PageProp/noeditsection" data-parsoid='{"src":"__NOEDITSECTION__","magicSrc":"__NOEDITSECTION__"}'/>
8887 Magic links: internal link to RFC (bug 479)
8891 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
8896 Magic links: RFC (bug 479)
8900 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
8905 Magic links: RFC (bug 65278)
8907 This is RFC 822 but thisRFC 822 is not RFC 822linked.
8909 <p>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a> but thisRFC 822 is not RFC 822linked.
8914 Magic links: ISBN (bug 1937)
8918 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
8923 Magic links: ISBN (bug 65278)
8925 This is ISBN 978-0-316-09811-3 but thisISBN 978-0-316-09811-3 is not ISBN 978-0-316-09811-3linked.
8927 <p>This is <a href="/wiki/Special:BookSources/9780316098113" class="internal mw-magiclink-isbn">ISBN 978-0-316-09811-3</a> but thisISBN 978-0-316-09811-3 is not ISBN 978-0-316-09811-3linked.
8932 Magic links: PMID incorrectly converts space to underscore
8936 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
8941 Magic links: PMID (bug 65278)
8943 This is PMID 1234 but thisPMID 1234 is not PMID 1234linked.
8945 <p>This is <a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a> but thisPMID 1234 is not PMID 1234linked.
8954 Nonexistent template
8956 {{thistemplatedoesnotexist}}
8958 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
8963 Template with invalid target containing tags
8965 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
8967 <p>{{a<b>b</b>|foo|a=b|a = b}}
8972 Template with invalid target containing unclosed tag
8974 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
8976 <p>{{a<b>|foo|a=b|a = b}}</b>
8981 Template with invalid target containing wikilink
8985 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
8988 <p><span typeof="mw:Transclusion" about="#mwt1" data-mw='{"parts":[{"template":{"target":{"wt":"[[Main Page]]"},"params":{},"i":0}}]}'>{{</span><a rel="mw:WikiLink" href="./Main_Page" about="#mwt1">Main Page</a><span about="#mwt1">}}</span></p>
8992 Template with just whitespace in it, bug #68421
8996 <p><span typeof="mw:Transclusion mw:Nowiki" about="#mwt1" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{ }}"}},"i":0}}]}'>{{ }}</span></p>
9002 This is a test template
9010 <p>This is a test template
9015 Template with explicit namespace
9019 <p>This is a test template
9027 This is a test template with parameter {{{param}}}
9033 {{paramtest|param=foo}}
9035 <p>This is a test template with parameter foo
9040 Template:paramtestnum
9046 Template unnamed parameter
9048 {{paramtestnum|Main Page|the main page}}
9050 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
9055 Template:templatesimple
9061 Template:templateredirect
9063 #redirect [[Template:templatesimple]]
9067 Template:templateasargtestnum
9073 Template:templateasargtest
9075 {{template{{{templ}}}}}
9079 Template:templateasargtest2
9085 Template with template name as unnamed argument
9087 {{templateasargtestnum|templatesimple}}
9094 Template with template name as argument
9096 {{templateasargtest|templ=simple}}
9103 Template with template name as argument (2)
9105 {{templateasargtest2|templ=templatesimple}}
9112 Template:templateasargtestdefault
9114 {{{{{templ|templatesimple}}}}}
9124 Template with default value
9126 {{templateasargtestdefault}}
9133 Template with default value (value set)
9135 {{templateasargtestdefault|templ=templa}}
9144 {{templateredirect}}
9151 Template with argument in separate line
9153 {{ templateasargtest |
9161 Template with complex template as argument
9164 param ={{ templateasargtest |
9167 <p>This is a test template with parameter (test)
9172 Template with thumb image (with link in description)
9174 {{paramtest|param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
9176 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>
9179 <p>This is a test template with parameter</p>
9180 <div class="thumb tright">
9181 <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>
9182 <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>
9186 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"paramtest","href":"./Template:Paramtest"},"params":{"param":{"wt":"[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]"}},"i":0}}]}'>This is a test template with parameter </p><figure class="mw-default-size" typeof="mw:Error mw:Image/Thumb" about="#mwt1" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="./File:Noimage.png" ><img resource="./File:Noimage.png" src="./Special:FilePath/Noimage.png" height="220" width="220"/></a><figcaption><a rel="mw:WikiLink" href="./No_link" title="No link">link</a> <a rel="mw:WikiLink" href="./No_link" title="No link">caption</a></figcaption></figure>
9190 Template:complextemplate
9192 {{{1}}} {{paramtest|
9193 param ={{{param}}}}}
9197 Template with complex arguments
9200 param ={{ templateasargtest |
9201 templ = simple }}|[[Template:complextemplate|link]]}}
9203 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
9208 BUG 553: link with two variables in a piped link
9211 |[[{{{1}}}|{{{2}}}]]
9216 <td>[[{{{1}}}|{{{2}}}]]
9222 Magic variable as template parameter
9224 {{paramtest|param={{SITENAME}}}}
9226 <p>This is a test template with parameter MediaWiki
9233 [[{{{param}}}|link]]
9237 Template parameter as link source
9239 {{linktest|param=Main Page}}
9241 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
9246 Template-generated attribute string (k='v')
9248 <span {{attr_str|id|v1}}>bar</span>
9250 <p><span id="v1">bar</span>
9257 including another template, {{paramtest|param={{{arg}}}}}
9261 Template passing argument to another template
9263 {{paramtest2|arg='hmm'}}
9265 <p>including another template, This is a test template with parameter 'hmm'
9276 Template as link source
9280 [[{{linktest2}}|Main Page]]
9282 [[{{linktest2}}]]Page
9284 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9285 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9286 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
9304 Template infinite loop
9308 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
9313 Template from main namespace
9332 BUG 529: Template with table, not included at beginning of line
9351 BUG 523: Template shouldn't eat newline (or add an extra one before table)
9371 BUG 41: Template parameters shown as broken links
9380 Template with targets containing wikilinks
9384 {{[[{{echo|foo}}]]}}
9386 {{{{echo|[[foo}}]]}}
9388 <p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
9389 </p><p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
9397 ''None'' of '''this''' should be
9399 but rather passed unmodified
9406 # hmm, fix this or just deprecate msgnw and document its behavior?
9410 {{msgnw:MSGNW test}}
9412 <p>''None'' of '''this''' should be
9414  but rather passed unmodified
9415 {{test}}
9425 {{int:youhavenewmessages|lots of money|not!}}
9427 <p>You have lots of money (not!).
9434 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9438 <includeonly> and <noinclude> being included
9449 <onlyinclude>Foo</onlyinclude>bar
9453 <onlyinclude> being included
9465 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
9469 <onlyinclude> and <includeonly> being included
9478 <includeonly> and <noinclude> on a page
9480 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9487 Un-closed <noinclude>
9494 <onlyinclude> on a page
9496 <onlyinclude>Foo</onlyinclude>bar
9503 Un-closed <onlyinclude>
9510 Self-closed noinclude, includeonly, onlyinclude tags
9521 Unbalanced includeonly and noinclude tags
9525 |b</noinclude></noinclude>
9526 |c</noinclude></includeonly>
9527 |d</includeonly></includeonly>
9536 <td>c</includeonly>
9538 <td>d</includeonly></includeonly>
9544 Template:Includeonly section
9547 ==Includeonly section==
9553 Bug 6563: Edit link generation for section shown by <includeonly>
9555 {{includeonly section}}
9557 <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>
9558 <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>
9562 # Uses same input as the contents of [[Template:Includeonly section]]
9564 Bug 6563: Section extraction for section shown by <includeonly>
9569 ==Includeonly section==
9577 Bug 6563: Edit link generation for section suppressed by <includeonly>
9580 ==Includeonly section==
9584 <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>
9589 Bug 6563: Section extraction for section suppressed by <includeonly>
9594 ==Includeonly section==
9602 Un-closed <includeonly>
9609 Includes and comments at SOL
9611 <!-- comment --><noinclude><!-- comment --></noinclude><!-- comment -->== hu ==
9618 <includeonly>can have stuff</includeonly>=== here ===
9621 <h2><span class="mw-headline" id="hu">hu</span></h2>
9626 <h3><span class="mw-headline" id="here">here</span></h3>
9629 <!-- comment --><meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/><!-- comment --><meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/><!-- comment --><h2> hu </h2>
9631 <meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/>
9633 <meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/><ul><li> stuff</li>
9636 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>can have stuff</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><h3> here </h3>
9640 # TODO: test with DOM fragment reuse!
9642 Parsoid: DOM fragment reuse
9644 parsoid=wt2wt,wt2html
9646 a{{echo|b<table></table>c}}d
9658 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["a",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b<table></table>c"}},"i":0}},"d"]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>ab</p><table about="#mwt1" data-parsoid='{"stx":"html"}'></table><p about="#mwt1">cd</p>
9660 <p about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":["a",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"b\n<table></table>\nc"}},"i":0}},"d"]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>ab</p><span about="#mwt2">
9661 </span><table about="#mwt2" data-parsoid='{"stx":"html"}'></table><span about="#mwt2">
9662 </span><p about="#mwt2">cd</p>
9664 <p about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\n\n<table></table>\n\nb"}},"i":0}}]}' data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]}]]}'>a</p><span about="#mwt3">
9666 </span><table about="#mwt3" data-parsoid='{"stx":"html"}'></table><span about="#mwt3">
9668 </span><p about="#mwt3">b</p>
9672 Parsoid: Merge double tds (bug 50603)
9681 <tr><td about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{!}} foo"}},"i":0}}]}'> foo</td></tr>
9686 Parsoid: Merge double tds in nested transclusion content (bug 50603)
9696 <div about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<div>"}},"i":0}},"\n{|\n|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"{{!}} foo"}},"i":1}},"\n|}\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"</div>"}},"i":2}}]}'>
9698 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
9704 ### <includeonly> and <noinclude> in attributes
9707 0. includeonly around the entire attribute
9709 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
9711 <p><span id="v2">bar</span>
9716 1. includeonly in html attr key
9718 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
9720 <p><span id="foo">bar</span>
9725 2. includeonly in html attr value
9727 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
9728 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
9730 <p><span id="v1">bar</span>
9731 <span id="v1">bar</span>
9736 3. includeonly in part of an attr value
9738 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
9740 <p><span style="color:red;">bar</span>
9745 4. includeonly in table attributes
9769 ### Token Stream Patcher tests
9771 ### These tests won't always pass wt2wt and other modes because
9772 ### on serialization, the table will be output on a new line.
9773 ### For now, we are blacklisting them, and using this to test selser.
9777 1. Table tag in SOL posn. should get reparsed correctly with valid TSR
9779 parsoid=wt2html,wt2wt
9781 {{echo|}}{| width = '100%'
9785 <span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":""}},"i":0}}]}'></span><table width="100%">
9786 <tbody><tr><td>foo</td></tr>
9791 2. Table tag in SOL posn. should get reparsed correctly with valid TSR
9793 parsoid=wt2html,wt2wt
9795 <includeonly>a</includeonly>{| {{{b}}}
9799 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>a</includeonly>"'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><table about="#mwt2" typeof="mw:ExpandedAttrs" data-mw='{"attribs":[[{"txt":"{{{b}}}","html":"<span about=\"#mwt1\" typeof=\"mw:Param\" data-parsoid=\"{&quot;dsr&quot;:[31,38,null,null],&quot;src&quot;:&quot;{{{b}}}&quot;}\">{{{b}}}</span>"},{"html":""}]]}' data-parsoid='{"a":{"{{{b}}}":null},"sa":{"{{{b}}}":""}}'>
9800 <tbody><tr><td>c</td></tr>
9806 ### Testing parsing of templates where a template arg
9807 ### has the same name as the template itself.
9817 Templates: Template Name/Arg clash: 1. Use of positional param
9826 Templates: Template Name/Arg clash: 2. Use of named param
9835 Templates: Template Name/Arg clash: 3. Use of named param with empty input
9844 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
9848 Templates: 1. Simple use
9857 Templates: 2. Inside a block tag
9859 <div>{{echo|Foo}}</div>
9860 <blockquote>{{echo|Foo}}</blockquote>
9863 <blockquote>Foo</blockquote>
9873 Templates: P-wrapping: 1a. Templates on consecutive lines
9884 Templates: P-wrapping: 1b. Templates on consecutive lines
9898 Templates: P-wrapping: 1c. Templates on consecutive lines
9901 {{echo|bar}} <div>baz</div>
9914 Templates: P-wrapping: 1d. Template preceded by comment-only line
9923 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
9927 Templates: Inline Text: 1. Multiple template uses
9929 {{echo|Foo}}bar{{echo|baz}}
9936 Templates: Inline Text: 2. Back-to-back template uses
9938 {{echo|Foo}}{{echo|bar}}
9945 Templates: Block Tags: 1. Multiple template uses
9947 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
9949 <div>Foo</div><div>bar</div><div>baz</div>
9954 Templates: Block Tags: 2. Back-to-back template uses
9956 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
9958 <div>Foo</div><div>bar</div>
9962 # This is an edge case relating to paragraph wrapping.
9964 Templates: Correctly encapsulate templates producing </p> tag without a corresponding <p> tag
9969 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\nb</p>"}},"i":0}}]}'>a
9974 Templates: Links: 1. Simple example
9976 {{echo|[[Foo|bar]]}}
9978 <p><a href="/wiki/Foo" title="Foo">bar</a>
9983 Templates: Links: 2. Generation of link href
9985 [[{{echo|Foo}}|bar]]
9987 <p><a href="/wiki/Foo" title="Foo">bar</a>
9992 Templates: Links: 3. Generation of part of a link href
9994 [[Fo{{echo|o}}|bar]]
9998 [[Foo{{echo|bar}}baz]]
10000 [[Foo{{echo|bar}}|bar]]
10002 [[:Foo{{echo|bar}}]]
10004 [[:Foo{{echo|bar}}|bar]]
10006 <p><a href="/wiki/Foo" title="Foo">bar</a>
10007 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10008 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
10009 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
10010 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10011 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
10016 Templates: Links: 4. Multiple templates generating link href
10018 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
10020 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10025 Templates: Links: 5. Generation of link text
10027 [[Foo|{{echo|bar}}]]
10029 <p><a href="/wiki/Foo" title="Foo">bar</a>
10034 Templates: Links: 5. Nested templates (only outermost template should be marked)
10036 {{echo|[[{{echo|Foo}}|bar]]}}
10038 <p><a href="/wiki/Foo" title="Foo">bar</a>
10043 Templates: HTML Tag: 1. Generation of HTML attr. key
10045 <div {{echo|style}}="color:red;">foo</div>
10047 <div style="color:red;">foo</div>
10052 Templates: HTML Tag: 2. Generation of HTML attr. value
10054 <div style={{echo|'color:red;'}}>foo</div>
10056 <div style="color:red;">foo</div>
10061 Templates: HTML Tag: 3. Generation of HTML attr key and value
10063 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
10065 <div style="color:red;">foo</div>
10070 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
10072 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
10074 <div title="This is a long title with just one piece templated">foo</div>
10079 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
10081 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
10083 <div title="This is a long title with just one piece templated">foo</div>
10088 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
10090 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
10092 <div title="This is a long title with just one piece templated">foo</div>
10097 Templates: HTML Tag: 7. Generation of partial attribute key string
10099 <div st{{echo|yle}}="color:red;">foo</div>
10101 <div style="color:red;">foo</div>
10106 Templates: HTML Tables: 1. Generating start of a HTML table
10108 {{echo|<table><tr><td>foo</td>}}</tr></table>
10110 <table><tr><td>foo</td></tr></table>
10115 Templates: HTML Tables: 2a. Generating middle of a HTML table
10117 <table><tr>{{echo|<td>foo</td>}}</tr></table>
10119 <table><tr><td>foo</td></tr></table>
10124 Templates: HTML Tables: 2b. Generating middle of a HTML table
10126 <table>{{echo|<tr><td>foo</td></tr>}}</table>
10128 <table><tr><td>foo</td></tr></table>
10133 Templates: HTML Tables: 3. Generating end of a HTML table
10135 <table><tr>{{echo|<td>foo</td></tr></table>}}
10137 <table><tr><td>foo</td></tr></table>
10142 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
10144 {{echo|<table>}}<tr><td>foo</td></tr></table>
10146 <table><tr><td>foo</td></tr></table>
10151 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
10153 <table>{{echo|<tr>}}<td>foo</td></tr></table>
10155 <table><tr><td>foo</td></tr></table>
10160 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
10162 <table><tr>{{echo|<td>}}foo</td></tr></table>
10164 <table><tr><td>foo</td></tr></table>
10169 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
10171 <table><tr><td>foo{{echo|</td>}}</tr></table>
10173 <table><tr><td>foo</td></tr></table>
10178 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
10180 <table><tr><td>foo</td>{{echo|</tr>}}</table>
10182 <table><tr><td>foo</td></tr></table>
10187 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
10189 <table><tr><td>foo</td></tr>{{echo|</table>}}
10191 <table><tr><td>foo</td></tr></table>
10196 Templates: HTML Tables: 5. Proper fostering of categories from inside
10198 parsoid=wt2html,wt2wt
10200 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
10201 <!--Two categories (Bug 50330)-->
10202 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
10204 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
10205 <!--Two categories (Bug 50330)-->
10206 <link rel="mw:PageProp/Category" href="./Category:Bar1"><link rel="mw:PageProp/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
10210 Templates: Wiki Tables: 1a. Fostering of entire template content
10218 <tr><td></td></tr></table>
10230 Templates: Wiki Tables: 1b. Fostering of entire template content
10243 <tr><td></td></tr></table>
10257 Templates: Wiki Tables: 2. Fostering of partial template content
10267 <tr><td></td></tr></table>
10280 Templates: Wiki Tables: 3. td-content via multiple templates
10283 {{echo|{{pipe}}a}}{{echo|b}}
10294 Templates: Wiki Tables: 4. Templated tags, no content
10300 <tr><td></td></tr></table>
10305 Templates: Wiki Tables: 5. Templated tags, regular td-tags
10319 Templates: Wiki Tables: 6. Templated tags, templated td-tags
10333 Templates: Lists: Multi-line list-items via templates
10335 *{{echo|a {{nonexistent|
10337 *{{echo|b {{nonexistent|
10340 <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></li>
10341 <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></li></ul>
10346 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
10348 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
10350 <p><i>ab</i>c<i>d</i>e
10355 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
10356 (PHP parser generates misnested html)
10358 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
10360 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"''a"}},"i":0}}]}"><i>a</i></span><i about="#mwt2" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"b''c''d"}},"i":0}},{"template":{"target":{"wt":"echo_with_span","href":"./Template:Echo_with_span"},"params":{"1":{"wt":"''e"}},"i":1}}]}"><span>b</span></i><span about="#mwt2">c</span><i about="#mwt2">d<span></span></i><span about="#mwt2">e</span></p>
10364 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
10365 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
10367 parsoid=wt2html,wt2wt
10369 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
10371 <div about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"''a"}},"i":0}}]}"><i>a</i></div>
10372 <div about="#mwt2" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"b''c''d"}},"i":0}}]}"><i>b</i>c<i>d</i></div>
10373 <div about="#mwt3" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo_with_div","href":"./Template:Echo_with_div"},"params":{"1":{"wt":"''e"}},"i":0}}]}">e</div>
10377 Templates: Ugly nesting: 4. Divs opened/closed across templates
10379 a<div>b{{echo|c</div>d}}e
10390 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
10396 |{{echo|foo</table>}}
10400 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["{|\n|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</table>"}},"i":0}},"\n|bar\n|}"]}'>
10404 <td>foo</td></tr></tbody></table><span about="#mwt1">
10405 </span><span about="#mwt1">|bar</span><span about="#mwt1">
10410 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
10420 <td>1. {{echo|foo </table>}}</td>
10422 <td>2. {{echo|baz </table>}}</td>
10435 <table about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":["<table>\n <tr>\n <td>\n <table>\n <tr>\n <td>1. ",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo </table>"}},"i":0}},"</td>\n <td> bar </td>\n <td>2. ",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"baz </table>"}},"i":1}},"</td>\n </tr>\n <tr>\n <td>abc</td>\n </tr>\n </table>\n </td>\n </tr>\n <tr>\n <td>xyz</td>\n </tr>\n</table>"]}'>
10440 <td>1. foo </td></tr></tbody></table></td>
10442 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
10443 </span><span about="#mwt2">
10444 </span><span about="#mwt2">
10445 </span><span about="#mwt2">abc</span><span about="#mwt2">
10446 </span><span about="#mwt2">
10447 </span><span about="#mwt2">
10448 </span><span about="#mwt2">
10449 </span><span about="#mwt2">
10450 </span><span about="#mwt2">
10451 </span><span about="#mwt2">xyz</span><span about="#mwt2">
10452 </span><span about="#mwt2">
10457 Templates: Ugly templates: 3. newline-only template parameter
10466 # This looks like a bug: a single newline triggers p/br for some reason.
10468 Templates: Ugly templates: 4. newline-only template parameter inconsistency
10477 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges that
10478 # have a true overlap (T1-start - T2-start - T1-end - T2-end).
10480 Templates: Ugly templates: 5. Template encapsulation test: Non-trivial overlap of template ranges is properly handled
10486 <div about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<table>"}},"i":0}},"\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<div>foo"}},"i":1}},"\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"</table>"}},"i":2}}]}' data-parsoid='{"stx":"html","autoInsertedEnd":true,"pi":[[{"k":"1","spc":["","","",""]}],[{"k":"1","spc":["","","",""]}],[{"k":"1","spc":["","","",""]}]]}'>foo
10487 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
10491 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges
10492 # that are "identical" and generate nesting cycles in the algorithm
10494 Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of template ranges is properly handled
10496 {{echo|<table><tr><td><table>}}
10500 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<table><tr><td><table>"}},"i":0}},"\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<div>"}},"i":1}},"\n",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"</div>"}},"i":2}}]}' data-parsoid='{"stx":"html","autoInsertedEnd":true,"pi":[[{"k":"1","spc":["","","",""]}],[{"k":"1","spc":["","","",""]}],[{"k":"1","spc":["","","",""]}]]}'><tbody><tr data-parsoid='{"stx":"html"}'><td data-parsoid='{"stx":"html"}'><div data-parsoid='{"stx":"html"}'>
10501 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
10502 </table></td></tr></tbody></table>
10506 Parser Functions: 1. Simple example
10515 Parser Functions: 2. Nested use (only outermost should be marked up)
10524 ### Pre-save transform tests
10527 pre-save transform: subst:
10533 This is a test template
10537 pre-save transform: normal template
10547 pre-save transform: nonexistent template
10551 {{thistemplatedoesnotexist}}
10553 {{thistemplatedoesnotexist}}
10558 pre-save transform: subst magic variables
10567 # This is bug 89, which I fixed. -- wtm
10569 pre-save transform: subst: templates with parameters
10573 {{subst:paramtest|param="something else"}}
10575 This is a test template with parameter "something else"
10579 Template:nowikitest
10581 <nowiki>'''not wiki'''</nowiki>
10585 pre-save transform: nowiki in subst (bug 1188)
10589 {{subst:nowikitest}}
10591 <nowiki>'''not wiki'''</nowiki>
10596 Template:commenttest
10598 This template has <!-- a comment --> in it.
10602 pre-save transform: comment in subst (bug 1936)
10606 {{subst:commenttest}}
10608 This template has <!-- a comment --> in it.
10612 pre-save transform: unclosed tag
10616 <nowiki>'''not wiki'''
10618 <nowiki>'''not wiki'''
10622 pre-save transform: mixed tag case
10626 <NOwiki>'''not wiki'''</noWIKI>
10628 <NOwiki>'''not wiki'''</noWIKI>
10632 pre-save transform: unclosed comment in <nowiki>
10636 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
10638 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
10641 # Leading @ in this template definition works around a limitation
10642 # in parsoid's parserTests which otherwise strips the <span> from the
10643 # result (confusing it for a template wrapper)
10647 @<span onmouseover="alert('crap')">Oh no</span>
10651 (confirming safety of fix for subst bug 1936)
10653 {{Template:dangerous}}
10655 <p>@<span>Oh no</span>
10660 pre-save transform: comment containing gallery (bug 5024)
10664 <!-- <gallery>data</gallery> -->
10666 <!-- <gallery>data</gallery> -->
10670 pre-save transform: comment containing extension
10674 <!-- <tag>data</tag> -->
10676 <!-- <tag>data</tag> -->
10680 pre-save transform: comment containing nowiki
10684 <!-- <nowiki>data</nowiki> -->
10686 <!-- <nowiki>data</nowiki> -->
10690 pre-save transform: <noinclude> in subst (bug 3298)
10700 pre-save transform: <onlyinclude> in subst (bug 3298)
10704 {{subst:Includes2}}
10712 {{<includeonly>subst:</includeonly>Includes}}
10716 Template:SafeSubstTest
10718 {{<includeonly>safesubst:</includeonly>Includes}}
10722 bug 22297: safesubst: works during PST
10726 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
10732 bug 22297: safesubst: works during normal parse
10741 subst: does not work during normal parse
10745 <p>{{subst:Includes}}
10750 pre-save transform: context links ("pipe trick")
10754 [[Article (context)|]]
10757 [[Bar:Article (context)|]]
10758 [[:Bar:Article (context)|]]
10760 [[|Article (context)]]
10764 [[Article (context)|Article]]
10765 [[Bar:Article|Article]]
10766 [[:Bar:Article|Article]]
10767 [[Bar:Article (context)|Article]]
10768 [[:Bar:Article (context)|Article]]
10770 [[Article (context)]]
10771 [[Bar:X (Y) Z|X (Y) Z]]
10772 [[:Bar:X (Y) Z|X (Y) Z]]
10776 pre-save transform: context links ("pipe trick") with interwiki prefix
10780 [[interwiki:Article|]]
10781 [[:interwiki:Article|]]
10782 [[interwiki:Bar:Article|]]
10783 [[:interwiki:Bar:Article|]]
10785 [[interwiki:Article|Article]]
10786 [[:interwiki:Article|Article]]
10787 [[interwiki:Bar:Article|Bar:Article]]
10788 [[:interwiki:Bar:Article|Bar:Article]]
10792 pre-save transform: context links ("pipe trick") with parens in title
10794 pst title=[[Somearticle (context)]]
10798 [[Article (context)|Article]]
10802 pre-save transform: context links ("pipe trick") with comma in title
10804 pst title=[[Someplace, Somewhere]]
10807 [[Otherplace, Elsewhere|]]
10808 [[Otherplace, Elsewhere, Anywhere|]]
10810 [[Otherplace, Somewhere|Otherplace]]
10811 [[Otherplace, Elsewhere|Otherplace]]
10812 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
10816 pre-save transform: context links ("pipe trick") with parens and comma
10818 pst title=[[Someplace (IGNORED), Somewhere]]
10821 [[Otherplace (place), Elsewhere|]]
10823 [[Otherplace, Somewhere|Otherplace]]
10824 [[Otherplace (place), Elsewhere|Otherplace]]
10828 pre-save transform: context links ("pipe trick") with comma and parens
10830 pst title=[[Who, me? (context)]]
10833 [[Me, Myself, and I (1937 song)|]]
10835 [[Yes, you. (context)|Yes, you.]]
10836 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
10840 pre-save transform: context links ("pipe trick") with namespace
10842 pst title=[[Ns:Somearticle]]
10846 [[Ns:Article|Article]]
10850 pre-save transform: context links ("pipe trick") with namespace and parens
10852 pst title=[[Ns:Somearticle (context)]]
10856 [[Ns:Article (context)|Article]]
10860 pre-save transform: context links ("pipe trick") with namespace and comma
10862 pst title=[[Ns:Somearticle, Context, Whatever]]
10866 [[Ns:Article, Context, Whatever|Article]]
10870 pre-save transform: context links ("pipe trick") with namespace, comma and parens
10872 pst title=[[Ns:Somearticle, Context (context)]]
10876 [[Ns:Article (context)|Article]]
10880 pre-save transform: context links ("pipe trick") with namespace, parens and comma
10882 pst title=[[Ns:Somearticle (IGNORED), Context]]
10886 [[Ns:Article, Context|Article]]
10890 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
10894 [[Article(context)|]]
10895 [[Bar:Article(context)|]]
10896 [[:Bar:Article(context)|]]
10897 [[|Article(context)]]
10901 [[Article(context)|Article]]
10902 [[Bar:Article(context)|Article]]
10903 [[:Bar:Article(context)|Article]]
10904 [[Article(context)]]
10905 [[Bar:X(Y)Z|X(Y)Z]]
10906 [[:Bar:X(Y)Z|X(Y)Z]]
10910 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
10914 [[Article (context)|]]
10915 [[Bar:Article (context)|]]
10916 [[:Bar:Article (context)|]]
10917 [[|Article (context)]]
10921 [[Article (context)|Article]]
10922 [[Bar:Article (context)|Article]]
10923 [[:Bar:Article (context)|Article]]
10924 [[Article (context)]]
10925 [[Bar:X (Y) Z|X (Y) Z]]
10926 [[:Bar:X (Y) Z|X (Y) Z]]
10930 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
10934 [[Article(context)|]]
10935 [[Bar:Article(context)|]]
10936 [[:Bar:Article(context)|]]
10937 [[|Article(context)]]
10941 [[Article(context)|Article]]
10942 [[Bar:Article(context)|Article]]
10943 [[:Bar:Article(context)|Article]]
10944 [[Article(context)]]
10945 [[Bar:X(Y)Z|X(Y)Z]]
10946 [[:Bar:X(Y)Z|X(Y)Z]]
10950 pre-save transform: context links ("pipe trick") with commas (bug 21660)
10954 [[Article (context), context|]]
10955 [[Article (context),context|]]
10956 [[Bar:Article (context), context|]]
10957 [[Bar:Article (context),context|]]
10958 [[:Bar:Article (context), context|]]
10959 [[:Bar:Article (context),context|]]
10961 [[Article (context), context|Article]]
10962 [[Article (context),context|Article]]
10963 [[Bar:Article (context), context|Article]]
10964 [[Bar:Article (context),context|Article]]
10965 [[:Bar:Article (context), context|Article]]
10966 [[:Bar:Article (context),context|Article]]
10970 pre-save transform: trim trailing empty lines
10974 Empty lines are trimmed
10980 Empty lines are trimmed
10984 pre-save transform: Signature expansion
10989 * <noinclude>~~~</noinclude>
10990 * <includeonly>~~~</includeonly>
10991 * <onlyinclude>~~~</onlyinclude>
10993 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
10994 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
10995 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
10996 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
11001 pre-save transform: Signature expansion in nowiki tags (bug 93)
11007 <nowiki>~~~~</nowiki>
11009 <includeonly><nowiki>~~~~</nowiki></includeonly>
11011 <noinclude><nowiki>~~~~</nowiki></noinclude>
11013 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
11015 {{subst:Foo}} shall be converted to FOO
11017 As well as inside noinclude/onlyinclude
11018 <noinclude>{{subst:Foo}}</noinclude>
11019 <onlyinclude>{{subst:Foo}}</onlyinclude>
11021 But not inside includeonly
11022 <includeonly>{{subst:Foo}}</includeonly>
11026 <nowiki>~~~~</nowiki>
11028 <includeonly><nowiki>~~~~</nowiki></includeonly>
11030 <noinclude><nowiki>~~~~</nowiki></noinclude>
11032 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
11034 FOO shall be converted to FOO
11036 As well as inside noinclude/onlyinclude
11037 <noinclude>FOO</noinclude>
11038 <onlyinclude>FOO</onlyinclude>
11040 But not inside includeonly
11041 <includeonly>{{subst:Foo}}</includeonly>
11045 Parsoid: Recognize nowiki with trailing space in tags
11049 <nowiki ><div>[[foo]]</nowiki >
11057 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
11064 Parsoid: Recognize nowiki with odd capitalization
11068 <noWikI ><div>[[foo]]</Nowiki >
11070 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
11075 Parsoid: Escape nowiki with trailing space in tags
11079 <nowiki > foo </nowiki >
11085 <p><nowiki > foo </nowiki ></p>
11086 <p>a<nowiki />b</p>
11087 <p>c<nowiki/ >d</p>
11091 Parsoid: Escape weird noWikI capitalizations
11095 <noWikI > foo </NoWikI >
11097 <p><noWikI > foo </NoWikI ></p>
11101 ### Message transform tests
11104 message transform: magic variables
11114 message transform: should not transform wiki markup
11124 message transform: <noinclude> in transcluded template (bug 4926)
11134 message transform: <onlyinclude> in transcluded template (bug 4926)
11144 {{#special:}} page name, known
11148 {{#special:Recentchanges}}
11150 Special:RecentChanges
11154 {{#special:}} page name with subpage, known
11158 {{#special:Recentchanges/param}}
11160 Special:RecentChanges/param
11164 {{#special:}} page name, unknown
11168 {{#special:foobar nonexistent}}
11170 Special:Foobar nonexistent
11174 {{#speciale:}} page name, known
11178 {{#speciale:Recentchanges}}
11180 Special:RecentChanges
11184 {{#speciale:}} page name with subpage, known
11188 {{#speciale:Recentchanges/param}}
11190 Special:RecentChanges/param
11194 {{#speciale:}} page name, unknown
11198 {{#speciale:foobar nonexistent}}
11200 Special:Foobar_nonexistent
11206 ### For Parsoid-specific tests, see
11207 #### https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
11212 parsoid=wt2html,wt2wt,html2html
11214 [[Image:foobar.jpg]]
11216 <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>
11219 <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></p>
11223 Simple image (using File: namespace, now canonical)
11225 [[File:Foobar.jpg]]
11227 <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>
11230 <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></p>
11234 Right-aligned image
11236 [[File:Foobar.jpg|right]]
11238 <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>
11241 <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>
11247 [[File:Foobar.jpg|right|Caption text]]
11249 <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>
11252 <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>
11256 Image with caption, bug 53312 #1
11258 [[File:Foobar.jpg|right|Caption page stuff]]
11260 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption page stuff"><img alt="Caption page stuff" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
11263 <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 page stuff</figcaption></figure>
11267 Image with caption, bug 53312 #2
11269 [[File:Foobar.jpg|right|Caption page=]]
11271 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption page="><img alt="Caption page=" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
11274 <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 page=</figcaption></figure>
11278 Image with caption, bug 53312 #3
11280 [[File:Foobar.jpg|right|Caption page=stuff]]
11282 <div class="floatright"><a href="/wiki/File:Foobar.jpg" class="image" title="Caption page=stuff"><img alt="Caption page=stuff" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a></div>
11285 <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 page=stuff</figcaption></figure>
11289 Allow empty links in image captions (Bug 60753)
11293 [[File:Foobar.jpg|thumb|Caption [[Link1]]
11298 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>Caption <a href="/index.php?title=Link1&action=edit&redlink=1" class="new" title="Link1 (page does not exist)">Link1</a> [[]] <a href="/index.php?title=Link2&action=edit&redlink=1" class="new" title="Link2 (page does not exist)">Link2</a></div></div></div>
11301 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"Caption [[Link1]]\n[[]]\n[[Link2]]\n"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>Caption <a rel="mw:WikiLink" href="./Link1" title="Link1" data-parsoid='{"stx":"simple","a":{"href":"./Link1"},"sa":{"href":"Link1"}}'>Link1</a>
11303 <a rel="mw:WikiLink" href="./Link2" title="Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"}}'>Link2</a>
11304 </figcaption></figure>
11308 Titles in unlinked images (T23454)
11310 [[File:Foobar.jpg|link=|stuff]]
11312 <p><img alt="stuff" src="http://example.com/images/3/3a/Foobar.jpg" title="stuff" width="1941" height="220" />
11317 Link with empty target
11326 Image with empty attribute
11328 parsoid=wt2html,wt2wt,html2html
11330 [[File:Foobar.jpg|right||Caption text]]
11332 <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>
11335 <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>
11339 1. Block image with individual attributes from templates
11341 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
11343 <div class="thumb tright"><div class="thumbinner" style="width:139px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/137px-Foobar.jpg" width="137" height="16" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/206px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/274px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>This is a caption</div></div></div>
11346 <figure typeof="mw:Image/Thumb mw:ExpandedAttrs" about="#mwt2" data-mw='{"attribs":[["thumbnail",{"html":"thumb"}],["width",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[24,38,null,null]}\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&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;137px&quot;}},&quot;i&quot;:0}}]}\">137px</span>"}]]}'><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/137px-Foobar.jpg" height="16" width="137"/></a><figcaption>This is a caption</figcaption></figure>
11350 2. Block Image with individual attributes from templates
11352 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
11354 <div class="thumb tright"><div class="thumbinner" style="width:139px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/137px-Foobar.jpg" width="137" height="16" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/206px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/274px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>This is a caption</div></div></div>
11357 <figure typeof="mw:Image/Thumb mw:ExpandedAttrs" about="#mwt3" data-mw='{"attribs":[["thumbnail",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[18,32,null,null]}\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&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;thumb&quot;}},&quot;i&quot;:0}}]}\">thumb</span>"}],["width",{"html":"<span about=\"#mwt2\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[33,47,null,null]}\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&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;137px&quot;}},&quot;i&quot;:0}}]}\">137px</span>"}]]}'><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/137px-Foobar.jpg" height="16" width="137"/></a><figcaption>This is a caption</figcaption></figure>
11361 3. Inline image with individual attributes from templates
11363 [[File:Foobar.jpg|{{echo|50px}}]]
11365 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" width="50" height="6" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/75px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/100px-Foobar.jpg 2x" /></a>
11368 <p><span typeof="mw:Image mw:ExpandedAttrs" about="#mwt2" data-parsoid='{"optList":[{"ck":"width","ak":"{{echo|50px}}"}]}' data-mw='{"attribs":[["width",{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]],&quot;dsr&quot;:[18,31,null,null]}\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&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;50px&quot;}},&quot;i&quot;:0}}]}\">50px</span>"}]]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"sa":{}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50"/></a></span></p>
11371 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
11372 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
11374 Image with multiple attributes from the same template
11376 [[File:Foobar.jpg|{{image_attribs}}]]
11378 <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>
11381 <figure class="mw-default-size mw-halign-right" typeof="mw:Image mw:Placeholder"><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>
11385 Image with link tails
11389 123[[File:Foobar.jpg]]456
11390 123[[File:Foobar.jpg|right]]456
11391 123[[File:Foobar.jpg|thumb]]456
11393 <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
11395 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
11396 123<div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div></div></div></div>456
11399 <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</p>
11401 <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>
11403 <div class="thumb tright">
11404 <div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a>
11405 <div class="thumbcaption">
11406 <div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>
11412 <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>
11413 <p>123</p><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><p>456</p>
11414 <p>123</p><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="25" width="220"></a></figure><p>456</p>
11418 Image with multiple captions -- only last one is accepted
11420 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
11422 <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>
11425 <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>
11429 Image with multiple widths -- use last
11431 [[File:Foobar.jpg|200px|300px|caption]]
11433 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg" width="300" height="34" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/450px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/600px-Foobar.jpg 2x" /></a>
11436 <p><span typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="34" width="300"/></a></span></p>
11440 Image with multiple alignments -- use first (bug 48664)
11444 [[File:Foobar.jpg|thumb|left|right|center|caption]]
11446 [[File:Foobar.jpg|middle|text-top|caption]]
11448 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>caption</div></div></div>
11449 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" style="vertical-align: middle" /></a>
11452 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
11453 <p><span class="mw-default-size mw-valign-middle" typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
11457 Image with width attribute at different positions
11459 [[File:Foobar.jpg|200px|right|Caption]]
11460 [[File:Foobar.jpg|right|200px|Caption]]
11461 [[File:Foobar.jpg|right|Caption|200px]]
11463 <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>
11464 <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>
11465 <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>
11468 <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>
11469 <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>
11470 <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>
11473 # a sad bit of backward-compatibility
11475 Image with size specified with pxpx (bug 13500, 51628)
11477 parsoid=wt2html,wt2wt,html2html
11479 [[File:Foobar.jpg|20pxpx]]
11480 [[File:Foobar.jpg|200x20pxpx]]
11482 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" 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>
11483 <a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/177px-Foobar.jpg" width="177" height="20" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/265px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/353px-Foobar.jpg 2x" /></a>
11486 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="2" width="20"/></a></span> <span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="20" width="177"/></a></span></p>
11490 Image with link parameter, wiki target
11492 [[File:Foobar.jpg|link=Main Page]]
11494 <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>
11497 <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>
11500 # parsoid bug 49293 (part 1)
11502 Image with link parameter, URL target
11504 [[File:Foobar.jpg|link=http://example.com/]]
11506 <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>
11509 <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>
11512 # parsoid bug 49293 (part 2)
11514 Image with link parameter, protocol-less URL target
11516 [[File:Foobar.jpg|link=//example.com/]]
11518 <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>
11521 <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>
11525 Image with link parameter, wgExternalLinkTarget
11527 [[Image:foobar.jpg|link=http://example.com/]]
11529 wgExternalLinkTarget='foobar'
11531 <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>
11536 Image with link parameter, wgNoFollowLinks set to false
11538 [[Image:foobar.jpg|link=http://example.com/]]
11540 wgNoFollowLinks=false
11542 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
11547 Image with link parameter, wgNoFollowDomainExceptions
11549 [[Image:foobar.jpg|link=http://example.com/]]
11551 wgNoFollowDomainExceptions='example.com'
11553 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
11558 Image with link parameter, wgExternalLinkTarget, unnamed parameter
11560 [[Image:foobar.jpg|link=http://example.com/|Title]]
11562 wgExternalLinkTarget='foobar'
11564 <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>
11569 Image with empty link parameter
11571 [[File:Foobar.jpg|link=]]
11573 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
11576 <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>
11580 Image with link parameter (wiki target) and unnamed parameter
11582 [[File:Foobar.jpg|link=Main_Page|Title]]
11584 <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>
11587 <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>
11591 Image with link parameter (URL target) and unnamed parameter
11593 [[File:Foobar.jpg|link=http://example.com/|Title]]
11595 <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>
11598 <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>
11602 Thumbnail image with link parameter
11605 parsoid=wt2html,wt2wt,html2html
11607 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
11609 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>Title</div></div></div>
11612 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="http://example.com/"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>Title</figcaption></figure>
11616 Manually-specified thumbnail image
11620 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
11622 <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"></a></div>Title</div></div></div>
11625 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a><figcaption>Title</figcaption></figure>
11629 Manually-specified thumbnail image with explicit link to wiki page
11632 parsoid=wt2html,wt2wt,html2html
11634 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
11636 <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"></a></div>Title</div></div></div>
11639 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><a href="Main_Page"><img resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a><figcaption>Title</figcaption></figure>
11643 Manually-specified thumbnail image with explicit link to url
11646 parsoid=wt2html,wt2wt,html2html
11648 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
11650 <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"></a></div>Title</div></div></div>
11653 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><a href="http://example.com"><img resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a><figcaption>Title</figcaption></figure>
11657 Manually-specified thumbnail image with explicit no link
11660 parsoid=wt2html,wt2wt,html2html
11662 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
11664 <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"></a></div>Title</div></div></div>
11667 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><span><img resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></span><figcaption>Title</figcaption></figure>
11671 Manually-specified thumbnail image with explicit link and alt text
11674 parsoid=wt2html,wt2wt,html2html
11676 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
11678 <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"></a></div>Title</div></div></div>
11681 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-mw='{"thumb":"Thumb.png"}'><a href="Main_Page"><img alt="alttext" resource="./File:Foobar.jpg" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a><figcaption>Title</figcaption></figure>
11685 Image with frame and link
11687 parsoid=wt2html,wt2wt,html2html
11689 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
11691 <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>
11694 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a><figcaption>This is a test image <a rel="mw:WikiLink" href="Main_Page" title="Main Page">Main Page</a></figcaption></figure>
11698 Image with frame and link and explicit alt
11700 parsoid=wt2html,wt2wt,html2html
11702 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
11704 <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>
11707 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img alt="Altitude" resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a><figcaption>This is a test image <a rel="mw:WikiLink" href="Main_Page" title="Main Page">Main Page</a></figcaption></figure>
11711 Image with wiki markup in implicit alt
11713 parsoid=wt2html,wt2wt,html2html
11715 [[Image:Foobar.jpg|testing '''bold''' in alt]]
11717 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
11719 <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>
11720 </p><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>
11723 <p><span class="mw-default-size" typeof="mw:Image" data-mw="{"caption":"testing '''bold''' in alt"}"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
11724 <p><span class="mw-default-size" typeof="mw:Image"><a href="File:Foobar.jpg"><img alt="testing bold in alt" resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
11727 ###################
11728 # Conflicting image format options.
11729 # First option specified should 'win'.
11730 # All three cases in each test should be identical.
11733 Image with 'frameless' first.
11735 parsoid=wt2html,wt2wt,html2html
11737 [[File:Foobar.jpg|frameless|caption]]
11739 [[File:Foobar.jpg|frameless|frame|caption]]
11741 [[File:Foobar.jpg|frameless|thumb|caption]]
11743 <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" 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>
11744 </p><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" 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>
11745 </p><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" 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>
11748 <p><span class="mw-default-size" typeof="mw:Image/Frameless" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a></span></p>
11749 <p><span class="mw-default-size" typeof="mw:Image/Frameless" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a></span></p>
11750 <p><span class="mw-default-size" typeof="mw:Image/Frameless" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a></span></p>
11754 Image with 'frame' first.
11756 parsoid=wt2html,wt2wt,html2html
11758 [[File:Foobar.jpg|frame|caption]]
11759 [[File:Foobar.jpg|frame|frameless|caption]]
11760 [[File:Foobar.jpg|frame|thumb|caption]]
11762 <div class="thumb tright"><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">caption</div></div></div>
11763 <div class="thumb tright"><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">caption</div></div></div>
11764 <div class="thumb tright"><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">caption</div></div></div>
11767 <figure class="mw-default-size" typeof="mw:Image/Frame"><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</figcaption></figure>
11768 <figure class="mw-default-size" typeof="mw:Image/Frame"><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</figcaption></figure>
11769 <figure class="mw-default-size" typeof="mw:Image/Frame"><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</figcaption></figure>
11773 Image with 'thumb' first.
11775 parsoid=wt2html,wt2wt,html2html
11777 [[File:Foobar.jpg|thumb|caption]]
11778 [[File:Foobar.jpg|thumb|frameless|caption]]
11779 [[File:Foobar.jpg|thumb|frame|caption]]
11781 <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"></a></div>caption</div></div></div>
11782 <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"></a></div>caption</div></div></div>
11783 <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"></a></div>caption</div></div></div>
11786 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
11787 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
11788 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
11791 ###################
11793 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
11794 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
11795 # Foobar has actual size of 1941x220
11796 # 1. Thumbs & frameless always reduce, can't be enlarged unless it's
11797 # a scalable format.
11798 # 2. Framed images always ignore size options; always render at default size.
11799 # 3. "Unspecified format" and border are the only types which can be
11803 Image: "unspecified format" and border enlarge
11805 parsoid=wt2html,wt2wt,html2html
11807 [[File:Foobar.jpg|2000px]]
11809 [[File:Foobar.jpg|border|2000px]]
11811 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="2000" height="227" /></a>
11812 </p><p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="2000" height="227" class="thumbborder" /></a>
11815 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="227" width="2000"/></a></span></p>
11816 <p><span class="mw-image-border" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="227" width="2000"/></a></span></p>
11820 Image: "unspecified format" and border reduce
11822 parsoid=wt2html,wt2wt,html2html
11824 [[File:Foobar.jpg|1000px]]
11826 [[File:Foobar.jpg|border|1000px]]
11828 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/1000px-Foobar.jpg" width="1000" height="113" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/1500px-Foobar.jpg 1.5x, http://example.com/images/3/3a/Foobar.jpg 2x" /></a>
11829 </p><p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/1000px-Foobar.jpg" width="1000" height="113" class="thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/1500px-Foobar.jpg 1.5x, http://example.com/images/3/3a/Foobar.jpg 2x" /></a>
11832 <p><span typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="113" width="1000"/></a></span></p>
11833 <p><span class="mw-image-border" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="113" width="1000"/></a></span></p>
11837 Image: thumbs reduce
11839 parsoid=wt2html,wt2wt,html2html
11841 [[File:Foobar.jpg|thumb|50px]]
11843 <div class="thumb tright"><div class="thumbinner" style="width:52px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" width="50" height="6" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/75px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/100px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div></div></div></div>
11846 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="6" width="50"/></a></figure>
11850 Image: bitmap thumbs can't be enlarged past original size, but vector can.
11852 parsoid=wt2html,wt2wt,html2html
11854 [[File:Foobar.jpg|thumb|2000px]]
11856 [[File:Foobar.svg|thumb|2000px]]
11858 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div></div></div></div>
11859 <div class="thumb tright"><div class="thumbinner" style="width:2002px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="Foobar.svg" src="http://example.com/images/thumb/f/ff/Foobar.svg/2000px-Foobar.svg.png" width="2000" height="1500" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/3000px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/4000px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"></a></div></div></div></div>
11862 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
11863 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="1500" width="2000"/></a></figure>
11867 Image: frameless can reduce in size
11869 parsoid=wt2html,wt2wt,html2html
11871 [[File:Foobar.jpg|frameless|50px]]
11873 <p><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" width="50" height="6" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/75px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/100px-Foobar.jpg 2x" /></a>
11876 <p><span typeof="mw:Image/Frameless"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="6" width="50"/></a></span></p>
11880 Image: bitmap frameless can't be enlarged past original size, but vector can
11882 parsoid=wt2html,wt2wt,html2html
11884 [[File:Foobar.jpg|frameless|2000px]]
11886 [[File:Foobar.svg|frameless|2000px]]
11888 <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>
11889 </p><p><a href="/wiki/File:Foobar.svg" class="image"><img alt="Foobar.svg" src="http://example.com/images/thumb/f/ff/Foobar.svg/2000px-Foobar.svg.png" width="2000" height="1500" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/3000px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/4000px-Foobar.svg.png 2x" /></a>
11892 <p><span typeof="mw:Image/Frameless"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
11893 <p><span typeof="mw:Image/Frameless"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="1500" width="2000"/></a></span></p>
11897 Image: framed images are always unscaled.
11899 parsoid=wt2html,wt2wt,html2html
11901 [[File:Foobar.jpg|frame]]
11903 [[File:Foobar.jpg|frame|50px]]
11905 [[File:Foobar.jpg|frame|50x50px]]
11907 [[File:Foobar.jpg|frame|2000px]]
11909 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
11910 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
11911 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
11912 <div class="thumb tright"><div class="thumbinner" style="width:1943px;"><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" class="thumbimage" /></a> <div class="thumbcaption"></div></div></div>
11915 <figure class="mw-default-size" typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
11916 <figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
11917 <figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
11918 <figure typeof="mw:Image/Frame"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></figure>
11921 ###################
11924 Link to image page- image page normally doesn't exists, hence edit link
11925 Add test with existing image page
11926 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
11930 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
11935 bug 18784 Link to non-existent image page with caption should use caption as link text
11937 [[:Image:test|caption]]
11939 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
11944 Frameless image caption with a free URL
11946 [[File:Foobar.jpg|http://example.com]]
11948 <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>
11951 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"http://example.com"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
11955 Thumbnail image caption with a free URL
11959 [[File:Foobar.jpg|thumb|http://example.com]]
11961 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
11964 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></figcaption></figure>
11968 Thumbnail image caption with a free URL and explicit alt
11971 parsoid=wt2html,wt2wt,html2html
11973 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
11975 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
11978 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img alt="Alteration" resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></figcaption></figure>
11982 SVG thumbnails with no language set
11985 [[File:Foobar.svg|thumb|caption]]
11987 <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="135" 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"></a></div>caption</div></div></div>
11990 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="165" width="220"/></a><figcaption>caption</figcaption></figure>
11994 SVG thumbnails with language de
11996 parsoid=wt2html,wt2wt,html2html
11998 [[File:Foobar.svg|thumb|caption|lang=de]]
12000 <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="135" 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"></a></div>caption</div></div></div>
12003 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" lang="de" height="165" width="220"/></a><figcaption>caption</figcaption></figure>
12007 SVG thumbnails with invalid language code
12009 parsoid=wt2html,wt2wt,html2html
12011 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
12013 <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="135" 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"></a></div>lang=invalid.language.code</div></div></div>
12016 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" height="165" width="220"/></a><figcaption>lang=invalid.language.code</figcaption></figure>
12020 BUG 1887: A ISBN with a thumbnail
12022 [[File:Foobar.jpg|thumb|ISBN 1235467890]]
12024 <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"></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
12027 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><a href="Special:BookSources/1235467890" rel="mw:ExtLink">ISBN 1235467890</a></figcaption></figure>
12031 BUG 1887: A RFC with a thumbnail
12033 [[File:Foobar.jpg|thumb|This is RFC 12354]]
12035 <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"></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
12038 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>This is <a href="//tools.ietf.org/html/rfc12354" rel="mw:ExtLink">RFC 12354</a></figcaption></figure>
12042 BUG 1887: A mailto link with a thumbnail
12044 [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]]
12046 <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"></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
12049 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>Please <a rel="mw:ExtLink" href="mailto:nobody@example.com">mailto:nobody@example.com</a></figcaption></figure>
12052 # Pending resolution to bug 368
12054 BUG 648: Frameless image caption with a link
12056 [[File:Foobar.jpg|text with a [[link]] in it]]
12058 <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>
12061 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[link]] in it"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
12065 BUG 648: Frameless image caption with a link (suffix)
12067 [[File:Foobar.jpg|text with a [[link]]foo in it]]
12069 <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>
12072 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[link]]foo in it"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
12076 BUG 648: Frameless image caption with an interwiki link
12078 [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]
12080 <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>
12083 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[MeatBall:Link]] in it"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
12087 BUG 648: Frameless image caption with a piped interwiki link
12089 [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
12091 <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>
12094 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"text with a [[MeatBall:Link|link]] in it"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
12098 Escape HTML special chars in image alt text
12100 [[File:Foobar.jpg|& < > "]]
12102 <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>
12105 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"& < > \""}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
12109 BUG 499: Alt text should have Ӓ, not &1234;
12111 [[File:Foobar.jpg|♀]]
12113 <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>
12116 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"&#9792;"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
12120 Broken image caption with link
12122 parsoid=wt2html,wt2wt,html2html
12124 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
12126 <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.
12129 <p>[[Image:Foobar.jpg|thumb|This is a broken caption. But <a rel="mw:WikiLink" href="Main_Page" title="Main Page">this</a> is just an ordinary link.</p>
12133 Image caption containing another image
12135 [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]]
12137 <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"></a></div>This is a caption with another <a href="/wiki/File:Thumb.png" class="image" title="image"><img alt="image" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" /></a> inside it!</div></div></div>
12140 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>This is a caption with another <span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"image"}'><a href="File:Thumb.png"><img resource="./File:Thumb.png" src="//example.com/images/e/ea/Thumb.png" height="135" width="135"/></a></span> inside it!</figcaption></figure>
12144 Image: caption containing a newline
12146 [[File:Foobar.jpg|This
12149 <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>
12152 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"This\n*is some text"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
12156 Image: caption containing leading space
12157 (The leading space should not trigger nowiki escaping in wt2wt mode)
12159 [[File:Foobar.jpg|thumb| bar]]
12161 <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"></a></div>bar</div></div></div>
12164 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption> bar</figcaption></figure>
12168 Image: caption containing a table
12170 parsoid=wt2html,wt2wt,html2html
12172 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
12178 and some more text.]]
12180 <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"></a></div>This is an example image thumbnail caption with a table <table> <tr> <th> Foo </th> <th> Bar </th></tr> <tr> <td> Foo1 </td> <td> Bar1 </td></tr></table> and some more text.</div></div></div>
12183 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="23" width="200"/></a><figcaption>This is an example image thumbnail caption with a table
12186 <tr><th>Foo </th><th>Bar</th></tr>
12189 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
12193 Bug 3090: External links other than http: in image captions
12195 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
12197 <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"></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>
12200 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="23" width="200"/></a><figcaption>This caption has <a rel="mw:ExtLink" href="irc://example.net">irc</a> and <a rel="mw:ExtLink" href="https://example.com">Secure</a> ext links in it.</figcaption></figure>
12206 parsoid=wt2html,wt2wt,html2html
12208 [[Image:foobar.jpg|a|class=b]]
12210 <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>
12213 <p><span class="mw-default-size b" typeof="mw:Image" data-mw='{"caption":"a"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a></span></p>
12217 Localized image handling (1).
12219 parsoid=wt2html,wt2wt,html2html
12222 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
12224 <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>
12227 <figure class="mw-default-size mw-halign-left" typeof="mw:Image"><a href="./Foo"><img resource="./Archivo:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"/></a><figcaption>caption</figcaption></figure>
12231 Localized image handling (2).
12234 parsoid=wt2html,wt2wt,html2html
12237 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
12239 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"></a></div>caption</div></div></div>
12242 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="./Foo"><img resource="./Archivo:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
12246 "border", "frameless" and "class" attributes on an image.
12249 parsoid=wt2html,wt2wt,html2html
12251 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
12253 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a>
12256 <p><span class="mw-default-size mw-image-border extra" typeof="mw:Image/Frameless" data-mw='{"caption":"caption"}'><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a></span></p>
12259 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
12261 Invalid image attributes (bug 62500)
12264 parsoid=wt2html,wt2wt,html2html
12266 [[File:Foobar.jpg|thumb|float|left|caption]]
12268 [[File:Foobar.jpg|thumb|righ|caption]]
12270 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
12272 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>caption</div></div></div>
12273 <div class="thumb tright"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>caption</div></div></div>
12274 <div class="thumb tleft"><div class="thumbinner" style="width:222px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" width="220" height="25" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/330px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/440px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>caption</div></div></div>
12277 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
12278 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
12279 <figure class="mw-default-size mw-halign-left" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
12285 #REDIRECT [[File:Barfoo.jpg]]
12288 # FIXME: Parsoid should run this test -- but we'd need to teach the
12289 # mockAPI about the redirected Barfoo.jpg image.
12293 [[Image:Barfoo.jpg]]
12295 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
12300 Missing image with uploads disabled
12304 [[File:Foobaz.jpg]]
12306 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
12309 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="File:Foobaz.jpg"><img resource="./File:Foobaz.jpg" src="./Special:FilePath/Foobaz.jpg" height="220" width="220"/></a></span></p>
12312 # Parsoid-specific testing for images
12313 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
12314 # Currently imperfect due to a flaw in the Parsoid testrunner
12316 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
12320 Parsoid-specific image handling - simple image with size and middle alignment
12322 [[File:Foobar.jpg|middle|50px]]
12324 <p><span class="mw-valign-middle" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50"></a></span></p>
12328 Parsoid-specific image handling - simple image with size, middle alignment,
12329 non-standard namespace alias
12331 parsoid=wt2wt,wt2html,html2html
12333 [[Image:Foobar.jpg|middle|50px]]
12335 <p><span class="mw-valign-middle" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50"></a></span></p>
12339 Parsoid-specific image handling - simple image with size and middle alignment
12342 [[File:Foobar.jpg|50px|middle]]
12344 <p><span class="mw-valign-middle" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"50px"},{"ck":"middle","ak":"middle"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
12348 Parsoid-specific image handling - simple image with size and middle alignment
12349 and non-standard namespace name
12351 parsoid=wt2html,wt2wt,html2html
12353 [[Image:Foobar.jpg|50px|middle]]
12355 <p><span class="mw-valign-middle" typeof="mw:Image"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50"></a></span></p>
12359 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
12361 [[File:Foobar.jpg|500x10px|baseline|caption]]
12363 <p><span class="mw-valign-baseline" typeof="mw:Image" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"width","ak":"500x10px"},{"ck":"baseline","ak":"baseline"},{"ck":"caption","ak":"caption"}],"size":"500x10"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"10","width":"89"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
12367 Parsoid-specific image handling - simple image with border and size spec
12369 [[File:Foobar.jpg|50px|border|caption]]
12371 <p><span class="mw-image-border" typeof="mw:Image" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"width","ak":"50px"},{"ck":"border","ak":"border"},{"ck":"caption","ak":"caption"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
12375 Parsoid-specific image handling - thumbnail with halign, valign, and caption
12377 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
12379 <figure class="mw-default-size mw-halign-left mw-valign-baseline" 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="25" width="220" /></a><figcaption>caption content</figcaption></figure>
12383 Parsoid-specific image handling - thumbnail with halign, valign, and caption
12386 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
12388 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"left","ak":"left"},{"ck":"baseline","ak":"baseline"},{"ck":"caption","ak":"caption content"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption content</figcaption></figure>
12392 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
12394 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
12396 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" /></a><figcaption>caption</figcaption></figure>
12400 Parsoid-specific image handling - thumbnail with specific size, halign,
12401 valign, and caption (existing content)
12403 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
12405 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"50x50px"},{"ck":"right","ak":"right"},{"ck":"middle","ak":"middle"},{"ck":"caption","ak":"caption"}],"size":"50x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"6","width":"50"},"sa":{"resource":"File:Foobar.jpg"}}'/></a><figcaption>caption</figcaption></figure>
12409 Parsoid-specific image handling - framed image with specific size and caption
12412 parsoid=wt2html,wt2wt,html2html
12414 [[File:Foobar.jpg|frame|500x50px|caption]]
12416 <figure typeof="mw:Image/Frame"><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</figcaption></figure>
12420 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
12423 parsoid=wt2html,wt2wt,html2html
12425 [[File:Foobar.jpg|left|baseline|frame|500x50px|caption]]
12427 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame"><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</figcaption></figure>
12431 Parsoid-specific image handling - frameless image with specific size, border, and caption
12433 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
12435 <p><span class="mw-image-border" typeof="mw:Image/Frameless" data-mw='{"caption":"caption"}' data-parsoid='{"optList":[{"ck":"frameless","ak":"frameless"},{"ck":"width","ak":"442x50px"},{"ck":"border","ak":"border"},{"ck":"caption","ak":"caption"}],"size":"442x50"}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"50","width":"442"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></span></p>
12439 Parsoid-specific image handling - simple image with a formatted caption
12441 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
12443 <p><span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="220" width="1941"></a></span></p>
12447 Parsoid-specific image handling - caption with a template in it
12449 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
12451 <figure typeof="mw:Image/Thumb"><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>This caption has a <span about="#mwt1" typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}">transclusion</span> in it.</figcaption></figure>
12455 Parsoid-specific image handling - caption with unbalanced tags in it
12457 parsoid=wt2html,wt2wt,html2html
12460 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
12464 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="23" width="200"></a><figcaption>This caption has a <center>unbalanced tag in it.</center></figcaption></figure>
12469 Parsoid-specific image handling - empty caption (1)
12471 parsoid=wt2html,wt2wt
12473 [[File:Foobar.jpg|thumb|]]
12475 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption></figcaption></figure>
12478 # empty captions don't get serialized unless we're in the "round trip" case
12480 Parsoid-specific image handling - empty caption (2)
12484 <figure class="mw-default-size" typeof="mw:Image/Thumb">
12485 <a href="File:Foobar.jpg">
12486 <img resource="./File:Foobar.jpg"
12487 src="//example.com/images/3/3a/Foobar.jpg"
12488 height="25" width="220"/>
12490 <figcaption></figcaption>
12493 [[File:Foobar.jpg|thumb]]
12497 Parsoid-specific image handling - whitespace caption
12499 [[File:Foobar.jpg|thumb| ]]
12501 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption> </figcaption></figure>
12505 Parsoid-specific image handling - lang option
12508 [[File:Foobar.svg|lang=de|caption]]
12512 <span class="mw-default-size" typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="./File:Foobar.svg"><img resource="./File:Foobar.svg" src="//example.com/images/f/ff/Foobar.svg" lang="de" height="180" width="240"/></a></span>
12521 Subpage test/subpage
12529 subpage title=[[Subpage test]]
12533 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
12538 Subpage noslash link
12540 subpage title=[[Subpage test]]
12544 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
12549 Subpage test/1/2/subpage
12555 Relative subpage noslash link
12557 parsoid=wt2wt,wt2html,html2html
12558 subpage title=[[Subpage test/1/2/3/4]]
12564 <p><a href="/wiki/Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">subpage</a>
12565 </p><p><a href="/wiki/Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">Subpage test/1/2/subpage</a>
12568 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">subpage</a></p>
12569 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
12573 Parsoid: dot-slash prefixed wikilinks
12583 </p><p>[[././baz/]]
12588 </p><p>[[././baz/]]
12593 Render invalid page names as plain text (bug 51090)
12606 [[{{echo|./../foo}}|bar]]
12607 [[{{echo|foo/.}}|bar]]
12608 [[{{echo|foo/..}}|bar]]
12609 [[{{echo|foo~~~~bar}}]]
12610 [[{{echo|foo>bar}}]]
12611 [[{{echo|foo././bar}}]]
12612 [[{{echo|foo{bar}}]]
12613 [[{{echo|foo}bar}}]]
12614 [[{{echo|foo[bar}}]]
12615 [[{{echo|foo]bar}}]]
12616 [[{{echo|foo<bar}}]]
12618 <p>[[./../foo|bar]]
12628 </p><p>[[./../foo|bar]]
12641 <p>[[./../foo|bar]]
12652 <p>[[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"./../foo"}},"i":0}}]}'>./../foo</span>|bar]]
12653 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo/."}},"i":0}}]}'>foo/.</span>|bar]]
12654 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo/.."}},"i":0}}]}'>foo/..</span>|bar]]
12655 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo~~~~bar"}},"i":0}}]}'>foo~~~~bar</span>]]
12656 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo>bar"}},"i":0}}]}'>foo>bar</span>]]
12657 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo././bar"}},"i":0}}]}'>foo././bar</span>]]
12658 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo{bar"}},"i":0}}]}'>foo{bar</span>]]
12659 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo}bar"}},"i":0}}]}'>foo}bar</span>]]
12660 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo[bar"}},"i":0}}]}'>foo[bar</span>]]
12661 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo]bar"}},"i":0}}]}'>foo]bar</span>]]
12662 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<bar"}},"i":0}}]}'>foo<bar</span>]]</p>
12670 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
12675 BUG 561: {{/Subpage}}
12677 subpage title=[[Page]]
12681 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
12689 Category:MediaWiki User's Guide
12697 [[:Category:MediaWiki User's Guide]]
12699 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
12708 [[Category:MediaWiki User's Guide]]
12710 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12714 PAGESINCATEGORY invalid title fatal (r33546 fix)
12716 {{PAGESINCATEGORY:<bogus>}}
12723 Category with different sort key
12727 [[Category:MediaWiki User's Guide|Foo]]
12729 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12733 Category with identical sort key
12737 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
12739 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
12743 Category with empty sort key
12748 [[Category:MediaWiki User's Guide|]]
12750 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
12754 Category with empty sort key and parentheses
12759 [[Category:Foo (bar)|]]
12761 [[Category:Foo (bar)|Foo]]
12765 Category with link tail
12770 123[[Category:Foo]]456
12772 123[[Category:Foo]]456
12776 Category with template
12781 [[Category:{{echo|Foo}}]]
12783 [[Category:{{echo|Foo}}]]
12787 Category with template in sort key
12792 [[Category:Foo|{{echo|Bar}}]]
12794 [[Category:Foo|{{echo|Bar}}]]
12798 Category with template in sort key and title
12803 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
12805 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
12809 Category / paragraph interactions
12811 Foo [[Category:Baz]] Bar
12813 Foo [[Category:Baz]]
12821 [[Category:Baz]] Bar
12834 {{echo|[[Category:Baz]]}}
12849 Parsoid: Serialize link to category page with colon escape
12855 [[:Category:Foo|Bar]]
12858 <a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Category:Foo</a>
12859 <a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Bar</a>
12864 Parsoid: Link prefix/suffixes aren't applied to category links
12866 parsoid=wt2html,wt2wt,html2html
12871 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
12875 Parsoid: Serialize link to file page with colon escape
12881 [[:File:Foo.png|Bar]]
12884 <a rel="mw:WikiLink" href="File:Foo.png" title="File:Foo.png">File:Foo.png</a>
12885 <a rel="mw:WikiLink" href="File:Foo.png" title="File:Foo.png">Bar</a>
12890 Parsoid: Serialize a genuine category link without colon escape
12895 [[Category:Foo|Bar]]
12897 <link rel="mw:PageProp/Category" href="Category:Foo">
12898 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
12902 Normalize hrefs properly before testing for invalid link targets (bug 70894)
12906 <link rel="mw:PageProp/Category" href="./Category:Toxine_bactérienne"/>
12908 [[Category:Toxine bactérienne]]
12912 Parsoid: Defaultsort
12916 {{DEFAULTSORT:Foo}}
12918 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
12922 ### Inter-language links
12925 Interlanguage links
12933 es:Alimento fr:Nourriture zh:食品
12935 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Alimento"/>
12936 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/Nourriture"/>
12937 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/食品"/>
12941 Duplicate interlanguage links (bug 24502)
12952 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/1"/>
12953 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/2"/>
12954 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/1"/>
12955 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/2"/>
12962 Basic section headings
12969 ===Smaller headline===
12972 <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>
12975 <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>
12978 <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>
12984 Section headings with TOC
12987 === Subheadline 1 ===
12988 ===== Skipping a level =====
12989 ====== Skipping a level ======
12993 ===Another headline===
12995 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12997 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
12999 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
13001 <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>
13003 <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>
13010 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
13012 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
13018 <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>
13019 <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>
13020 <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>
13021 <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>
13022 <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>
13025 <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>
13029 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
13031 Handling of sections up to level 6 and beyond
13034 == Level 2 Heading==
13035 === Level 3 Heading===
13036 ==== Level 4 Heading====
13037 ===== Level 5 Heading=====
13038 ====== Level 6 Heading======
13039 ======= Level 7 Heading=======
13040 ======== Level 8 Heading========
13041 ========= Level 9 Heading=========
13042 ========== Level 10 Heading==========
13044 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13046 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
13048 <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>
13050 <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>
13052 <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>
13054 <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>
13056 <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>
13057 <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>
13058 <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>
13059 <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>
13060 <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>
13074 <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>
13075 <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>
13076 <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>
13077 <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>
13078 <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>
13079 <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>
13080 <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>
13081 <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>
13082 <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>
13083 <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>
13088 TOC regression (bug 9764)
13092 ==== title 1.1.1 ====
13097 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13099 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13101 <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>
13103 <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>
13106 <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>
13109 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
13111 <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>
13117 <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>
13118 <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>
13119 <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>
13120 <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>
13121 <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>
13122 <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>
13127 TOC with wgMaxTocLevel=3 (bug 6204)
13133 ==== title 1.1.1 ====
13138 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13140 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13142 <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>
13143 <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>
13146 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
13148 <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>
13154 <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>
13155 <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>
13156 <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>
13157 <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>
13158 <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>
13159 <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>
13164 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
13170 ====Section 1.1.1====
13171 ====Section 1.1.1.1====
13174 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13176 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
13178 <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>
13181 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
13185 <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>
13186 <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>
13187 <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>
13188 <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>
13189 <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>
13195 Resolving duplicate section names
13200 <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>
13201 <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>
13206 Resolving duplicate section names with differing case (bug 10721)
13211 <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>
13212 <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>
13224 Template with sections, __NOTOC__
13231 <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>
13232 <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>
13233 <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>
13234 <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>
13239 __NOEDITSECTION__ keyword
13245 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
13246 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
13251 Link inside a section heading
13253 ==Section with a [[Main Page|link]] in it==
13255 <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>
13260 TOC regression (bug 12077)
13267 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13269 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13271 <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>
13274 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
13278 <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>
13279 <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>
13280 <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>
13285 BUG 1219 URL next to image (good)
13287 http://example.com [[Image:foobar.jpg]]
13289 <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>
13294 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
13297 The line above must have a trailing space!
13300 But just in case it doesn't...
13302 <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>
13303 <p>The line above must have a trailing space!
13305 <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>
13306 <p>But just in case it doesn't...
13311 Header with special characters (bug 25462)
13313 The tooltips shall not show entities to the user (ie. be double escaped)
13330 <p>The tooltips shall not show entities to the user (ie. be double escaped)
13332 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13334 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
13335 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
13336 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
13337 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
13338 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
13342 <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>
13345 <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>
13348 <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>
13351 <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>
13354 <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>
13360 Header with space, plus and underscore as entity
13362 Id should not contain + for spaces
13364 == Space between Text ==
13367 == Space-Entity between Text ==
13370 == Plus+between+Text ==
13373 == Plus-Entity+between+Text ==
13376 == Underscore_between_Text ==
13379 == Underscore-Entity_between_Text ==
13382 [[#Space between Text]]
13383 [[#Space-Entity between Text]]
13384 [[#Plus+between+Text]]
13385 [[#Plus-Entity+between+Text]]
13386 [[#Underscore_between_Text]]
13387 [[#Underscore-Entity_between_Text]]
13389 <p>Id should not contain + for spaces
13391 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13393 <li class="toclevel-1 tocsection-1"><a href="#Space_between_Text"><span class="tocnumber">1</span> <span class="toctext">Space between Text</span></a></li>
13394 <li class="toclevel-1 tocsection-2"><a href="#Space-Entity_between_Text"><span class="tocnumber">2</span> <span class="toctext">Space-Entity between Text</span></a></li>
13395 <li class="toclevel-1 tocsection-3"><a href="#Plus.2Bbetween.2BText"><span class="tocnumber">3</span> <span class="toctext">Plus+between+Text</span></a></li>
13396 <li class="toclevel-1 tocsection-4"><a href="#Plus-Entity.2Bbetween.2BText"><span class="tocnumber">4</span> <span class="toctext">Plus-Entity+between+Text</span></a></li>
13397 <li class="toclevel-1 tocsection-5"><a href="#Underscore_between_Text"><span class="tocnumber">5</span> <span class="toctext">Underscore_between_Text</span></a></li>
13398 <li class="toclevel-1 tocsection-6"><a href="#Underscore-Entity_between_Text"><span class="tocnumber">6</span> <span class="toctext">Underscore-Entity_between_Text</span></a></li>
13402 <h2><span class="mw-headline" id="Space_between_Text">Space between 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: Space between Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13405 <h2><span class="mw-headline" id="Space-Entity_between_Text">Space-Entity between 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: Space-Entity between Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13408 <h2><span class="mw-headline" id="Plus.2Bbetween.2BText">Plus+between+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: Plus+between+Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13411 <h2><span class="mw-headline" id="Plus-Entity.2Bbetween.2BText">Plus-Entity+between+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: Plus-Entity+between+Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13414 <h2><span class="mw-headline" id="Underscore_between_Text">Underscore_between_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: Underscore between Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13417 <h2><span class="mw-headline" id="Underscore-Entity_between_Text">Underscore-Entity_between_Text</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: Underscore-Entity_between_Text">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13419 </p><p><a href="#Space_between_Text">#Space between Text</a>
13420 <a href="#Space-Entity_between_Text">#Space-Entity between Text</a>
13421 <a href="#Plus.2Bbetween.2BText">#Plus+between+Text</a>
13422 <a href="#Plus-Entity.2Bbetween.2BText">#Plus-Entity+between+Text</a>
13423 <a href="#Underscore_between_Text">#Underscore_between_Text</a>
13424 <a href="#Underscore-Entity_between_Text">#Underscore-Entity_between_Text</a>
13429 Headers with excess '=' characters
13430 (Are similar tests necessary beyond the 1st level?)
13434 =''italic'' heading==
13435 ==''italic'' heading=
13437 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13439 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
13440 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
13441 <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>
13442 <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>
13446 <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>
13447 <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>
13448 <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>
13449 <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>
13454 HTML headers vs TOC (bug 23393)
13455 (__NOEDITSECTION__ for clearer output, doesn't matter here)
13467 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13469 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
13471 <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>
13472 <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>
13475 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
13477 <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>
13478 <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>
13484 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
13485 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
13486 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
13487 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
13488 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
13489 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
13494 Single-line or multiline-comments can follow headings
13496 parsoid=wt2html,wt2wt
13504 <h2><span class="mw-headline" id="foo">foo</span></h2>
13505 <h2><span class="mw-headline" id="bar">bar</span></h2>
13506 <h2><span class="mw-headline" id="baz">baz</span></h2>
13511 BUG 1219 URL next to image (broken)
13513 http://example.com[[Image:foobar.jpg]]
13515 <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>
13520 Bug 1186 news: in the middle of text
13522 http://en.wikinews.org/wiki/Wikinews:Workplace
13524 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
13530 Namespaced link must have a title
13539 Namespaced link must have a title (bad fragment version)
13541 [[Project:#fragment]]
13543 <p>[[Project:#fragment]]
13549 ### HTML tags and HTML attributes
13553 div with no attributes
13555 <div>HTML rocks</div>
13557 <div>HTML rocks</div>
13562 div with double-quoted attribute
13564 <div id="rock">HTML rocks</div>
13566 <div id="rock">HTML rocks</div>
13571 div with single-quoted attribute
13573 <div id='rock'>HTML rocks</div>
13575 <div id="rock">HTML rocks</div>
13580 div with unquoted attribute
13582 <div id=rock>HTML rocks</div>
13584 <div id="rock">HTML rocks</div>
13589 div with illegal double attributes
13591 <div id="a" id="b">HTML rocks</div>
13593 <div id="b">HTML rocks</div>
13597 # FIXME: produce empty string instead of "class" in the PHP parser, following
13600 div with empty attribute value, space before equals
13604 <div class =>HTML rocks</div>
13606 <div class="">HTML rocks</div>
13611 div with multiple empty attribute values
13615 <div id= title=>HTML rocks</div>
13617 <div id="" title="">HTML rocks</div>
13622 table with multiple empty attribute values
13630 <table title="" id="">
13631 <tbody><tr><td> hi</td></tr>
13636 div with braces in attribute value
13638 <div title="{}">Foo</div>
13640 <div title="{}">Foo</div>
13643 <div title="{}">Foo</div>
13646 # This it very inconsistent in the PHP parser: it returns
13647 # class="class" if there is a space between the name and the equal sign (see
13648 # 'div with empty attribute value, space before equals'), but strips the
13649 # attribute completely if the space is missing. We hope that not much content
13650 # depends on this, so are implementing the behavior below in Parsoid for
13651 # consistencies' sake.
13652 # FIXME: fix this behavior in the PHP parser?
13654 div with empty attribute value, no space before equals
13656 parsoid=wt2html,html2html
13658 <div class=>HTML rocks</div>
13660 <div>HTML rocks</div>
13663 <div class="">HTML rocks</div>
13667 HTML multiple attributes correction
13669 <p class="error" class="awesome">Awesome!</p>
13671 <p class="awesome">Awesome!</p>
13676 Table multiple attributes correction
13679 !+ class="error" class="awesome"| status
13684 <th class="awesome"> status
13692 <DIV ID="x">HTML ROCKS</DIV>
13694 <div id="x">HTML ROCKS</div>
13699 Non-ASCII pseudo-tags are rendered as text
13708 Pseudo-tag with URL 'name' renders as url link
13710 <http://example.com/>
13712 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
13717 text with amp in the middle of nowhere
13721 <p>Remember AT&T?
13726 text with character entity: eacute
13728 I always thought é was a cute letter.
13730 <p>I always thought é was a cute letter.
13733 <p>I always thought é was a cute letter.</p>
13737 text with entity-escaped character entity-like string: eacute
13739 I always thought &eacute; was a cute letter.
13741 <p>I always thought &eacute; was a cute letter.
13746 text with undefined character entity: xacute
13748 I always thought &xacute; was a cute letter.
13750 <p>I always thought &xacute; was a cute letter.
13754 # TODO: generalize to PHP parser?
13760 <data value="5">five</data>
13761 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
13762 <mark>This highlighted text</mark>
13764 <p><data value="5">five</data>
13765 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
13766 <mark>This highlighted text</mark></p>
13770 HTML tag with leading space is parsed as text
13774 <p>< div>foo< /div>
13779 ### Nesting tests (see bug 41545, 50604, 51081)
13782 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
13783 # Note that html2wt is considerably more difficult if we use <b> in
13784 # the test case, instead of <big>
13786 Ensure that HTML adoption agency algorithm is properly implemented.
13788 <big>X<big>Y</big>Z</big>
13790 <p><big>X<big>Y</big>Z</big>
13794 # This was bug 41545 in the PHP parser.
13795 # Note that tidy doesn't handle this correctly.
13799 <kbd>X<kbd>Y</kbd>Z</kbd>
13801 <p><kbd>X<kbd>Y</kbd>Z</kbd>
13805 # The following cases were bug 51081 in the PHP parser.
13806 # Note that there are some other nestable tags (b, i, etc) which are
13807 # not covered; see bug 51081 for discussion.
13809 # Note that tidy doesn't handle this correctly.
13813 <em>X<em>Y</em>Z</em>
13815 <p><em>X<em>Y</em>Z</em>
13819 # Note that tidy doesn't handle this correctly.
13821 Nesting of <strong>
13823 <strong>X<strong>Y</strong>Z</strong>
13825 <p><strong>X<strong>Y</strong>Z</strong>
13834 <p><q>X<q>Y</q>Z</q></p>
13837 # Note that tidy doesn't handle this correctly.
13841 <ruby>X<ruby>Y</ruby>Z</ruby>
13843 <p><ruby>X<ruby>Y</ruby>Z</ruby>
13847 # Note that tidy doesn't handle this correctly.
13851 <bdo>X<bdo>Y</bdo>Z</bdo>
13853 <p><bdo>X<bdo>Y</bdo>Z</bdo>
13865 [[Media:Foobar.jpg]]
13867 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
13872 Media link with text
13874 [[Media:Foobar.jpg|A neat file to look at]]
13876 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
13880 # FIXME: this is still bad HTML tag nesting
13882 Media link with nasty text
13883 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
13885 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
13887 <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>
13890 <p><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></p>
13894 Media link to nonexistent file (bug 1702)
13896 [[Media:No such.jpg]]
13898 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
13903 Image link to nonexistent file (bug 1850 - good)
13905 [[File:No_such.jpg]]
13907 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
13910 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="File:No_such.jpg"><img resource="./File:No_such.jpg" src="./Special:FilePath/No_such.jpg" height="220" width="220"/></a></span></p>
13914 :Image link to nonexistent file (bug 1850 - bad)
13916 [[:Image:No such.jpg]]
13918 <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>
13921 <p><a rel="mw:WikiLink" href="./File:No_such.jpg" title="File:No such.jpg">Image:No such.jpg</a></p>
13927 Character reference normalization in link text (bug 1938)
13929 [[Main Page|this&that]]
13931 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
13938 Test for unicode normalization
13940 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
13944 (bug 19451) Links should refer to the normalized form.
13952 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13953 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13954 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13955 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13956 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
13961 Empty attribute crash test (bug 2067)
13963 <font color="">foo</font>
13965 <p><font color="">foo</font>
13970 Empty attribute crash test single-quotes (bug 2067)
13972 <font color=''>foo</font>
13974 <p><font color="">foo</font>
13979 Attribute test: equals, then nothing
13981 <font color=>foo</font>
13983 <p><font>foo</font>
13988 Attribute test: unquoted value
13990 <font color=x>foo</font>
13992 <p><font color="x">foo</font>
13997 Attribute test: unquoted but illegal value (hash)
13999 <font color=#x>foo</font>
14001 <p><font color="#x">foo</font>
14006 Attribute test: no value
14008 <font color>foo</font>
14010 <p><font color="color">foo</font>
14015 Bug 2095: link with three closing brackets
14019 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
14022 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a>]</p>
14026 Bug 2095: link with pipe and three closing brackets
14028 [[Main Page|link]]]
14030 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
14033 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">link</a>]</p>
14037 Bug 2095: link with pipe and three closing brackets, version 2
14039 [[Main Page|[http://example.com/]]]
14041 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
14044 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">[http://example.com/]</a></p>
14053 Template:Dangerous attribute
14055 " onmouseover="alert(document.cookie)
14059 Template:Dangerous style attribute
14061 border-size: expression(alert(document.cookie))
14067 <div style="float: right; {{{1}}}">Magic div</div>
14071 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
14073 <div title="{{test}}"></div>
14075 <div title="This is a test template"></div>
14079 # Parsoid has enough context to handle this case
14081 Bug 2304: HTML attribute safety (dangerous template; 2309)
14083 <div title="{{dangerous attribute}}"></div>
14085 <div title=""></div>
14088 <div title='" onmouseover="alert(document.cookie)' about="#mwt2" typeof="mw:ExpandedAttrs" data-parsoid='{"stx":"html","a":{"title":"\" onmouseover=\"alert(document.cookie)"},"sa":{"title":"{{dangerous attribute}}"}}' data-mw='{"attribs":[[{"txt":"title"},{"html":"<span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[]],&quot;dsr&quot;:[12,35,null,null]}\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;dangerous attribute&quot;,&quot;href&quot;:&quot;./Template:Dangerous_attribute&quot;},&quot;params&quot;:{},&quot;i&quot;:0}}]}\">\" onmouseover=\"alert(document.cookie)</span>"}]]}'></div>
14092 Bug 2304: HTML attribute safety (dangerous style template; 2309)
14094 <div style="{{dangerous style attribute}}"></div>
14096 <div style="/* insecure input */"></div>
14101 Bug 2304: HTML attribute safety (safe parameter; 2309)
14103 {{div style|width: 200px}}
14105 <div style="float: right; width: 200px">Magic div</div>
14110 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
14112 {{div style|width: expression(alert(document.cookie))}}
14114 <div style="/* insecure input */">Magic div</div>
14119 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
14121 {{div style|"><script>alert(document.cookie)</script>}}
14123 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
14128 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
14130 {{div style|" ><script>alert(document.cookie)</script>}}
14132 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
14137 Bug 2304: HTML attribute safety (link)
14139 <div title="[[Main Page]]"></div>
14141 <div title="[[Main Page]]"></div>
14146 Bug 2304: HTML attribute safety (italics)
14148 <div title="''foobar''"></div>
14150 <div title="''foobar''"></div>
14155 Bug 2304: HTML attribute safety (bold)
14157 <div title="'''foobar'''"></div>
14159 <div title="'''foobar'''"></div>
14165 Bug 2304: HTML attribute safety (ISBN)
14167 <div title="ISBN 1234567890"></div>
14169 <div title="ISBN 1234567890"></div>
14174 Bug 2304: HTML attribute safety (RFC)
14176 <div title="RFC 1234"></div>
14178 <div title="RFC 1234"></div>
14183 Bug 2304: HTML attribute safety (PMID)
14185 <div title="PMID 1234567890"></div>
14187 <div title="PMID 1234567890"></div>
14192 Bug 2304: HTML attribute safety (web link)
14194 <div title="http://example.com/"></div>
14196 <div title="http://example.com/"></div>
14201 Bug 2304: HTML attribute safety (named web link)
14203 <div title="[http://example.com/ link]"></div>
14205 <div title="[http://example.com/ link]"></div>
14210 Bug 3244: HTML attribute safety (extension; safe)
14212 <div style="<nowiki>background:blue</nowiki>"></div>
14214 <div style="background:blue"></div>
14219 Bug 3244: HTML attribute safety (extension; unsafe)
14221 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
14223 <div style="/* insecure input */"></div>
14227 # More MSIE fun discovered by Tom Gilder
14230 MSIE CSS safety test: spurious slash
14232 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
14234 <div style="/* insecure input */">evil</div>
14239 MSIE CSS safety test: hex code
14241 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
14243 <div style="/* insecure input */">evil</div>
14248 MSIE CSS safety test: comment in url
14250 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
14252 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
14257 MSIE CSS safety test: comment in expression
14259 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
14261 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
14266 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
14268 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
14270 <p style="/* invalid control char */">A</p>
14275 MSIE 6 CSS safety test: Fullwidth (bug 55332)
14277 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
14278 <div style="top:EXPRESSION(alert())">B</div>
14280 <p style="/* insecure input */">A</p>
14281 <div style="/* insecure input */">B</div>
14286 MSIE 6 CSS safety test: IPA extensions (bug 55332)
14288 <div style="background-image:uʀʟ(javascript:alert())">A</div>
14289 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
14291 <div style="/* insecure input */">A</div>
14292 <p style="/* insecure input */">B</p>
14297 MSIE 6 CSS safety test: sup/sub script (bug 55332)
14299 <div style="background-image:url⁽javascript:alert())">A</div>
14300 <div style="background-image:url₍javascript:alert())">B</div>
14301 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
14303 <div style="/* insecure input */">A</div>
14304 <div style="/* insecure input */">B</div>
14305 <p style="/* insecure input */">C</p>
14313 title="data:text/html,<img src=1 onerror=alert(1)>"
14314 style="-o-link:attr(title);-o-link-source:current">X</div>
14316 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
14321 MSIE 6 CSS safety test: Repetition markers (bug 55332)
14323 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
14324 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
14325 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
14326 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
14327 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
14328 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
14329 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
14331 <p style="/* insecure input */">A</p>
14332 <p style="/* insecure input */">B</p>
14333 <p style="/* insecure input */">C</p>
14334 <p style="/* insecure input */">D</p>
14335 <p style="/* insecure input */">E</p>
14336 <p style="/* insecure input */">F</p>
14337 <p style="/* insecure input */">G</p>
14342 Table attribute legitimate extension
14345 !+ style="<nowiki>color:blue</nowiki>"| status
14350 <th style="color:blue"> status
14356 Table attribute safety
14359 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
14364 <th style="/* insecure input */"> status
14370 CSS line continuation 1
14372 <div style="background-image: u\ rl(test.jpg);"></div>
14374 <div style="/* insecure input */"></div>
14379 CSS line continuation 2
14381 <div style="background-image: u\ rl(test.jpg); "></div>
14383 <div style="/* insecure input */"></div>
14394 Expansion of multi-line templates in attribute values (bug 6255)
14396 <div style="background: {{identity|#00FF00}}">-</div>
14398 <div style="background: #00FF00">-</div>
14404 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
14406 <div style="background:
14409 <div style="background: #00FF00">-</div>
14412 <div style="background:
14417 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
14419 <div style="background: #00FF00">-</div>
14421 <div style="background: #00FF00">-</div>
14426 evil <math>-wiki-tags without Extension:Math enabled
14428 <math><img src="some evil external link"><script>some_evil_javascript();</script></math>
14430 <p><math><img src="some evil external link"><script>some_evil_javascript();</script></math></p>
14434 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
14437 Parser hook: empty input
14450 Parser hook: empty input using terminated empty elements
14463 Parser hook: empty input using terminated empty elements (space before)
14476 Parser hook: basic input
14490 Parser hook: case insensitive
14504 Parser hook: case insensitive, redux
14517 Parser hook: nested tags
14521 <tag><tag></tag></tag>
14532 Parser hook: basic arguments
14534 <tag width=200 height = "100" depth = '50' square></tag>
14542 'square' => 'square',
14549 Parser hook: argument containing a forward slash (bug 5344)
14551 <tag filename='/tmp/bla'></tag>
14556 'filename' => '/tmp/bla',
14563 Parser hook: empty input using terminated empty elements (bug 2374)
14576 # </tag> should be output literally since there is no matching tag that begins it
14578 Parser hook: basic arguments using terminated empty elements (bug 2374)
14580 <tag width=200 height = "100" depth = '50' square/>
14590 'square' => 'square',
14599 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
14603 Parser hook: static parser hook not inside a comment
14605 <statictag>hello, world</statictag>
14606 <statictag action=flush/>
14614 Parser hook: static parser hook inside a comment
14616 <!-- <statictag>hello, world</statictag> -->
14617 <statictag action=flush/>
14623 # Nested template calls; this case was broken by Parser.php rev 1.506,
14627 Template:One-parameter
14629 (My parameter is: {{{1}}})
14633 Template:Map-one-parameter
14635 {{{{{1}}}|{{{2}}}}}
14639 Nested template calls
14641 {{Map-one-parameter|One-parameter|param}}
14643 <p>(My parameter is: param)
14652 # HTML+Tidy effectively strips out the empty tags completely
14653 # But since Parsoid doesn't it wraps the <s></s> tags in p-tags
14654 # which Tidy would have done for the PHP parser had there been content inside it.
14656 Sanitizer: Closing of open tags
14658 <s></s><table></table>
14660 <s></s><table></table>
14663 <p><s></s></p><table></table>
14667 Sanitizer: Closing of open but not closed tags
14676 Sanitizer: Closing of closed but not open tags
14685 Sanitizer: Closing of closed but not open table tags
14687 Table not started</td></tr></table>
14689 <p>Table not started</td></tr></table>
14694 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
14696 <span id="æ: v">byte</span>[[#æ: v|backlink]]
14698 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
14702 # In HTML5, the restrictions are that id must contain at least one character,
14703 # and must not contain any space characters.
14705 Sanitizer: Validating the contents of the id attribute (bug 4515)
14709 <br id="" /><br id="a space" />
14714 # In HTML5, id must be unique amongst all the ids in the element's home subtree.
14716 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
14720 <br id="foo" /><br id="foo" />
14722 Something need to be done. foo-2 ?
14726 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
14729 <meta itemprop="hello" content="world">
14730 <meta http-equiv="refresh" content="5">
14731 <meta itemprop="hello" http-equiv="refresh" content="5">
14732 <link itemprop="hello" href="{{SERVER}}">
14733 <link rel="stylesheet" href="{{SERVER}}">
14734 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
14737 <div itemscope="itemscope">
14738 <p> <meta itemprop="hello" content="world" />
14739 <meta http-equiv="refresh" content="5">
14740 <meta itemprop="hello" content="5" />
14742 <link itemprop="hello" href="http://example.org" />
14743 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
14744 <link itemprop="hello" href="http://example.org" />
14750 Language converter: output gets cut off unexpectedly (bug 5757)
14754 this bit is safe: }-
14756 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
14758 then we get cut off here: }-
14760 all additional text is vanished
14762 <p>this bit is safe: }-
14763 </p><p>but if we add a conversion instance: xxx
14764 </p><p>then we get cut off here: }-
14765 </p><p>all additional text is vanished
14770 Self closed html pairs (bug 5487)
14773 <center><font id="bug" />Centered text</center>
14774 <div><font id="bug2" />In div text</div>
14776 <center><font id="bug" />Centered text</center>
14777 <div><font id="bug2" />In div text</div>
14786 Punctuation: nbsp before exclamation
14790 <p>C'est grave !
14795 Punctuation: CSS !important (bug 11874)
14797 <div style="width:50% !important">important</div>
14799 <div style="width:50% !important">important</div>
14804 Punctuation: CSS ! important (bug 11874; with space after)
14806 <div style="width:50% ! important">important</div>
14808 <div style="width:50% ! important">important</div>
14814 HTML bullet list, closed tags (bug 5497)
14827 <ul data-parsoid='{"stx":"html"}'>
14828 <li data-parsoid='{"stx":"html"}'>One</li>
14829 <li data-parsoid='{"stx":"html"}'>Two</li>
14835 HTML bullet list, unclosed tags (bug 5497)
14847 <ul data-parsoid='{"stx":"html"}'>
14848 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>One</li>
14849 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>Two</li>
14855 HTML ordered list, closed tags (bug 5497)
14868 <ol data-parsoid='{"stx":"html"}'>
14869 <li data-parsoid='{"stx":"html"}'>One</li>
14870 <li data-parsoid='{"stx":"html"}'>Two</li>
14876 HTML ordered list, unclosed tags (bug 5497)
14889 <ol data-parsoid='{"stx":"html"}'>
14890 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>One</li>
14891 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>Two</li>
14897 HTML nested bullet list, closed tags (bug 5497)
14922 HTML nested bullet list, open tags (bug 5497)
14959 HTML nested ordered list, closed tags (bug 5497)
14984 HTML nested ordered list, open tags (bug 5497)
15021 HTML ordered list item with parameters oddity
15023 <ol><li id="fragment">One</li>
15026 <ol><li id="fragment">One</li>
15031 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
15033 bug 5918: autonumbering
15035 [http://first/] [http://second] [ftp://ftp]
15039 [mailto:enclosed@mail.tld With target]
15041 [mailto:enclosed@mail.tld]
15043 mailto:inline@mail.tld
15045 <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>
15046 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
15047 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
15048 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
15049 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
15052 <p><a rel="mw:ExtLink" href="http://first/"></a> <a rel="mw:ExtLink" href="http://second"></a> <a rel="mw:ExtLink" href="ftp://ftp"></a></p>
15053 <p><a rel="mw:ExtLink" href="ftp://inlineftp">ftp://inlineftp</a></p>
15054 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld">With target</a></p>
15055 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld"></a></p>
15056 <p><a rel="mw:ExtLink" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a></p>
15061 # Security and HTML correctness
15062 # From Nick Jenkins' fuzz testing
15066 Fuzz testing: Parser13
15081 Fuzz testing: Parser14
15086 <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>
15087 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15089 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
15095 <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>
15097 <div id="toc" class="toc">
15098 <div id="toctitle">
15102 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
15108 Fuzz testing: Parser14-table
15113 <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>
15114 <table style="__TOC__">
15119 <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>
15120 <table style="__TOC__">
15127 # Known to produce bogus xml (extra </td>)
15129 Fuzz testing: Parser16
15158 Fuzz testing: Parser21
15161 ! irc://{{ftp://a" onmouseover="alert('hello world');"
15166 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
15176 Fuzz testing: Parser22
15178 http://===r:::https://b
15182 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
15190 # Known to produce bad XML for now
15192 Fuzz testing: Parser24
15199 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
15200 <br style="onmouseover='alert(document.cookie);' " />
15202 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
15207 <u class="|">}}}} >
15208 <br style="onmouseover='alert(document.cookie);'" />
15210 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
15219 # Note: the current result listed for this is not what the original one was,
15220 # but the original bug was JavaScript injection, which is fixed in any case.
15221 # It's not clear that the original result listed was any more correct than the
15222 # current one. Original result:
15225 # <li class="||">
15226 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
15228 Fuzz testing: Parser25 (bug 6055)
15234 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
15236 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
15241 Fuzz testing: URL adjacent extension (with space, clean)
15243 http://example.com <nowiki>junk</nowiki>
15245 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
15250 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
15252 http://example.com<nowiki>junk</nowiki>
15254 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
15259 Fuzz testing: URL adjacent extension (no space, dirty; pre)
15261 http://example.com<pre>junk</pre>
15263 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
15266 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></p>
15273 Fuzz testing: image with bogus manual thumbnail
15275 [[Image:foobar.jpg|thumbnail= ]]
15277 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
15280 <figure class="mw-default-size" typeof="mw:Error mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"manualthumb","ak":"thumbnail= "}],"dsr":[0,32,2,2]}' data-mw='{"errors":[{"key":"missing-thumbnail","message":"This thumbnail does not exist.","params":{"name":""}}],"thumb":""}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"sa":{},"dsr":[2,30,null,null]}'><img resource="./File:Foobar.jpg" src="./Special:FilePath/" height="220" width="220" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"220","width":"220"},"sa":{"resource":"Image:foobar.jpg"}}'/></a></figure>
15284 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
15286 <pre dir=" "></pre>
15288 <pre dir=" "></pre>
15293 Parsing optional HTML elements (Bug 6171)
15298 <td> Some tabular data</td>
15299 <td> More tabular data ...
15300 <td> And yet som tabular data</td>
15306 <td> Some tabular data</td>
15307 <td> More tabular data ...
15308 </td><td> And yet som tabular data</td>
15315 Correct handling of <td>, <tr> (Bug 6171)
15320 <td> Some tabular data</td>
15321 <td> More tabular data ...</td>
15322 <td> And yet som tabular data</td>
15328 <td> Some tabular data</td>
15329 <td> More tabular data ...</td>
15330 <td> And yet som tabular data</td>
15338 Parsing crashing regression (fr:JavaScript)
15342 <p></body></x>
15347 Inline wiki vs wiki block nesting
15353 <p><b>Bold paragraph</b>
15354 </p><p>New wiki paragraph
15358 # FIXME: The current php output is documented
15359 # and desired output is the parsoid target.
15361 Inline HTML vs wiki block nesting
15367 <p><b>Bold paragraph
15368 </p><p>New wiki paragraph</b>
15371 <p><b>Bold paragraph</b>
15372 </p><p>New wiki paragraph
15376 # Original result was this:
15377 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
15379 # While that might be marginally more intuitive, maybe, the six-apostrophe
15380 # construct is clearly pathological and the result stated here (which is what
15381 # the parser actually does) is about as reasonable as anything.
15383 Mixing markup for italics and bold
15386 '''bold''''''bold''bolditalics'''''
15388 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
15396 Article for special page transclusion test
15400 Special page transclusion
15403 {{Special:Prefixindex/Xyzzyx}}
15405 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15410 Special page transclusion twice (bug 5021)
15413 {{Special:Prefixindex/Xyzzyx}}
15414 {{Special:Prefixindex/Xyzzyx}}
15416 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15417 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15422 Transclusion of default MediaWiki message
15424 {{MediaWiki:Mainpage}}
15431 Transclusion of nonexistent MediaWiki message
15433 {{MediaWiki:Mainpagexxx}}
15435 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
15440 Transclusion of MediaWiki message with underscore
15442 {{MediaWiki:history_short}}
15449 Transclusion of MediaWiki message with space
15451 {{MediaWiki:history short}}
15458 Invalid header with following text
15468 Section extraction test (section 0)
15488 Section extraction test (section 1)
15510 Section extraction test (section 2)
15531 Section extraction test (section 3)
15551 Section extraction test (section 4)
15575 Section extraction test (section 5)
15595 Section extraction test (section 6)
15616 Section extraction test (section 7)
15636 Section extraction test (section 8)
15656 Section extraction test (section 9)
15677 Section extraction test (section 10)
15697 Section extraction test (nonexistent section 11)
15716 Section extraction test with bogus heading (section 1)
15721 ==bogus== not a legal section
15725 ==bogus== not a legal section
15729 Section extraction test with bogus heading (section 2)
15734 ==bogus== not a legal section
15741 Section extraction test with comment after heading (section 1)
15753 Section extraction test with comment after heading (section 2)
15765 Section extraction test with bogus <nowiki> heading (section 1)
15770 ==bogus== <nowiki>not a legal section</nowiki>
15774 ==bogus== <nowiki>not a legal section</nowiki>
15778 Section extraction test with bogus <nowiki> heading (section 2)
15783 ==bogus== <nowiki>not a legal section</nowiki>
15790 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
15791 # instead of respecting commented sections
15793 Section extraction prefixed by comment (section 1)
15804 Section extraction prefixed by comment (section 2)
15815 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
15816 # instead of respecting HTML-style headings
15818 Section extraction, mixed wiki and html (section 1)
15834 Section extraction, mixed wiki and html (section 2)
15850 # Formerly testing for bug 3342
15852 Section extraction, heading surrounded by <noinclude>
15856 <noinclude>==unmarked==</noinclude>
15862 # Test behavior of bug 19910
15864 Sectiion with all-equals
15869 The line above must have a trailing space
15872 But just in case it doesn't...
15876 But just in case it doesn't...
15880 Section replacement test (section 0)
15911 Section replacement test (section 1)
15940 Section replacement test (section 2)
15970 Section replacement test (section 3)
16001 Section replacement test (section 4)
16028 Section replacement test (section 5)
16059 Section replacement test (section 6)
16089 Section replacement test (section 7)
16120 Section replacement test (section 8)
16151 Section replacement test (section 9)
16180 Section replacement test (section 10)
16210 Section replacement test with initial whitespace (bug 13728)
16214 Preformatted initial line
16218 Preformatted initial line
16225 Section extraction, heading followed by pre with 20 spaces (bug 6398)
16237 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
16250 Section extraction, <pre> around bogus header (bug 10309)
16267 Section replacement, <pre> around bogus header (bug 10309)
16269 noxml replace=2,"xxx"
16290 Handling of 
 in URLs
16294 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16297 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://
16299 a</a></li></ul></li></ul>
16303 Handling of %0A in URLs
16307 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16310 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16314 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
16316 5 quotes, code coverage +1 line
16323 <p><b><i></i></b></p>
16326 # same html as previous, but wikitext adjusted to match parsoid html2wt
16327 # note that wt2html and html2html will put the <i> before the <b>
16329 5 quotes, code coverage +1 line w/ nowiki (1)
16331 parsoid=wt2wt,html2wt
16333 '''''<nowiki/>'''''
16338 <p><b><i></i></b></p>
16341 # same as previous, just swapping the <i> and <b>
16343 5 quotes, code coverage +1 line w/ nowiki (2)
16345 '''''<nowiki/>'''''
16350 <p><i><b></b></i></p>
16354 Special:Search page linking.
16358 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
16363 {{!}} is a magic word
16365 {{!}} is a magic word there and {{!}} is still a magic word here
16367 <p>| is a magic word there and | is still a magic word here
16370 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"!","href":"./Template:!"},"params":{},"i":0}}]}' data-parsoid='{"pi":[[]]}'>|</span> is a magic word there and <span about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"!","href":"./Template:!"},"params":{},"i":0}}]}' data-parsoid='{"pi":[[]]}'>|</span> is still a magic word here</p>
16376 title=[[Parser test]]
16381 * {{FULLPAGENAMEE}}
16383 * {{BASEPAGENAMEE}}
16387 * {{ROOTPAGENAMEE}}
16389 * {{TALKPAGENAMEE}}
16390 * {{SUBJECTPAGENAME}}
16391 * {{SUBJECTPAGENAMEE}}
16394 * {{NAMESPACENUMBER}}
16398 * {{SUBJECTSPACEE}}
16399 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
16401 <ul><li> Parser test</li>
16402 <li> Parser_test</li>
16403 <li> Parser test</li>
16404 <li> Parser_test</li>
16405 <li> Parser test</li>
16406 <li> Parser_test</li>
16407 <li> Parser test</li>
16408 <li> Parser_test</li>
16409 <li> Parser test</li>
16410 <li> Parser_test</li>
16411 <li> Talk:Parser test</li>
16412 <li> Talk:Parser_test</li>
16413 <li> Parser test</li>
16414 <li> Parser_test</li>
16422 <li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a></li></ul>
16425 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
16435 image4 |300px| centre
16436 image5.svg| http://///////
16441 <ul class="gallery mw-gallery-traditional">
16442 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16443 <div class="thumb" style="height: 150px;">Image1.png</div>
16444 <div class="gallerytext">
16447 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16448 <div class="thumb" style="height: 150px;">Image2.gif</div>
16449 <div class="gallerytext">
16454 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16455 <div class="thumb" style="height: 150px;">Image3</div>
16456 <div class="gallerytext">
16459 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16460 <div class="thumb" style="height: 150px;">Image4</div>
16461 <div class="gallerytext">
16466 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16467 <div class="thumb" style="height: 150px;">Image5.svg</div>
16468 <div class="gallerytext">
16469 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
16473 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16474 <div class="thumb" style="height: 150px;">* image6</div>
16475 <div class="gallerytext">
16483 Gallery (with options)
16485 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
16486 File:Nonexistent.jpg|caption
16487 File:Nonexistent.jpg
16488 image:foobar.jpg|some '''caption''' [[Main Page]]
16490 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
16493 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
16494 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
16495 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
16496 <div class="thumb" style="height: 70px;">Nonexistent.jpg</div>
16497 <div class="gallerytext">
16502 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
16503 <div class="thumb" style="height: 70px;">Nonexistent.jpg</div>
16504 <div class="gallerytext">
16507 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
16508 <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>
16509 <div class="gallerytext">
16510 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
16514 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
16515 <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>
16516 <div class="gallerytext">
16519 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
16520 <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>
16521 <div class="gallerytext">
16531 Gallery with link that has fragment
16534 image:foobar.jpg|link=Main_Page
16535 image:foobar.jpg|link=Main_Page#section
16536 image:foobar.jpg|link=Main Page#section|caption
16539 <ul class="gallery mw-gallery-traditional">
16540 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16541 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/Main_Page"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
16542 <div class="gallerytext">
16545 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16546 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/Main_Page#section"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
16547 <div class="gallerytext">
16550 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16551 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/Main_Page#section"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
16552 <div class="gallerytext">
16562 Gallery with wikitext inside caption
16565 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
16566 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
16569 <ul class="gallery mw-gallery-traditional">
16570 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16571 <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>
16572 <div class="gallerytext">
16573 <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>
16577 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16578 <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>
16579 <div class="gallerytext">
16580 <p>This is a test template
16589 gallery (with showfilename option)
16591 <gallery showfilename>
16592 File:Nonexistent.jpg|caption
16593 File:Nonexistent.jpg
16594 image:foobar.jpg|some '''caption''' [[Main Page]]
16598 <ul class="gallery mw-gallery-traditional">
16599 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16600 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
16601 <div class="gallerytext">
16602 <p><a href="/wiki/File:Nonexistent.jpg" title="File:Nonexistent.jpg">Nonexistent.jpg</a><br />
16607 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16608 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
16609 <div class="gallerytext">
16610 <p><a href="/wiki/File:Nonexistent.jpg" title="File:Nonexistent.jpg">Nonexistent.jpg</a><br />
16614 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16615 <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>
16616 <div class="gallerytext">
16617 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
16618 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
16622 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16623 <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>
16624 <div class="gallerytext">
16625 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
16634 Gallery (with namespace-less filenames)
16637 File:Nonexistent.jpg
16643 <ul class="gallery mw-gallery-traditional">
16644 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16645 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
16646 <div class="gallerytext">
16649 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16650 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
16651 <div class="gallerytext">
16654 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16655 <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>
16656 <div class="gallerytext">
16659 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
16660 <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>
16661 <div class="gallerytext">
16669 HTML Hex character encoding (spells the word "JavaScript")
16671 parsoid=wt2html,wt2wt,html2html
16673 JavaScript
16675 <p>JavaScript
16680 <p><span typeof="mw:Entity">J</span><span typeof="mw:Entity">a</span><span typeof="mw:Entity">v</span><span typeof="mw:Entity">a</span><span typeof="mw:Entity">S</span><span typeof="mw:Entity">c</span><span typeof="mw:Entity">r</span><span typeof="mw:Entity">i</span><span typeof="mw:Entity">p</span><span typeof="mw:Entity">t</span></p>
16684 HTML Hex character encoding bogus encoding (bug 26437 regression check)
16688 <p>&#xsee;&#XSEE;
16691 <p>&#xsee;&#XSEE;</p>
16695 HTML Hex character encoding mixed case
16697 parsoid=wt2html,wt2wt,html2html
16706 <p><span typeof="mw:Entity">î</span><span typeof="mw:Entity">î</span></p>
16710 __FORCETOC__ override
16722 ISBN 978-0-1234-56 789
16724 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
16727 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789</p>
16731 ISBN followed by 5 spaces
16742 ISBN ISBN 1234567890
16744 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
16753 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
16758 ISBN with empty prefix (parsoid test)
16762 <p><a href="Special:BookSources/1234567890" rel="mw:ExtLink">ISBN 1234567890</a></p>
16766 Bug 22905: <abbr> followed by ISBN followed by </a>
16768 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
16770 <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>
16779 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
16784 Double RFC with a wiki link
16788 <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>
16797 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
16800 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987</p>
16804 Centre-aligned image
16806 [[Image:foobar.jpg|centre]]
16808 <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>
16815 [[Image:foobar.jpg|none]]
16817 <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>
16822 Width + Height sized image (using px) (height is ignored)
16824 [[Image:foobar.jpg|640x480px]]
16826 <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>
16831 Width-sized image (using px, no following whitespace)
16833 [[Image:foobar.jpg|640px]]
16835 <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>
16840 Width-sized image (using px, with following whitespace - test regression from r39467)
16842 [[Image:foobar.jpg|640px ]]
16844 <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>
16849 Width-sized image (using px, with preceding whitespace - test regression from r39467)
16851 [[Image:foobar.jpg| 640px]]
16853 <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>
16858 Image with page parameter
16862 [[File:LoremIpsum.djvu|page=2]]
16864 <p><a href="/index.php?title=File:LoremIpsum.djvu&page=2" class="image"><img alt="LoremIpsum.djvu" src="http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-2480px-LoremIpsum.djvu.jpg" width="2480" height="3508" srcset="http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-3720px-LoremIpsum.djvu.jpg 1.5x, http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-4960px-LoremIpsum.djvu.jpg 2x" /></a>
16867 <p><span class="mw-default-size" typeof="mw:Image" data-parsoid='{"optList":[{"ck":"page","ak":"page=2"}]}'><a href="./File:LoremIpsum.djvu" data-parsoid='{"a":{"href":"./File:LoremIpsum.djvu"},"sa":{}}'><img resource="./File:LoremIpsum.djvu" src="//example.com/images/5/5f/LoremIpsum.djvu" height="3508" width="2480" data-parsoid='{"a":{"resource":"./File:LoremIpsum.djvu","height":"3508","width":"2480"},"sa":{"resource":"File:LoremIpsum.djvu"}}'/></a></span></p>
16871 Another italics / bold test
16879 # FIXME: The php output seems broken. It's interleaving some open/close tags.
16885 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd></dt></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl>
16888 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd></dd></dl></dd></dl></dt></dl></dt></dl></dt></dl></dd></dl>
16893 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
16895 Images with the "|" character in the comment
16897 [[File:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
16899 <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"></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
16902 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>An <a rel="mw:ExtLink" href="http://test/?param1=|left|&param2=|x">external</a> URL</figcaption></figure>
16906 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
16908 <html><script>alert(1);</script></html>
16910 <p><html><script>alert(1);</script></html>
16915 HTML with raw HTML ($wgRawHtml==true)
16919 <html><script>alert(1);</script></html>
16921 <p><script>alert(1);</script>
16926 Parents of subpages, one level up
16928 subpage title=[[Subpage test/L1/L2/L3]]
16932 <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>
16938 Parents of subpages, one level up, not named
16940 subpage title=[[Subpage test/L1/L2/L3]]
16944 <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>
16951 Parents of subpages, two levels up
16953 subpage title=[[Subpage test/L1/L2/L3]]
16959 <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
16960 </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>
16965 Parents of subpages, two levels up, without trailing slash or name.
16967 subpage title=[[Subpage test/L1/L2/L3]]
16976 Parents of subpages, two levels up, with lots of extra trailing slashes.
16978 subpage title=[[Subpage test/L1/L2/L3]]
16982 <p><a href="/index.php?title=Subpage_test/L1&action=edit&redlink=1" class="new" title="Subpage test/L1 (page does not exist)">Subpage test/L1</a>
16987 Subpage test/L1/L2/L3Sibling
16993 Transclusion of a sibling page (one level up)
16995 subpage title=[[Subpage test/L1/L2/L3]]
17004 Transclusion of a child page
17006 subpage title=[[Subpage test/L1/L2]]
17015 Non-transclusion because of too many up levels
17017 subpage title=[[Subpage test/L1/L2/L3]]
17019 {{../../../../More than parent}}
17021 <p>{{../../../../More than parent}}
17026 Definition list code coverage
17032 <dl><dt> title  </dt>
17034 <dt> title </dt>
17040 <dl><dt> title <span typeof="mw:Placeholder"> </span></dt><dd> def</dd>
17041 <dt> title<span typeof="mw:Placeholder"> </span></dt><dd> def</dd>
17042 <dt>title</dt><dd> def</dd></dl>
17046 Don't fall for the self-closing div
17048 <div>hello world</div/>
17050 <div>hello world</div>
17059 <p>[[:Template:Msg]]
17068 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
17072 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
17074 Always escape literal '>' in output, not just after '<'
17088 <p>This is a test template
17089 This is a test template
17101 Inclusion of !userCanEdit() content
17105 <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>
17111 Out-of-order TOC heading levels
17120 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17122 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
17124 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
17125 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
17128 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
17130 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
17131 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
17137 <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>
17138 <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>
17139 <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>
17140 <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>
17141 <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>
17142 <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>
17148 ISBN with a dummy number
17158 ISBN with space-delimited number
17162 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
17168 ISBN with multiple spaces, no number
17187 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
17188 </p><p>ISBN 12345678901
17194 ISBN with trailing year (bug 8110)
17196 ISBN 1-234-56789-0 - 2006
17198 ISBN 1 234 56789 0 - 2006
17200 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
17201 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
17209 {{anchorencode:foo bar©#%n}}
17211 <p>foo_bar.C2.A9.23.25n
17216 anchorencode trims spaces
17218 {{anchorencode: __pretty__please__}}
17225 anchorencode deals with links
17227 {{anchorencode: [[hello|world]] [[hi]]}}
17234 anchorencode deals with templates
17236 {{anchorencode: {{Foo}} }}
17243 anchorencode encodes like the TOC generator: (bug 18431)
17245 === _ +:.3A%3A&&]] ===
17246 {{anchorencode: _ +:.3A%3A&&]] }}
17249 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
17250 <p>.2B:.3A.253A.26.26.5D.5D
17255 Bug 6200: blockquotes and paragraph formatting
17276 Bug 8293: Use of center tag ruins paragraph formatting
17297 Parsing of overlapping (improperly nested) inline html tags
17299 <span><s>x</span></s>
17301 <p><span><s>x</span></s></span>
17304 <p><span><s>x</s></span>
17309 ### Language variants related tests
17312 Self-link in language variants
17314 title=[[Dunav]] language=sr
17316 Both [[Dunav]] and [[Дунав]] are names for this river.
17318 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
17329 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
17331 title=[[Duna]] language=sr
17333 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
17335 <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.
17340 Link to a section of a variant of this title shouldn't be parsed as self-link
17342 title=[[Duna]] language=sr
17344 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
17346 <p><strong class="selflink">Dуна</strong> is a self-link while <a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Dunа#Foo</a> and <a href="/wiki/%D0%94%D1%83%D0%BD%D0%B0" title="Дуна">Dуна#Foo</a> are not self-links.
17351 Link to pages in language variants
17355 Main Page can be written as [[Маин Паге]]
17357 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
17363 Multiple links to pages in language variants
17367 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
17369 <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>.
17375 Simple template in language variants
17381 <p>This is a test template
17387 Template with explicit namespace in language variants
17393 <p>This is a test template
17399 Basic test for template parameter in language variants
17403 {{парамтест|param=foo}}
17405 <p>This is a test template with parameter foo
17411 Simple category in language variants
17415 [[Category:МедиаWики Усер'с Гуиде]]
17417 <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>
17434 Don't convert blue categorylinks to another variant (bug 33210)
17438 [[A]][[Category:分类]]
17440 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
17445 Stripping -{}- tags (language variants)
17449 Latin proverb: -{Ne nuntium necare}-
17451 <p>Latin proverb: Ne nuntium necare
17457 Prevent conversion with -{}- tags (language variants)
17459 language=sr variant=sr-ec
17461 Latinski: -{Ne nuntium necare}-
17463 <p>Латински: Ne nuntium necare
17469 Prevent conversion of text with -{}- tags (language variants)
17471 language=sr variant=sr-ec
17473 Latinski: -{Ne nuntium necare}-
17475 <p>Латински: Ne nuntium necare
17481 Prevent conversion of links with -{}- tags (language variants)
17483 language=sr variant=sr-ec
17487 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
17493 -{}- tags within headlines (within html for parserConvert())
17495 language=sr variant=sr-ec
17499 <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>
17505 Explicit definition of language variant alternatives
17507 language=zh variant=zh-tw
17509 -{zh:China;zh-tw:Taiwan}-, not China
17511 <p>Taiwan, not China
17517 Conversion around HTML tags
17519 language=sr variant=sr-ec
17521 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
17522 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
17525 <span title="ЛаCтин">ски</span>
17531 Explicit session-wise language variant mapping (A flag and - flag)
17533 language=zh variant=zh-tw
17535 Taiwan is not China.
17536 But -{A|zh:China;zh-tw:Taiwan}- is China,
17537 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
17538 and -{China}- is China.
17540 <p>Taiwan is not China.
17541 But Taiwan is Taiwan,
17542 (This should be stripped!)
17543 and China is China.
17548 Explicit session-wise language variant mapping (H flag for hide)
17550 language=zh variant=zh-tw
17552 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
17555 <p>(This should be stripped!)
17561 Adding explicit conversion rule for title (T flag)
17563 language=zh variant=zh-tw showtitle
17565 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
17568 <p>Should be stripped!
17573 Testing that changing the language variant here in the tests actually works
17575 language=zh variant=zh showtitle
17577 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
17580 <p>Should be stripped!
17585 Recursive conversion of alt and title attrs shouldn't clear converter state
17587 language=zh variant=zh-cn showtitle
17589 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
17590 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
17594 Should be stripped<span title="Exclamation">!</span>
17599 Bug 24072: more test on conversion rule for title
17601 language=zh variant=zh-tw showtitle
17603 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
17604 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
17607 <p>This should be stripped!
17608 This won't take interferes with the title rule.
17613 Partly disable title conversion if variant == main language code
17615 language=zh variant=zh title=[[ZH]] showtitle
17617 -{T|zh-cn:CN;zh-tw:TW}-
17625 Partly disable title conversion if variant == main language code, more
17627 language=zh variant=zh title=[[ZH]] showtitle
17637 Raw output of variant escape tags (R flag)
17639 language=zh variant=zh-tw
17641 Raw: -{R|zh:China;zh-tw:Taiwan}-
17643 <p>Raw: zh:China;zh-tw:Taiwan
17648 Nested using of manual convert syntax
17650 language=zh variant=zh-hk
17652 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
17654 <p>Nested: Hello Hong Kong!
17659 Proper conversion of text in external links
17661 language=sr variant=sr-ec
17663 http://www.google.com
17664 gopher://www.google.com
17665 [http://www.google.com http://www.google.com]
17666 [gopher://www.google.com gopher://www.google.com]
17667 [https://www.google.com irc://www.google.com]
17668 [ftp://www.google.com www.google.com/ftp://dir]
17669 [//www.google.com www.google.com]
17671 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
17672 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
17673 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
17674 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
17675 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
17676 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
17677 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
17682 Do not convert roman numbers to language variants
17684 language=sr variant=sr-ec
17688 <p>Фридрих IV је цар.
17693 Unclosed language converter markup "-{"
17704 Don't convert raw rule "-{R|=>}-" to "=>"
17715 Don't break link parsing if language converter markup is in the caption.
17717 language=sr variant=sr-ec
17719 [[Main Page|-{R|main page}-]]
17721 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
17725 # FIXME: This test is currently broken in the PHP parser (bug 52661)
17727 Don't break image parsing if language converter markup is in the caption.
17731 [[File:Foobar.jpg|-{R|caption}-]]
17733 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
17737 # FIXME: This test is currently broken in the PHP parser (bug 52661)
17739 Don't break list handling if language converter markup is in the item.
17741 language=zh variant=zh-cn
17743 ;-{zh-cn:AAA;zh-tw:BBB}-
17745 <dl><dt><span class="error">在手动语言转换规则中检测到错误</span></dd></dl>
17752 # FIXME: This test is currently broken in the PHP parser (bug 52661)
17754 Don't break table handling if language converter markup is in the cell.
17756 language=sr variant=sr-ec
17779 Bug 529: Uncovered bullet
17788 # Plain MediaWiki does not remove empty lists, but tidy actually does.
17789 # Templates in Wikipedia rely on this behavior, as tidy has always been
17790 # enabled there. These tests are normally run *without* tidy, so specify the
17791 # full output here.
17792 # To test realistic parsing behavior, apply a tidy-like transformation to both
17793 # the expected output and your parser's output.
17795 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
17797 ******* Foo {{bullet}}
17799 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo </li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li>
17805 Bug 529: Uncovered table already at line-start
17828 Bug 529: Uncovered bullet in parser function result
17830 * Foo {{lc:{{bullet}} }}
17838 Bug 5678: Double-parsed template argument
17840 {{lc:{{{1}}}|hello}}
17847 Bug 5678: Double-parsed template invocation
17849 {{lc:{{paramtest {{!}} param = hello }} }}
17851 <p>{{paramtest | param = hello }}
17856 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
17859 title=[[Main Page]]
17861 {{PRVNÍVELKÉ:ěščř}}
17862 {{prvnívelké:ěščř}}
17882 Morwen/13: Unclosed link followed by heading
17889 <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>
17894 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
17901 <h1><span class="mw-headline" id="heading">heading</span></h1>
17906 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
17913 <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>
17928 Paragraphs inside divs (no extra line breaks)
17940 Paragraphs inside divs (extra line break on open)
17955 Paragraphs inside divs (extra line break on close)
17970 Paragraphs inside divs (extra line break on open and close)
17987 Nesting tags, paragraphs on lines which begin with <div>
17989 <div></div><strong>A
17992 <p><strong>A</strong></p>
17993 <p><strong>B</strong></p>
18001 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
18003 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
18005 <blockquote>Line one
18007 Line two</blockquote>
18009 <blockquote>Line one
18010 Line two</blockquote>
18014 <p>Line one Line two</p>
18019 Bug 6200: paragraphs inside blockquotes (extra line break on open)
18024 Line two</blockquote>
18029 Line two</blockquote>
18034 Line two</blockquote>
18038 Bug 6200: paragraphs inside blockquotes (extra line break on close)
18040 <blockquote>Line one
18045 <blockquote>Line one
18058 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
18080 Paragraphs inside blockquotes/divs (no extra line breaks)
18082 <blockquote><div>Line one
18084 Line two</div></blockquote>
18086 <blockquote><div>Line one
18087 Line two</div></blockquote>
18092 Paragraphs inside blockquotes/divs (extra line break on open)
18097 Line two</div></blockquote>
18102 Line two</div></blockquote>
18107 Paragraphs inside blockquotes/divs (extra line break on close)
18109 <blockquote><div>Line one
18112 </div></blockquote>
18114 <blockquote><div>Line one
18117 </div></blockquote>
18122 Paragraphs inside blockquotes/divs (extra line break on open and close)
18128 </div></blockquote>
18134 </div></blockquote>
18139 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
18141 wgLinkHolderBatchSize=0
18147 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
18148 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
18149 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
18154 Free external link invading image caption
18156 [[Image:Foobar.jpg|thumb|http://x|hello]]
18158 <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"></a></div>hello</div></div></div>
18163 Bug 15196: localised external link numbers
18167 [http://en.wikipedia.org/]
18169 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
18172 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/"></a></p>
18176 Multibyte character in padleft
18178 {{padleft:-Hello|7|Æ}}
18185 Multibyte character in padright
18187 {{padright:Hello-|7|Æ}}
18194 formatdate parser function
18196 {{#formatdate:2009-03-24}}
18198 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
18203 formatdate parser function, with default format
18205 {{#formatdate:2009-03-24|mdy}}
18207 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
18212 Spacing of numbers in formatted dates
18214 {{#formatdate:January 15}}
18216 <p><span class="mw-formatted-date" title="01-15">January 15</span>
18221 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
18223 language=nl title=[[MediaWiki:Common.css]]
18225 {{#formatdate:2009-03-24|dmy}}
18227 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
18240 Edit comment with link
18244 I like the [[Main Page]] a lot
18246 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
18250 Edit comment with link and link text
18254 I like the [[Main Page|best pages]] a lot
18256 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
18260 Edit comment with link and link text with suffix
18264 I like the [[Main Page|best page]]s a lot
18266 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
18270 Edit comment with section link (non-local, eg in history list)
18272 comment title=[[Main Page]]
18274 /* External links */ removed bogus entries
18276 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
18280 Edit comment with section link and text before it (non-local, eg in history list)
18282 comment title=[[Main Page]]
18284 pre-comment text /* External links */ removed bogus entries
18286 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>
18290 Edit comment with section link (local, eg in diff view)
18292 comment local title=[[Main Page]]
18294 /* External links */ removed bogus entries
18296 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
18300 Edit comment with subpage link (bug 14080)
18304 title=[[Subpage test]]
18306 Poked at a [[/subpage]] here...
18308 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
18312 Edit comment with subpage link and link text (bug 14080)
18316 title=[[Subpage test]]
18318 Poked at a [[/subpage|neat little page]] here...
18320 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
18324 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
18327 title=[[Subpage test]]
18329 Poked at a [[/subpage]] here...
18331 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
18335 Edit comment with bare anchor link (local, as on diff)
18339 title=[[Main Page]]
18343 <a href="#section">#section</a>
18347 Edit comment with bare anchor link (non-local, as on history)
18350 title=[[Main Page]]
18354 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
18358 Anchor starting with underscore
18362 <p><a href="#_ref">One</a>
18367 Id starting with underscore
18369 <div id="_ref"></div>
18371 <div id="_ref"></div>
18376 Space normalisation on autocomment (bug 22784)
18379 title=[[Main Page]]
18381 /* __hello__world__ */
18383 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
18387 percent-encoding and + signs in comments (Bug 26410)
18391 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
18393 <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>
18396 # Parsoid doesn't support this yet: see bug 73581
18397 # but it *should* omit the 'src' attribute if the image is bad.
18398 # PHP side of tests was disabled in
18399 # mediawiki/core:6bd31e7d95161a6e88fa86df60871051da997c3c
18400 # because of issues in the PHP parserTests infrastructure
18401 # (but the output below is indeed what the PHP side emits)
18403 Bad images - basic functionality
18406 !! DISABLED/html/php
18408 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"bad-image","message":"This image is blacklisted in this context."}]}'><a href="File:Bad.jpg"><img resource="./File:Bad.jpg" height="220" width="220"/></a></span></p>
18412 Bad images - bug 16039: text after bad image disappears
18417 !! DISABLED/html/php
18423 <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"bad-image","message":"This image is blacklisted in this context."}]}'><a href="File:Bad.jpg"><img resource="./File:Bad.jpg" height="220" width="220"/></a></span>
18428 Verify that displaytitle works (bug #22501) no displaytitle
18432 wgAllowDisplayTitle=true
18433 wgRestrictDisplayTitle=false
18435 this is not the the title
18438 <p>this is not the the title
18443 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
18448 wgAllowDisplayTitle=true
18449 wgRestrictDisplayTitle=false
18451 this is not the the title
18452 {{DISPLAYTITLE:whatever}}
18455 <p>this is not the the title
18460 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
18465 wgAllowDisplayTitle=true
18466 wgRestrictDisplayTitle=true
18468 this is not the the title
18469 {{DISPLAYTITLE:whatever}}
18472 <p>this is not the the title
18477 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
18482 wgAllowDisplayTitle=true
18483 wgRestrictDisplayTitle=true
18485 this is not the the title
18486 {{DISPLAYTITLE:screen}}
18489 <p>this is not the the title
18494 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
18499 wgAllowDisplayTitle=false
18501 this is not the the title
18502 {{DISPLAYTITLE:screen}}
18505 <p>this is not the the title
18506 <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>
18511 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
18516 wgAllowDisplayTitle=false
18518 this is not the the title
18521 <p>this is not the the title
18526 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
18531 wgAllowDisplayTitle=true
18532 wgRestrictDisplayTitle=true
18534 this is not the the title
18535 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
18537 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
18538 <p>this is not the the title
18543 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
18548 wgAllowDisplayTitle=true
18549 wgRestrictDisplayTitle=true
18551 this is not the the title
18552 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
18554 <span style="color: red;">s</span>creen
18555 <p>this is not the the title
18560 preload: check <noinclude> and <includeonly>
18564 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
18570 preload: check <onlyinclude>
18574 Goodbye <onlyinclude>Hello world</onlyinclude>
18580 preload: can pass tags through if we want to
18584 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
18586 <includeonly>Hello world</includeonly>
18590 preload: check that it doesn't try to do tricks
18594 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
18596 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
18600 Play a bit with r67090 and bug 3158
18602 <div style="width:50% !important"> </div>
18603 <div style="width:50% !important"> </div>
18604 <div style="width:50% !important"> </div>
18605 <div style="border : solid;"> </div>
18607 <div style="width:50% !important"> </div>
18608 <div style="width:50% !important"> </div>
18609 <div style="width:50% !important"> </div>
18610 <div style="border : solid;"> </div>
18613 <div style="width:50% !important" data-parsoid='{"stx":"html"}'><span typeof="mw:Entity" data-parsoid='{"src":"&nbsp;","srcContent":" "}'> </span></div>
18614 <div style="width:50% !important" data-parsoid='{"stx":"html","a":{"style":"width:50% !important"},"sa":{"style":"width:50%&nbsp;!important"}}'><span typeof="mw:Entity" data-parsoid='{"src":"&nbsp;","srcContent":" "}'> </span></div>
18615 <div style="width:50% !important" data-parsoid='{"stx":"html","a":{"style":"width:50% !important"},"sa":{"style":"width:50%&#160;!important"}}'><span typeof="mw:Entity" data-parsoid='{"src":"&nbsp;","srcContent":" "}'> </span></div>
18616 <div style="border : solid;" data-parsoid='{"stx":"html"}'><span typeof="mw:Entity" data-parsoid='{"src":"&nbsp;","srcContent":" "}'> </span></div>
18621 HTML5 data attributes
18623 <span data-foo="bar">Baz</span>
18624 <p data-abc-def_hij="">Quuz</p>
18626 <p><span data-foo="bar">Baz</span>
18628 <p data-abc-def_hij="">Quuz</p>
18633 percent-encoding and + signs in internal links (Bug 26410)
18635 [[User:+%]] [[Page+title%]]
18636 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
18637 [[%]] [[+]] [[File:%+abc%39|foo|[[bar]]]]
18638 [[%33%45]] [[%33%45+]]
18640 <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>
18641 <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>
18642 <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>
18643 <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>
18646 <p><a rel="mw:WikiLink" href="User:+%" title="User:+%">User:+%</a> <a rel="mw:WikiLink" href="Page+title%" title="Page+title%">Page+title%</a> <a rel="mw:WikiLink" href="%+" title="%+">%+</a> <a rel="mw:WikiLink" href="%+" title="%+">%20</a> <a rel="mw:WikiLink" href="%+" title="%+">%+ </a> <a rel="mw:WikiLink" href="%+r" title="%+r">%+r</a> <a rel="mw:WikiLink" href="%" title="%">%</a> <a rel="mw:WikiLink" href="+" title="+">+</a> <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"[[bar]]"}'><a href="File:%+abc9"><img resource="./File:%25+abc9" src="./Special:FilePath/%+abc9" height="220" width="220"/></a></span> <a rel="mw:WikiLink" href="3E" title="3E">3E</a> <a rel="mw:WikiLink" href="3E+" title="3E+">3E+</a></p>
18650 Special characters in embedded file links (bug 27679)
18652 [[File:Contains & ampersand.jpg]]
18653 [[File:Does not exist.jpg|Title with & ampersand]]
18655 <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>
18656 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
18659 <p><span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}]}'><a href="File:Contains_&_ampersand.jpg"><img resource="./File:Contains_&_ampersand.jpg" src="./Special:FilePath/Contains_&_ampersand.jpg" height="220" width="220"/></a></span>
18660 <span class="mw-default-size" typeof="mw:Error mw:Image" data-mw='{"errors":[{"key":"missing-image","message":"This image does not exist."}],"caption":"Title with & ampersand"}'><a href="File:Does_not_exist.jpg"><img resource="./File:Does_not_exist.jpg" src="./Special:FilePath/Does_not_exist.jpg" height="220" width="220"/></a></span></p>
18664 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
18666 Text's been normalized?
18668 <p>Text's been normalized?
18673 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
18675 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
18677 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
18682 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
18684 [http://www.example.org/ ideograms]
18686 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
18691 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
18693 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
18695 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
18719 Bug 31098 Template which includes system messages which includes the template
18723 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
18724 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
18729 Bug31490 Turkish: ucfirst 'blah'
18740 Bug31490 Turkish: ucfirst 'ix'
18751 Bug31490 Turkish: lcfirst 'BLAH'
18762 Bug31490 Turkish: ucfırst (with a dotless i)
18768 <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>
18773 Bug31490 ucfırst (with a dotless i) with English language
18779 <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>
18784 Bug 26375: TOC with italics
18786 title=[[Main Page]]
18789 == ''Lost'' episodes ==
18791 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18793 <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>
18797 <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>
18802 Bug 26375: TOC with bold
18804 title=[[Main Page]]
18807 == '''should be bold''' then normal text ==
18809 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18811 <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>
18815 <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>
18820 Bug 33845: Headings become cursive in TOC when they contain an image
18822 title=[[Main Page]]
18825 == Image [[Image:foobar.jpg]] ==
18827 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18829 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
18833 <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>
18838 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
18840 title=[[Main Page]]
18843 == <blockquote>Quote</blockquote> ==
18845 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18847 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
18851 <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>
18854 <div id="toc" class="toc">
18855 <div id="toctitle">
18859 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
18862 <h2><span class="mw-headline" id="Quote"></span></h2>
18864 <p><span class="mw-headline" id="Quote">Quote</span></p>
18866 <p><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></p>
18870 Unclosed tags in TOC
18872 title=[[Main Page]]
18876 <small>Hanc marginis exiguitas non caperet.</small>
18879 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18881 <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>
18885 <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>
18886 <p><small>Hanc marginis exiguitas non caperet.</small>
18892 Multiple tags in TOC
18895 == <i>Foo</i> <b>Bar</b> ==
18897 == <i>Foo</i> <blockquote>Bar</blockquote> ==
18899 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18901 <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>
18902 <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>
18906 <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>
18907 <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>
18910 <div id="toc" class="toc">
18911 <div id="toctitle">
18915 <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>
18916 <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>
18919 <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>
18920 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i></span></h2>
18922 <p><span class="mw-headline" id="Foo_Bar_2">Bar</span></p>
18924 <p><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></p>
18928 Tags with parameters in TOC
18931 == <sup class="in-h2">Hello</sup> ==
18933 == <sup class="a > b">Evilbye</sup> ==
18935 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18937 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
18938 <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>
18942 <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>
18943 <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>
18948 span tags with directionality in TOC
18951 == <span dir="ltr">C++</span> ==
18953 == <span dir="rtl">זבנג!</span> ==
18955 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
18957 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
18959 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
18961 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
18963 <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>
18964 <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>
18965 <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>
18966 <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>
18967 <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>
18971 <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>
18972 <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>
18973 <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>
18974 <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>
18975 <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>
18982 == {{int:headline_sample}} ==
18986 Bug 32057: Title needed when expanding <h> nodes.
18988 title=[[Main Page]]
18992 <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>
18997 Strip marker in urlencode
18999 {{urlencode:x<nowiki/>y}}
19000 {{urlencode:x<nowiki/>y|wiki}}
19001 {{urlencode:x<nowiki/>y|path}}
19028 Strip marker in formatNum
19030 {{formatnum:1<nowiki/>2}}
19031 {{formatnum:1<nowiki/>2|R}}
19039 Check noCommafy in formatNum
19043 {{formatnum:123456.78}}
19044 {{formatnum:123456.78|NOSEP}}
19052 Wrong option for formatNum (bug 56199)
19054 {{formatnum:1,234.56|Random}}
19055 {{formatnum:1,234.56|EVERYTHING}}
19056 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
19065 Strip marker in grammar
19069 {{grammar:elative|foo<nowiki/>bar}}
19076 Strip marker in padleft
19078 {{padleft:|2|x<nowiki/>y}}
19085 Strip marker in padright
19087 {{padright:|2|x<nowiki/>y}}
19094 Strip marker in anchorencode
19096 {{anchorencode:x<nowiki/>y}}
19103 nowiki inside link inside heading (bug 18295)
19105 ==[[foo|x<nowiki>y</nowiki>z]]==
19107 <h2><span class="mw-headline" id="xyz"><a href="/wiki/Foo" title="Foo">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>
19112 new support for bdi element (bug 31817)
19114 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
19116 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
19121 Ignore pipe between table row attributes
19125 |- id=foo | style='color: red'
19133 <tr id="foo" style="color: red">
19140 Gallery override link with WikiLink (bug 34852)
19143 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
19146 <ul class="gallery mw-gallery-traditional">
19147 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19148 <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>
19149 <div class="gallerytext">
19159 Gallery override link with absolute external link (bug 34852)
19162 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
19165 <ul class="gallery mw-gallery-traditional">
19166 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19167 <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>
19168 <div class="gallerytext">
19178 Gallery override link with malicious javascript (bug 34852)
19181 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
19184 <ul class="gallery mw-gallery-traditional">
19185 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19186 <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>
19187 <div class="gallerytext">
19197 Gallery with invalid title as link (bug 43964)
19200 File:foobar.jpg|link=<
19203 <ul class="gallery mw-gallery-traditional">
19204 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19205 <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>
19206 <div class="gallerytext">
19214 Language parser function
19223 Padleft and padright as substr
19225 {{padleft:|3|abcde}}
19226 {{padright:|3|abcde}}
19234 Special parser function
19236 {{#special:RandomPage}}
19237 {{#special:BaDtItLe}}
19238 {{#special:Foobar}}
19247 Bug 34939 - Case insensitive link parsing ([HttP://])
19249 [HttP://MediaWiki.Org/]
19251 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
19254 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/"></a></p>
19258 Bug 34939 - Case insensitive link parsing ([HttP:// title])
19260 [HttP://MediaWiki.Org/ MediaWiki]
19262 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
19267 Bug 34939 - Case insensitive link parsing (HttP://)
19269 HttP://MediaWiki.Org/
19271 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
19274 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a></p>
19292 <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>
19293 <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=2" title="Edit section: Section 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19294 <h2><span class="mw-headline" id="Section_3">Section 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: Section 3">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19295 <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=4" title="Edit section: Section 4">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19296 <h2><span class="mw-headline" id="Section_5">Section 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: Section 5">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19302 ### Parsoid-specific tests
19303 ### Parsoid-PHP parser incompatibilities
19306 1. SOL-sensitive wikitext tokens as template-args
19308 parsoid=wt2html,wt2wt
19314 <span about="#mwt1" typeof="mw:Transclusion">
19315 </span><ul about="#mwt1"><li>a</li>
19317 <span about="#mwt2" typeof="mw:Transclusion">
19318 </span><ol about="#mwt2"><li>a</li>
19320 <span about="#mwt3" typeof="mw:Transclusion">
19321 </span><dl about="#mwt3"><dd>a</dd>
19325 #### -----------------------------------------------------------------
19326 #### Parsoid-specific functionality tests
19327 #### -----------------------------------------------------------------
19329 # Bug 63642/66749: Formatting elt fixup around images is cleaned up.
19330 # We know wt2wt will fail, but we expect selser to pass.
19331 # Due to the nature of our testing, wt2wt and selser tests will enter the
19332 # blacklist and we'll catch selser regressions based on changes to the
19333 # blacklist entries for selser tests.
19335 1. Bad treebuilder fixup of formatting elt is cleaned up
19337 parsoid=wt2html,wt2wt
19342 [[Image:Foobar.jpg|right|Test]]
19349 <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>Test</figcaption></figure>
19356 2. Bad treebuilder fixup of formatting elt is cleaned up
19358 parsoid=wt2html,wt2wt
19360 '''foo[[File:Foobar.jpg|thumb|caption]]bar'''
19362 <small>[[Image:Foobar.jpg|right|300px]]</small>
19365 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption><b>caption</b></figcaption></figure>
19367 <small><figure class="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="34" width="300"/></a></figure></small>
19370 #### ----------------------------------------------------------------
19371 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
19372 #### tags. Parsoid's output for these tags differs from that of the
19374 #### ----------------------------------------------------------------
19377 Ref: 1. ref-location should be replaced with an index span
19382 B <ref name="x">foo</ref>
19385 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
19386 B <span about="#mwt4" class="reference" id="cite_ref-x-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}'><a href="#cite_note-x-2">[2]</a></span>
19387 C <span about="#mwt6" class="reference" id="cite_ref-y-3-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"y"}}'><a href="#cite_note-y-3">[3]</a></span></p>
19391 Ref: 2. ref-tags with identical names should all get the same index
19395 A <ref name="x">foo</ref>
19398 <p>A <span about="#mwt2" class="reference" id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span>
19399 B <span about="#mwt4" class="reference" id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span></p>
19403 Ref: 3. spaces in ref-names should be ignored
19407 A <ref name="x">foo</ref>
19408 B <ref name=" x " />
19411 <p>A <span about="#mwt2" class="reference" id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span>
19412 B <span about="#mwt4" class="reference" id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span>
19413 C <span about="#mwt6" class="reference" id="cite_ref-x-1-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span></p>
19416 # NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
19418 Ref: 4. 'constructor' should be accepted as a valid ref-name
19422 A <ref name="constructor">foo</ref>
19424 <p>A <span about="#mwt2" class="reference" id="cite_ref-constructor-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"constructor"}}'><a href="#cite_note-constructor-1">[1]</a></span></p>
19428 Ref: 5. body should accept generic wikitext
19433 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
19438 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid='{\"dsr\":[19,40,3,3]}'><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" title=\"Bolded link\" data-parsoid='{\"stx\":\"simple\",\"a\":{\"href\":\"./Bolded_link\"},\"sa\":{\"href\":\"bolded link\"},\"dsr\":[22,37,2,2]}'>bolded link</a></b> and this is a <span about=\"#mwt3\" typeof=\"mw:Transclusion\" data-parsoid='{\"pi\":[[{\"k\":\"1\",\"spc\":[\"\",\"\",\"\",\"\"]}]],\"dsr\":[55,76,null,null]}' data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"echo\",\"href\":\"./Template:Echo\"},\"params\":{\"1\":{\"wt\":\"transclusion\"}},\"i\":0}}]}'>transclusion</span>\n"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
19440 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
19441 <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" title="Bolded link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}},"i":0}}]}'>transclusion</span>
19447 Ref: 6. indent-pres should not be output in ref-body
19459 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo\n bar\n baz\n"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
19461 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
19462 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
19470 Ref: 7. No p-wrapping in ref-body
19489 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo\n\nbar\n\n\nbaz\n\n\n\nbooz\n"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
19491 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
19492 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
19507 Ref: 8. transclusion wikitext has lower precedence
19511 A <ref> foo {{echo|</ref> B C}}
19515 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid='{\"src\":\"{{\",\"dsr\":[12,14,0,0]}'>{{</span>echo|"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
19516 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
19517 <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>
19522 Ref: 9. unclosed comments should not leak out of ref-body
19526 A <ref> foo <!--</ref> B C
19529 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo <!---->"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C</p>
19530 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
19531 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li>
19536 Ref: 10. Unclosed HTML tags should not leak out of ref-body
19540 A <ref> <b> foo </ref> B C
19544 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"<b data-parsoid='{\"stx\":\"html\",\"autoInsertedEnd\":true,\"dsr\":[8,16,3,0]}'> foo </b>"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C</p>
19547 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
19548 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b data-parsoid='{"stx":"html","autoInsertedEnd":true}'> foo </b></li>
19553 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
19560 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B
19561 C <span about="#mwt4" class="reference" id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}'><a href="#cite_note-2">[2]</a></span> D</p>
19565 Ref: 12. ref-tags act as trailing newline migration barrier
19569 <!--the newline at the end of this line moves out of the p-tag-->a
19571 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
19576 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
19579 <p>b<!--the newline at the end of this line stays inside the p-tag--> <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{}}'><a href="#cite_note-1">[1]</a></span>
19580 <span about="#mwt4" class="reference" id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{}}'><a href="#cite_note-2">[2]</a></span></p>
19586 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
19594 <p><span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> A
19595 <span about="#mwt4" class="reference" id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"bar\n"},"attrs":{}}'><a href="#cite_note-2">[2]</a></span> B</p>
19599 Ref: 14. A nested ref-tag should be emitted as plain text
19603 <ref>foo <ref>bar</ref> baz</ref>
19607 <p><span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo &lt;ref>bar&lt;/ref> baz"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
19609 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
19610 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <ref>bar</ref> baz</li>
19615 Ref: 15. ref-tags with identical names should get identical indexes
19619 A1 <ref name="a">foo</ref> A2 <ref name="a" />
19620 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
19624 <p>A1 <span about="#mwt3" class="reference" id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"a"}}'><a href="#cite_note-a-1">[1]</a></span> A2 <span about="#mwt4" class="reference" id="cite_ref-a-1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"a"}}'><a href="#cite_note-a-1">[1]</a></span>
19625 B1 <span about="#mwt7" class="reference" id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"b"}}'><a href="#cite_note-b-2">[2]</a></span> B2 <span about="#mwt8" class="reference" id="cite_ref-b-2-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}'><a href="#cite_note-b-2">[2]</a></span></p>
19627 <ol class="references" typeof="mw:Extension/references" about="#mwt10" data-mw='{"name":"references","attrs":{}}'><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>
19631 ## We don't bother wt2wt-ing non-standard whitespace
19633 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
19641 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
19643 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
19644 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
19648 Ref: 17. Generate valid HTML5 id/about attributes
19652 <ref name="a b">foo</ref>
19656 <p><span class="reference" id="cite_ref-a_b-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"a b"}}'><a href="#cite_note-a_b-1">[1]</a></span>
19659 <ol class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'>
19660 <li id="cite_note-a_b-1"><span rel="mw:referencedBy"><a href="#cite_ref-a_b-1-0">↑</a></span> foo</li>
19664 References: 1. references tag without any refs should be handled properly
19670 <ol about="#mwt2" class="references" typeof="mw:Extension/references" data-mw='{"name":"references","attrs":{}}'></ol>
19674 References: 2. references tag with group only outputs references from that group
19678 A <ref group="a">foo</ref>
19679 B <ref group="b">bar</ref>
19681 <references group="a" />
19683 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"group":"a"}}'><a href="#cite_note-1">[a 1]</a></span>
19684 B <span about="#mwt4" class="reference" id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}'><a href="#cite_note-2">[b 1]</a></span></p>
19686 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{"group":"a"}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li>
19691 References: 3. ref list should be cleared after processing references
19703 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
19705 <ol class="references" typeof="mw:Extension/references" about="#mwt4" 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</li>
19708 <p>B <span about="#mwt6" class="reference" id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}'><a href="#cite_note-2">[1]</a></span></p>
19710 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> bar</li>
19715 References: 4. only referenced group should be cleared after processing references
19719 A <ref group="a">afoo</ref>
19722 <references group="a" />
19728 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"afoo"},"attrs":{"group":"a"}}'><a href="#cite_note-1">[a 1]</a></span>
19729 B <span about="#mwt4" class="reference" id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}'><a href="#cite_note-2">[1]</a></span></p>
19731 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{"group":"a"}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> afoo</li>
19734 <p>C <span about="#mwt8" class="reference" id="cite_ref-3-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}'><a href="#cite_note-3">[2]</a></span></p>
19736 <ol class="references" typeof="mw:Extension/references" about="#mwt10" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> bfoo</li><li about="#cite_note-3" id="cite_note-3"><span rel="mw:referencedBy"><a href="#cite_ref-3-0">↑</a></span> cfoo</li>
19741 References: 5. ref tags in references should be processed while ignoring all other content
19746 B <ref name="b">bar</ref>
19749 <ref name="a">foo</ref>
19750 This should just get lost.
19753 <p>A <span about="#mwt2" class="reference" id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"a"}}'><a href="#cite_note-a-1">[1]</a></span>
19754 B <span about="#mwt4" class="reference" id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}'><a href="#cite_note-b-2">[2]</a></span></p>
19757 <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":"\n<span about=\"#mwt8\" class=\"reference\" rel=\"dc:references\" typeof=\"mw:Extension/ref\" data-parsoid='{\"src\":\"&lt;ref name=\\\"a\\\">foo&lt;/ref>\",\"dsr\":[59,82,14,6]}' data-mw='{\"name\":\"ref\",\"body\":{\"html\":\"foo\"},\"attrs\":{\"name\":\"a\"}}'><a href=\"#cite_note-a-1\">[1]</a></span>\n"},"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>
19762 References: 6. <references /> from a transclusion
19766 <ref>Foo</ref> {{echo|<references />}}
19768 <p><span about="#mwt3" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"Foo"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p> <ol class="references" typeof="mw:Extension/references mw:Transclusion" about="#mwt4" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}}]}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> Foo</li></ol>
19772 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
19776 A <ref>foo bar for a</ref>
19777 B <ref group="X" name="b" />
19781 <references group="X">
19782 <ref name="b">foo</ref>
19785 <p>A <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo bar for a"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
19786 B <span about="#mwt4" class="reference" id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"group":"X","name":"b"}}'><a href="#cite_note-b-2">[X 1]</a></span></p>
19788 <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></ol>
19790 <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\" rel=\"dc:references\" typeof=\"mw:Extension/ref\" data-parsoid='{\"src\":\"&lt;ref name=\\\"b\\\">foo&lt;/ref>\",\"dsr\":[96,119,14,6]}' data-mw='{\"name\":\"ref\",\"body\":{\"html\":\"foo\"},\"attrs\":{\"name\":\"b\"}}'><a href=\"#cite_note-b-2\">[X 1]</a></span>\n"},"attrs":{"group":"X"}}'><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> foo</li></ol>
19794 Entities in ref name
19798 <ref name="test & me">hi</ref>
19800 <p><span about="#mwt2" class="reference" id="cite_ref-test_&_me-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref name=\"test &amp; me\">hi</ref>"}' data-mw='{"name":"ref","body":{"html":"hi"},"attrs":{"name":"test & me"}}'><a href="#cite_note-test_&_me-1">[1]</a></span></p>
19803 # This test is wt2html only because we're permitting the serializer to produce
19804 # dirty diffs, normalizing the unclosed references to the self-closed version.
19806 Generate references for unclosed references tag
19814 <p>a<span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
19817 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
19818 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
19822 New reference serializes on its own line
19824 parsoid=wt2wt,html2wt
19829 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
19832 #--------- Test stripping of empty nodes in template content ----------
19834 Empty LI and TR nodes should be stripped from template content
19839 <ul typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyLITest","href":"./Template:EmptyLITest"},"params":{},"i":0}}]}'>
19843 <table typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyTRTest","href":"./Template:EmptyTRTest"},"params":{},"i":0}}]}'>
19856 Empty LI and TR nodes should not be stripped from top-level content
19883 Empty TR nodes should not be stripped if they have any attributes set
19885 {{EmptyTRWithHTMLAttrTest}}
19887 <table typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyTRWithHTMLAttrTest","href":"./Template:EmptyTRWithHTMLAttrTest"},"params":{},"i":0}}]}'>
19888 <tr align="center"></tr>
19889 <tr><td>foo</td></tr>
19890 <tr align="center"></tr>
19891 <tr><td>bar</td></tr>
19895 #### ----------------------------------------------------------------
19896 #### The following section of tests are primarily to test
19897 #### wikitext escaping capabilities of Parsoid. Given that
19898 #### escaping can be done any number of ways, the wikitext (input)
19899 #### is always adjusted to reflect how Parsoid adds nowiki
19902 #### We are marking several tests as parsoid-only since the
19903 #### HTML in the result section is different from what the
19904 #### PHP parser generates for it.
19905 #### ----------------------------------------------------------------
19908 #### --------------- Headings ---------------
19910 #### 1. Nested inside html <h1>=foo=</h1>
19911 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
19912 #### 3. Nested inside html with wikitext split by html tags
19913 #### 4. No escape needed
19914 #### 5. Empty headings <h1></h1>
19915 #### 6. Heading chars in SOL context
19916 #### ----------------------------------------
19918 Headings: 0. Unnested
19922 <nowiki>=foo=</nowiki>
19924 <nowiki> =foo= </nowiki>
19926 <nowiki>=foo=</nowiki>
19928 =foo''a''<nowiki>=</nowiki>
19930 <p><span typeof="mw:Nowiki">=foo=</span></p>
19932 <p><span typeof="mw:Nowiki"> =foo= </span>
19934 <span typeof="mw:Nowiki">=foo=</span></p>
19936 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
19939 # New headings and existing headings are handled differently
19941 Headings: 1. Nested inside html
19951 =<nowiki>=foo=</nowiki>=
19952 ==<nowiki>=foo=</nowiki>==
19953 ===<nowiki>=foo=</nowiki>===
19954 ====<nowiki>=foo=</nowiki>====
19955 =====<nowiki>=foo=</nowiki>=====
19956 ======<nowiki>=foo=</nowiki>======
19963 <h1 data-parsoid=''>=foo=</h1>
19964 <h2 data-parsoid=''>=foo=</h2>
19965 <h3 data-parsoid=''>=foo=</h3>
19966 <h4 data-parsoid=''>=foo=</h4>
19967 <h5 data-parsoid=''>=foo=</h5>
19968 <h6 data-parsoid=''>=foo=</h6>
19972 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
19977 <nowiki>*</nowiki>bar
19983 <nowiki>=bar=</nowiki>
19991 Headings: 3. Nested inside html with wikitext split by html tags
19995 = ='''bold'''<nowiki>foo=</nowiki> =
19997 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
20001 Headings: 4a. No escaping needed (testing just h1 and h2)
20019 = <nowiki>=</nowiki> =
20027 <h1><i>=</i>foo=</h1>
20028 <h1><span typeof="mw:Nowiki">=</span></h1>
20032 Headings: 4b. No escaping needed (inside p-tags)
20047 Headings: 5. Empty headings
20059 =====<nowiki/>=====
20061 ======<nowiki/>======
20072 Headings: 6a. Heading chars in SOL context (with trailing spaces)
20076 <nowiki>=a=</nowiki>
20078 <nowiki>=a=</nowiki>
20080 <nowiki>=a=</nowiki>
20082 <nowiki>=a=</nowiki>
20091 Headings: 6b. Heading chars in SOL context (with trailing newlines)
20119 Headings: 6c. Heading chars in SOL context (leading newline break)
20124 <nowiki>=b=</nowiki>
20131 Headings: 6d. Heading chars in SOL context (with interspersed comments)
20135 <!--c0--><nowiki>=a=</nowiki>
20137 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
20139 <p><!--c0-->=a=</p>
20140 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
20144 Headings: 6d. Heading chars in SOL context (No escaping needed)
20153 #### --------------- Lists ---------------
20154 #### 0. Outside nests (*foo, etc.)
20155 #### 1. Nested inside html <ul><li>*foo</li></ul>
20156 #### 2. Inside definition lists
20157 #### 3. Only bullets at start should be escaped
20158 #### 4. No escapes needed
20159 #### 5. No unnecessary escapes
20160 #### 6. Escape bullets in SOL position
20161 #### 7. Escape bullets in a multi-line context
20162 #### ----------------------------------------
20165 Lists: 0. Outside nests
20167 <nowiki>*</nowiki>foo
20169 <nowiki>#</nowiki>foo
20171 <nowiki>;Foo:</nowiki>bar
20180 Lists: 1. Nested inside html
20182 *<nowiki>*foo</nowiki>
20184 *<nowiki>#foo</nowiki>
20186 *<nowiki>:foo</nowiki>
20188 *<nowiki>;foo</nowiki>
20190 #<nowiki>*foo</nowiki>
20192 #<nowiki>#foo</nowiki>
20194 #<nowiki>:foo</nowiki>
20196 #<nowiki>;foo</nowiki>
20198 <ul><li>*foo</li></ul>
20199 <ul><li>#foo</li></ul>
20200 <ul><li>:foo</li></ul>
20201 <ul><li>;foo</li></ul>
20202 <ol><li>*foo</li></ol>
20203 <ol><li>#foo</li></ol>
20204 <ol><li>:foo</li></ol>
20205 <ol><li>;foo</li></ol>
20210 Lists: 2. Inside definition lists
20212 ;<nowiki>;foo</nowiki>
20214 ;<nowiki>:foo</nowiki>
20216 ;<nowiki>:foo</nowiki>
20219 :<nowiki>:foo</nowiki>
20221 <dl><dt>;foo</dt></dl>
20222 <dl><dt>:foo</dt></dl>
20225 <dl><dd>:foo</dd></dl>
20230 Lists: 3. Only bullets at start of text should be escaped
20232 *<nowiki>*foo*bar</nowiki>
20234 *<nowiki>*foo</nowiki>''it''*bar
20236 <ul><li>*foo*bar</li></ul>
20237 <ul><li>*foo<i>it</i>*bar</li></ul>
20242 Lists: 4. No escapes needed
20263 <li><a rel="mw:WikiLink" href="Foo" title="Foo">Foo</a>: bar
20267 <li><a rel="mw:WikiLink" href="Foo" title="Foo">Foo</a>*bar
20273 Lists: 5. No unnecessary escapes
20275 * bar <span><nowiki>[[foo]]</nowiki></span>
20277 *=bar <span><nowiki>[[foo]]</nowiki></span>
20279 *[[bar <span><nowiki>[[foo]]</nowiki></span>
20281 *]]bar <span><nowiki>[[foo]]</nowiki></span>
20283 *=bar <span>foo]]</span>=
20287 <ul><li> bar <span>[[foo]]</span></li></ul>
20288 <ul><li>=bar <span>[[foo]]</span></li></ul>
20289 <ul><li>[[bar <span>[[foo]]</span></li></ul>
20290 <ul><li>]]bar <span>[[foo]]</span></li></ul>
20291 <ul><li>=bar <span>foo]]</span>=</li></ul>
20292 <ul><li> <s></s>: a</li></ul>
20297 Lists: 6. Escape bullets in SOL position
20301 <!--cmt--><nowiki>*foo</nowiki>
20303 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
20307 Lists: 7. Escape bullets in a multi-line context
20310 <nowiki>*</nowiki>b
20317 #### --------------- HRs ---------------
20318 #### 1. Single line
20319 #### -----------------------------------
20322 HRs: 1. Single line
20326 ----<nowiki>----</nowiki>
20330 <hr><p><span typeof="mw:Nowiki">----</span></p>
20335 #### --------------- Tables ---------------
20336 #### 1a. Simple example
20337 #### 1b. No escaping needed (!foo)
20338 #### 1c. No escaping needed (|foo)
20339 #### 1d. No escaping needed (|}foo)
20341 #### 2a. Nested in td (<td>foo|bar</td>)
20342 #### 2b. Nested in td (<td>foo||bar</td>)
20343 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
20345 #### 3a. Nested in th (<th>foo!bar</th>)
20346 #### 3b. Nested in th (<th>foo!!bar</th>)
20347 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
20351 #### 4c. No escaping needed
20352 #### --------------------------------------
20355 Tables: 1a. Simple example
20366 Tables: 1b. No escaping needed
20375 Tables: 1c. No escaping needed
20384 Tables: 1d. No escaping needed
20393 Tables: 2a. Nested in td
20398 |<nowiki>foo|bar</nowiki>
20400 |x<div><nowiki>a|b</nowiki></div>
20404 <td>foo|bar</td></tr>
20405 <tr><td>x<div>a|b</div></td>
20410 Tables: 2b. Nested in td
20415 |<nowiki>foo||bar</nowiki>
20416 |''it''<nowiki>foo||bar</nowiki>
20420 <td><span typeof="mw:Nowiki">foo||bar</span></td>
20421 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
20425 Tables: 2c. Nested in td -- no escaping needed
20433 <table><tbody><tr><td>foo!!bar
20434 </td></tr></tbody></table>
20439 Tables: 3a. Nested in th
20447 <table><tbody><tr><th>foo!bar
20448 </th></tr></tbody></table>
20453 Tables: 3b. Nested in th
20458 !<nowiki>foo!!bar</nowiki>
20462 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
20467 Tables: 3c. Nested in th -- no escaping needed
20472 !<nowiki>foo||bar</nowiki>
20476 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
20480 Tables: 4a. Escape -
20487 |<nowiki>-bar</nowiki>
20491 <tr><th>-bar</th></tr>
20493 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
20497 Tables: 4b. Escape +
20504 |<nowiki>+bar</nowiki>
20508 <tr><th>+bar</th></tr>
20510 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
20514 Tables: 4c. No escaping needed
20535 <tr><td>foo-bar</td><td>foo+bar</td></tr>
20536 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
20542 <div>a|b</div></td>
20547 Tables: 4d. No escaping needed
20558 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo" title="Foo">Foo</a>-bar</td>
20559 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
20560 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
20565 Tables: Digest broken attributes on table and tr tag
20581 #### --------------- Links ----------------
20582 #### 1. Quote marks in link text
20583 #### 2. Wikilinks: Escapes needed
20584 #### 3. Wikilinks: No escapes needed
20585 #### 4. Extlinks: Escapes needed
20586 #### 5. Extlinks: No escapes needed
20587 #### --------------------------------------
20589 Links 1. Quote marks in link text
20593 [[Foo|Foo<nowiki>''boo''</nowiki>]]
20595 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
20599 Links 2. WikiLinks: Escapes needed
20604 [[Foo|<nowiki>Foobar]</nowiki>]]
20605 [[Foo|x [Foobar] x]]
20606 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
20607 [[Foo|<nowiki>[[Bar]]</nowiki>]]
20608 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
20609 [[Foo|<nowiki>|Bar</nowiki>]]
20610 [[Foo|<nowiki>]]bar</nowiki>]]
20611 [[Foo|<nowiki>[[bar</nowiki>]]
20612 [[Foo|<nowiki>x [[ y</nowiki>]]
20613 [[Foo|<nowiki>x ]] y</nowiki>]]
20614 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
20616 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
20617 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
20618 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
20619 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
20620 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
20621 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
20622 <a href="Foo" rel="mw:WikiLink">|Bar</a>
20623 <a href="Foo" rel="mw:WikiLink">]]bar</a>
20624 <a href="Foo" rel="mw:WikiLink">[[bar</a>
20625 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
20626 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
20627 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
20631 Links 3. WikiLinks: No escapes needed
20638 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
20639 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
20643 Links 4. ExtLinks: Escapes needed
20647 [http://google.com <nowiki>[google]</nowiki>]
20648 [http://google.com <nowiki>google]</nowiki>]
20650 <nowiki>[http://google.com]</nowiki>
20652 <nowiki>[http://google.com google]</nowiki>
20655 <p><a href="http://google.com" rel="mw:ExtLink">[google]</a>
20656 <a href="http://google.com" rel="mw:ExtLink">google]</a></p>
20657 <p>[http://google.com]</p>
20658 <p>[http://google.com google]</p>
20662 Links 5. ExtLinks: No escapes needed
20666 [http://google.com [google]
20668 <a href="http://google.com" rel="mw:ExtLink">[google</a>
20672 Links 6. Add <nowiki/>s between text-nodes and url-links when required (bug 64300)
20674 <p>x<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>y
20675 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>?x
20676 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>&x
20677 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>'x
20678 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,x
20679 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.x
20680 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
20681 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>:x
20682 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
20683 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>!x
20684 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>=x
20685 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>(x)
20686 <a rel="mw:ExtLink" href="http://example.com(x" data-parsoid='{"stx":"url"}'>http://example.com(x</a>)
20689 x<nowiki/>http://example.com<nowiki/>y
20690 http://example.com<nowiki/>?x
20691 http://example.com<nowiki/>&x
20692 http://example.com<nowiki/>'x
20693 http://example.com<nowiki/>,x
20694 http://example.com<nowiki/>.x
20695 http://example.com<nowiki/>;x
20696 http://example.com<nowiki/>:x
20697 http://example.com<nowiki/>;x
20698 http://example.com<nowiki/>!x
20699 http://example.com<nowiki/>=x
20700 http://example.com<nowiki/>(x)
20701 http://example.com(x<nowiki/>)
20705 Links 7a. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
20708 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>
20710 "<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>"
20711 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>)
20712 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>) foo
20713 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,
20714 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>, foo
20720 "http://example.com"
20721 (http://example.com)
20722 (http://example.com) foo
20723 http://example.com,
20724 http://example.com, foo
20727 ## Parsoid currently fails wt2html on this one!
20729 Links 7b. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
20731 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.,;:!?</p>
20733 http://example.com.,;:!?
20737 Links 8. Add <nowiki/>s between text-nodes and RFC-links when required (bug 64300)
20739 <p><a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>4</p>
20745 Links 9. Don't add spurious <nowiki/>s between text-nodes and RFC-links (bug 64300)
20747 <p>x<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
20748 X<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
20749 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>?foo
20750 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>&foo
20760 Links 10. Add <nowiki/>s between text-nodes and PMID-links when required (bug 64300)
20762 <p><a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>4
20768 Links 11. Don't add spurious <nowiki/>s between text-nodes and PMID-links (bug 64300)
20770 <p>x<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
20771 X<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
20772 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>?foo
20773 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>&foo
20783 Links 12. Add <nowiki/>s between text-nodes and ISBN-links when required (bug 64300)
20785 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>1
20786 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>x
20787 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>b
20790 ISBN 1234567890<nowiki/>1
20791 ISBN 1234567890<nowiki/>x
20792 ISBN 1234567890<nowiki/>b
20796 Links 12. Don't add spurious <nowiki/>s between text-nodes and ISBN-links (bug 64300)
20798 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>'s
20803 #### --------------- Quotes ---------------
20804 #### 1. Quotes inside <b> and <i>
20805 #### 2. Link fragments separated by <i> and <b> tags
20806 #### 3. Link fragments inside <i> and <b>
20807 #### 4. No escaping needed
20808 #### --------------------------------------
20810 1. Quotes inside <b> and <i>
20812 parsoid=html2wt,wt2wt
20814 ''<nowiki/>'foo'<nowiki/>''
20815 ''<nowiki>''foo''</nowiki>''
20816 ''<nowiki>'''foo'''</nowiki>''
20818 '''<nowiki/>'foo'<nowiki/>'''
20819 '''<nowiki>''foo''</nowiki>'''
20820 '''<nowiki>'''foo'''</nowiki>'''
20821 '''foo'<nowiki/>''bar'<nowiki/>''baz'''
20822 '''foo'''<nowiki/>'s
20825 '<nowiki/>''foo''<nowiki/>'
20826 '<nowiki/>'''foo'''
20827 '''foo'''<nowiki/>'
20828 '<nowiki/>'''foo'''<nowiki/>'
20829 ''fools'<span> errand</span>''
20830 ''<span>fool</span>'s errand''
20839 <b>foo'<i>bar'</i>baz</b>
20847 <i>fools'<span> errand</span></i>
20848 <i><span>fool</span>'s errand</i>
20853 2. Link fragments separated by <i> and <b> tags
20855 [[''foo''<nowiki>hello]]</nowiki>
20857 [['''foo'''<nowiki>hello]]</nowiki>
20859 <p>[[<i>foo</i>hello]]
20860 </p><p>[[<b>foo</b>hello]]
20864 # FIXME: Escaping one or both of [[ and ]] is also acceptable --
20865 # this is one of the shortcomings of this format
20867 3. Link fragments inside <i> and <b>
20869 ''[[foo''<nowiki>]]</nowiki>
20871 '''[[foo'''<nowiki>]]</nowiki>
20874 </p><p><b>[[foo</b>]]
20879 4. No escaping needed
20881 '<span>''bar''</span>'
20882 '<span>'''bar'''</span>'
20884 <p>'<span><i>bar</i></span>'
20885 '<span><b>bar</b></span>'
20889 #### ----------- Paragraphs ---------------
20890 #### 1. No unnecessary escapes
20891 #### --------------------------------------
20894 1. No unnecessary escapes
20896 bar <span><nowiki>[[foo]]</nowiki></span>
20898 =bar <span><nowiki>[[foo]]</nowiki></span>
20900 [[bar <span><nowiki>[[foo]]</nowiki></span>
20902 ]]bar <span><nowiki>[[foo]]</nowiki></span>
20904 =bar <span>foo]]</span><nowiki>=</nowiki>
20906 <p>bar <span>[[foo]]</span>
20907 </p><p>=bar <span>[[foo]]</span>
20908 </p><p>[[bar <span>[[foo]]</span>
20909 </p><p>]]bar <span>[[foo]]</span>
20910 </p><p>=bar <span>foo]]</span>=
20914 #### ----------------------- PRE --------------------------
20915 #### 1. Leading whitespace in SOL context should be escaped
20916 #### ------------------------------------------------------
20918 1. Leading whitespace in SOL context should be escaped
20922 <nowiki> </nowiki>a
20924 <nowiki> </nowiki> a
20926 <nowiki> </nowiki>a(tab)
20928 <nowiki> </nowiki> a
20930 <nowiki> </nowiki> a
20933 <nowiki> </nowiki>b
20936 <nowiki> </nowiki>b
20939 <nowiki> </nowiki> b
20945 <p><!--cmt--> a</p>
20955 2. Leading whitespace in non-indent-pre contexts should not be escaped
20962 <p>foo <span about="#mwt2" class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"<i data-parsoid='{\"dsr\":[9,14,2,2]}'>a</i>\n b"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20966 3. Leading whitespace in indent-pre suppressing contexts should not be escaped
20985 4. Leading whitespace in indent-pre suppressing contexts should not be escaped
20989 [[File:Foobar.jpg|thumb|caption]]
20992 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="25" width="220"/></a><figcaption>caption</figcaption></figure>
20996 5. Nowiki escaping should account for indent-pres
21005 #### --------------- Behavior Switches --------------------
21007 1. Valid behavior switches should be escaped
21011 <nowiki>__TOC__</nowiki>
21012 ''<nowiki>__TOC__</nowiki>''
21019 2. Invalid behavior switches should not be escaped
21030 #### --------------- HTML tags ---------------
21033 #### 3. multi-line html tag
21034 #### 4. extension tags
21035 #### -----------------------------------------
21041 <a href="http://google.com">google</a>
21043 <a href="http://google.com">google</a>
21049 <nowiki><div>foo</div>
21050 <div style="color:red">foo</div></nowiki>
21052 <p><div>foo</div>
21053 <div style="color:red">foo</div>
21058 3. multi-line html tag
21073 <nowiki><ref>foo</ref></nowiki>
21075 <nowiki><ref>bar</nowiki>
21077 baz<nowiki></ref></nowiki>
21079 <p><ref>foo</ref>
21080 </p><p><ref>bar
21081 </p><p>baz</ref>
21085 #### --------------- Others ---------------
21089 <nowiki>foo</nowiki>
21091 <p><nowiki>foo</nowiki>
21095 ## The quote-char in the input is necessary for triggering the bug
21097 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
21099 parsoid=wt2wt,html2wt
21108 Tag-like HTML structures are passed through as text
21130 </p><p>1<d e>f
21135 # This was a bug in the PHP parser (see bug 17663 and its dups,
21136 # https://bugzilla.wikimedia.org/show_bug.cgi?id=17663)
21138 Tag names followed by punctuation should not be recognized as tags
21142 <p><s.ome> text
21147 HTML tag with necessary entities in attributes
21149 <span title="&amp;">foo</span>
21151 <p><span title="&amp;">foo</span>
21156 HTML tag with 'unnecessary' entity encoding in attributes
21158 <span title="&">foo</span>
21160 <p><span title="&">foo</span>
21165 HTML tag with broken attribute value quoting
21167 <span title="Hello world>Foo</span>
21169 <p><span>Foo</span>
21172 <p><span title="Hello world">Foo</span>
21177 Parsoid-only: HTML tag with broken attribute value quoting
21181 <span title="Hello world>Foo</span>
21183 <p><span title="Hello world">Foo</span>
21188 Table with broken attribute value quoting
21191 | title="Hello world|Foo
21202 <td title="Hello world">Foo
21208 Table with broken attribute value quoting on consecutive lines
21211 | title="Hello world|Foo
21212 | style="color:red|Bar
21225 <td title="Hello world">Foo
21226 </td><td style="color: red">Bar
21227 </td></tr></tbody></table>
21232 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
21242 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
21252 Accept empty td cell attribute
21255 | align="center" | foo || |
21260 <td align="center"> foo </td>
21267 Non-empty attributes in th-cells
21270 ! Foo !! style="color: red" | Bar
21276 <th style="color: red"> Bar
21282 Accept empty attributes in th-cells
21297 Empty table rows go away
21318 ### Parsoid-centric tests for testing RTing of inter-element separators
21319 ### Edge cases not tested by existing parser tests and specific to
21320 ### Parsoid-specific serialization strategies.
21324 RT-ed inter-element separators should be valid separators
21336 # Parsoid-only since PHP parser relies on Tidy for correct output
21338 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
21352 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'><small data-parsoid='{"stx":"html","autoInsertedEnd":true}'>foo
21353 <p>bar</p></small></td></tr>
21357 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'><small data-parsoid='{"stx":"html","autoInsertedEnd":true}'>foo<small data-parsoid='{"stx":"html","autoInsertedEnd":true}'></small></small></td></tr>
21362 Empty TD followed by TD with tpl-generated attribute
21367 |{{echo|style='color:red'}}|foo
21381 Indented table with an empty td
21400 Indented block & table
21414 <div data-parsoid='{"stx":"html"}'>foo</div>
21416 <tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>foo</td></tr>
21421 Indent and comment before table row
21436 <!--hi--><tbody><tr data-parsoid='{"startTagSrc":"|-","autoInsertedEnd":true}'>
21437 <td data-parsoid='{"autoInsertedEnd":true}'> there</td></tr>
21441 # Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext
21443 Empty TR followed by a template-generated TR
21449 {{echo|<tr><td>foo</td></tr>}}
21455 <tr about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<tr><td>foo</td></tr>"}},"i":0}}]}'>
21460 ## PHP and parsoid output differ for this, and since this is primarily
21461 ## for testing Parsoid's serializer, marking this Parsoid only
21463 Empty TR followed by mixed-ws-comment line should RT correctly
21479 <!--c--> </tr><!--d-->
21485 Multi-line image caption generated by templates with/without trailing newlines
21487 [[File:Foobar.jpg|thumb|300x300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
21488 [[File:Foobar.jpg|thumb|300x300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
21490 <figure typeof="mw:Image/Thumb"><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg" height="34" width="300"/></a><figcaption>foo\n<span about="#mwt9" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"A"}},"i":0}}]}'>A</span>\n<span about="#mwt10" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"B"}},"i":0}}]}'>B</span>\n<span about="#mwt11" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"C"}},"i":0}}]}'>C</span></figcaption></figure>
21491 <figure typeof="mw:Image/Thumb"><a href="./File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg" height="34" width="300"/></a><figcaption>foo\n<span about="#mwt12" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"A"}},"i":0}}]}'>A</span>\n<span about="#mwt13" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"B"}},"i":0}}]}'>B</span>\n<span about="#mwt14" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"C"}},"i":0}}]}'>C</span>\n\n</figcaption></figure>
21495 New element inserted (without intervening newlines) after an old sol-transparent node should serialize correctly
21499 <includeonly>foo</includeonly>
21506 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>foo</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><p>new para</p>
21508 <link rel="mw:PageProp/Category" href="./Category:Foo" data-parsoid=''/><h1>new heading</h1>
21511 ## PHP emits broken html for this, and since this is primarily
21512 ## a Parsoid serializer test, marking this Parsoid only
21514 Improperly nested inline or quotes tags with whitespace in between
21518 <span> <s>x</span> </s>
21521 <p><span> <s>x</s></span><s> </s>
21522 <b> <i>x</i></b><i> </i>
21527 Encapsulate protected attributes from wt
21531 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
21533 <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>
21537 ## Currently the p-wrapper is fragile in how it adds / removes transformations.
21538 ## Having nested or stray pre tags results in the attempt to add duplicates,
21539 ## causing an assertion fail. This test tries to prevent that situation.
21541 Ensure ParagraphWrapper can deal with stray closing pre tags
21551 1. Ensure fostered text content is wrapped in element nodes
21555 <table>hi</table><table>ho</table>
21564 2. Ensure fostered text content is wrapped in element nodes (traps regressions around fostered marker on the element getting lost)
21566 parsoid=wt2html,wt2wt
21575 <tbody><tr><td> a</td></tr>
21580 Encapsulation properly handles null DSR information from foster box
21582 parsoid=wt2html,wt2wt
21584 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
21586 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<table>foo<tr><td>bar</td></tr></table>"}},"i":0}}]}">foo</span><table><tbody><tr><td>bar</td></tr></tbody></table>
21590 1. Encapsulate foster-parented transclusion content
21592 parsoid=wt2wt,wt2html
21594 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
21596 <p typeof="mw:Transclusion" data-mw="{"parts":["<table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<tr><td>bar</td></tr>"}},"i":0}},"</table>"]}">foo</p><table>
21606 2. Encapsulate foster-parented transclusion content
21608 parsoid=wt2wt,wt2html
21610 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
21612 <div typeof="mw:Transclusion" data-mw="{"parts":["<table><div>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}},"</div><tr><td>bar</td></tr></table>"]}">foo</div>
21623 3. Encapsulate foster-parented transclusion content
21625 parsoid=wt2wt,wt2html
21627 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
21629 <div typeof="mw:Transclusion" data-mw="{"parts":["<table><div><p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div><tr><td>"}},"i":0}},"bar</td></tr></table>"]}">
21642 4. Encapsulate foster-parented transclusion content
21644 parsoid=wt2wt,wt2html
21646 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
21648 <div typeof="mw:Transclusion" data-mw="{"parts":["<table><div><p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div><tr><td>"}},"i":0}},"bar</td></tr></table>"]}">
21661 5. Encapsulate foster-parented transclusion content
21663 parsoid=wt2wt,wt2html
21665 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
21667 <p typeof="mw:Transclusion" data-mw="{"parts":["<table><tr><td><div><p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo"}},"i":0}},"</tr></table>"]}">foo</p>
21682 6. Encapsulate foster-parented transclusion content
21684 parsoid=wt2wt,wt2html
21686 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
21688 <p typeof="mw:Transclusion" data-mw="{"parts":["<table><tr><td><div><p>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo</p></div></td>foo</tr></table>"}},"i":0}}]}">foo</p>
21704 7. Encapsulate foster-parented transclusion content
21706 parsoid=wt2wt,wt2html
21708 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
21710 <p typeof="mw:Transclusion" data-mw="{"parts":["<table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<p>foo</p>"}},"i":0}},"<td>bar</td></table>"]}">foo</p>
21721 8. Encapsulate foster-parented transclusion content
21723 parsoid=wt2wt,wt2html
21726 }}{|{{echo|style='color:red'}}
21731 <p typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a\n"}},"i":0}}]}">a</p><p typeof="mw:Transclusion" data-mw="{"parts":["{|",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"style":{"wt":"'color:red'"}},"i":0}},"\n|-\n|b\n|}"]}">{{{1}}}</p><table>
21741 9. Encapsulate foster-parented transclusion content
21743 parsoid=wt2wt,wt2html
21745 <table>{{echo|hi</table>hello}}
21747 <p about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":["<table>",{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"hi</table>hello"}},"i":0}}]}' data-parsoid='{"fostered":true,"autoInsertedEnd":true,"autoInsertedStart":true,"pi":[[{"k":"1","spc":["","","",""]}]]}'>hi</p><table about="#mwt2" data-parsoid='{"stx":"html"}'></table><p about="#mwt2">hello</p>
21751 Table in fosterable position
21753 parsoid=wt2html,wt2wt
21762 <div about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"OpenTable","href":"./Template:OpenTable"},"params":{},"i":0}},"\n<div>"]}' data-parsoid='{"stx":"html","autoInsertedEnd":true,"pi":[[]]}'></div><span about="#mwt1">
21764 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
21770 # Parsoid only for bug 64747
21772 Properly encapsulate empty-content transclusions in fosterable positions
21780 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":["<table>\n",{"template":{"target":{"wt":"#if:","function":"#if"},"params":{"1":{"wt":"\n<td>foo</td>\n"}},"i":0}},"\n</table>"]}' data-parsoid='{"stx":"html","pi":[[{"k":"1","spc":["","","",""]}]],"src":"<table>\n{{#if:|\n<td>foo</td>\n}}\n</table>"}'>
21786 Support <object> element with .data attribute
21790 <object data="test.swf"></object>
21792 <object data="test.swf"></object>
21796 Don't block XML namespace declaration
21798 <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">MediaWiki</span>
21800 <p><span>MediaWiki</span>
21803 <p><span xmlns:dct="http://purl.org/dc/terms/" data-x-property="dct:title" data-parsoid='{"stx":"html"}'>MediaWiki</span></p>
21806 # -----------------------------------------------------------------
21807 # The following section of tests are primarily to spec requirements
21808 # around serialization of new/edited content.
21810 # All these tests are marked Parsoid html2wt and html2html only
21811 # ----------------------------------------------------------------
21813 # 'mi' is a localinterwiki prefix as well as a language
21815 Serialize interwiki links pointing to the current wiki as plain wiki links (bug 65869)
21821 <p><a rel="mw:ExtLink" href="http://mi.wikipedia.org/wiki/Foo">Foo</a></p>
21825 New wiki links (href variations)
21829 <a rel="mw:WikiLink" href="./Foo_bar">Foo_bar</a>
21830 <a rel="mw:WikiLink" href="Foo_bar">Foo_bar</a>
21831 <a rel="mw:WikiLink" href="Foo bar">Foo_bar</a>
21832 <a rel="mw:WikiLink" href="./Toxine_bact%C3%A9rienne">Toxine bactérienne</a>
21837 [[Toxine bactérienne]]
21841 New wiki links (content string variations)
21845 <a rel="mw:WikiLink" href="./Foo_bar">Foo_bar</a>
21846 <a rel="mw:WikiLink" href="./Foo_bar">Foo bar</a>
21847 <a rel="mw:WikiLink" href="./Foo_bar">./Foo_bar</a>
21851 [[Foo_bar|./Foo_bar]]
21855 New category links (href variations)
21859 <link rel="mw:PageProp/Category" href="./Category:Toxine_bactérienne" />
21860 <link rel="mw:PageProp/Category" href="./Category:Toxine_bact%C3%A9rienne" />
21861 <link rel="mw:PageProp/Category" href="Category:Toxine_bact%C3%A9rienne" />
21863 [[Category:Toxine bactérienne]]
21864 [[Category:Toxine bactérienne]]
21865 [[Category:Toxine bactérienne]]
21869 New interlanguage links (href variations)
21873 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine bactérienne" />
21874 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine_bactérienne" />
21875 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine_bact%C3%A9rienne" />
21877 [[es:Toxine bactérienne]]
21878 [[es:Toxine_bactérienne]]
21879 [[es:Toxine_bactérienne]]
21883 Image: Modifying size of an image (1)
21886 "modes": ["wt2wt"],
21888 ["img[height]", "attr", "height", "22"],
21889 ["img[width]", "attr", "width", "200"]
21893 [[Image:Foobar.jpg|230x230px]]
21895 [[Image:Foobar.jpg|200x200px]]
21899 Image: Modifying size of an image (2)
21902 "modes": ["wt2wt"],
21904 ["img[height]", "attr", "height", "100"],
21905 ["img[width]", "attr", "width", "500"]
21909 [[Image:Foobar.jpg|230x230px]]
21911 [[Image:Foobar.jpg|500x500px]]
21914 # Change in size is ignored so long as class='mw-default-size'
21916 Image: Modifying size of an image (3)
21919 "modes": ["wt2wt"],
21921 ["figure[class]", "removeClass", "mw-default-size"],
21922 ["figure img", "attr", "height", "19"],
21923 ["figure img", "attr", "width", "170"]
21927 [[Image:Foobar.jpg|thumb]]
21929 [[Image:Foobar.jpg|thumb|170x170px]]
21933 Image: Modifying alignment of an image (bug 48665)
21936 "modes": ["wt2wt"],
21938 ["figure[class]", "removeClass", "mw-halign-right"],
21939 ["figure[class]", "addClass", "mw-halign-left"]
21943 [[Image:Foobar.jpg|thumb|caption|right]]
21945 [[Image:Foobar.jpg|thumb|caption|left]]
21949 Image: Modifying mw-default-size of an frameless image (bug 62805)
21952 "modes": ["wt2wt"],
21954 ["figure.mw-default-size", "removeClass", "mw-default-size"]
21958 [[Image:Foobar.jpg|frameless|right]]
21960 [[Image:Foobar.jpg|frameless|right|220x220px]]
21964 Image: Modifying valign of an image (bug 49221)
21967 "modes": ["wt2wt"],
21969 ["*[typeof=\"mw:Image\"]", "removeClass", "mw-valign-middle"],
21970 ["*[typeof=\"mw:Image\"]", "addClass", "mw-valign-text-top"]
21974 [[File:Foobar.jpg|20px|middle]]
21976 [[File:Foobar.jpg|20px|text-top]]
21980 Image: Modifying alt attribute of an image (bug 56400)
21983 "modes": ["wt2wt"],
21985 ["img[alt]", "attr", "alt", "some alternate edited text"]
21989 [[File:Foobar.jpg|thumb|some caption|alt=some alternate text]]
21991 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
21995 Image: Modifying caption of an image
21998 "modes": ["wt2wt"],
22000 ["figcaption", "text", "new caption"]
22004 [[Image:Foobar.jpg|thumb|original caption]]
22006 [[Image:Foobar.jpg|thumb|new caption]]
22010 Image: empty alt attribute (bug 48924)
22014 [[File:Foobar.jpg|thumb|alt=|bar]]
22016 <figure class="mw-default-size" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"alt","ak":"alt="},{"ck":"caption","ak":"bar"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img alt="" resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"alt":"","resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"alt":"alt=","resource":"File:Foobar.jpg"}}'/></a><figcaption>bar</figcaption></figure>
22020 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
22025 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
22027 #<figure class="mw-default-size mw-halign-right" typeof="mw:Image/Thumb"><a href="Imagen:Foobar.jpg"><img resource="./Imagen:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="20" width="180"/></a></figure>
22031 Image: Block level image should have \n before and after
22034 [[File:Foobar.jpg|right|thumb|150x150px]]
22038 <figure class="mw-halign-right" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="17" width="150"/></a></figure>
22043 Image: New block level image should have \n before and after (existing content)
22046 [[File:Foobar.jpg|right|thumb|150x150px]]
22050 <figure class="mw-halign-right" typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"right","ak":"right"},{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"150x150px"}]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"}}'><img resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/150px-Foobar.jpg" height="17" width="150" data-parsoid='{"a":{"resource":"./File:Foobar.jpg","height":"17","width":"150"},"sa":{"resource":"File:Foobar.jpg"}}'/></a></figure>
22055 Image: upright option (parsoid)
22059 [[File:Foobar.jpg|thumb|upright|caption]]
22060 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
22061 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
22063 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="19" width="170"/></a><figcaption>caption</figcaption></figure>
22064 <figure class="mw-default-size" typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="12" width="110"/></a><figcaption>caption</figcaption></figure>
22065 <figure typeof="mw:Image/Thumb"><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="57" width="500"/></a><figcaption>caption</figcaption></figure>
22069 Image: upright option is ignored on inline and frame images (parsoid)
22073 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
22075 <p><span typeof="mw:Image" data-mw='{"caption":"caption"}'><a href="File:Foobar.jpg"><img resource="./File:Foobar.jpg" src="//example.com/images/3/3a/Foobar.jpg" height="57" width="500"/></a></span></p>
22079 Image: from basic HTML (1)
22083 <span typeof="mw:Image">
22084 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
22087 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
22091 Image: from basic HTML (2)
22095 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
22097 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
22101 Image: from basic HTML (3)
22105 <a href="Main"><img src="File:Foobar.jpg" width=100 height=100 alt="Alt"></a>
22107 [[File:Foobar.jpg|link=Main|alt=Alt|100x100px]]
22111 Image: from basic HTML (4)
22115 <img src="File:Foobar.jpg">
22117 [[File:Foobar.jpg|link=]]
22121 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
22128 <li><p>foo</p></li>
22133 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
22139 <ul> <li>foo</li></ul>
22143 Don't strip leading whitespace when handling indent-pre suppressing tags
22151 '''This is very bold of you!'''
22155 indented cell (no pre-wrapping!)
22162 <tr><td> indented row</td></tr>
22165 <b>This is very bold of you!</b>
22168 indented cell (no pre-wrapping!)
22176 Nowiki-wrap leading whitespace when handling indent-pre inducing tags
22181 <nowiki> </nowiki><span>bar</span>
22184 <nowiki> </nowiki></span>bar2
22187 <nowiki> </nowiki><span>bar</span>
22190 <nowiki> </nowiki><span>foo</span>
22208 Lists: Add space after bullets
22214 * <span> baz</span>
22219 <li><span> baz</span></li>
22224 Lists: Dont insert newlines in a serialized list item.
22231 <ul><li>a<br>b</li><li>c</li></ul>
22235 Headings: Add space before/after == (Bug 51744)
22245 == <span> baz</span> ==
22250 <h2><span> baz</span></h2>
22254 Parsoid: Serialize positional parameters with = in them as named parameter
22260 {{echo|1 = f=oo|2 = bar}}
22262 <!--Orig params with data-parsoid has heuristics for handling = chars-->
22263 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
22264 {{echo|<nowiki>f=oo</nowiki>|bar}}
22266 <p about="#mwt1" typeof="mw:Transclusion"
22267 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
22269 <p about="#mwt1" typeof="mw:Transclusion"
22270 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
22272 <!--Orig params with data-parsoid has heuristics for handling = chars-->
22273 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
22274 <p data-parsoid='{"pi":[[{"k":"1","spc":["","","",""]},{"k":"2","spc":["","","",""]}]]}' about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"},"2":{"wt":"bar"}},"i":0}}]}'>foo</p>
22278 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
22294 <div>a<p>b</p></div>
22303 Substrings resembling wikitext in hrefs should not get nowiki escapes
22309 <a rel="mw:WikiLink" href="./Foo''bar''baz">Foo''bar''baz</a>
22312 #-----------------------------
22313 # I/B quote minimization tests
22314 #-----------------------------
22317 1. I/B quote minimization: wikitext-only tags should be combined
22337 <p><i>A</i><i>B</i></p>
22338 <p><b>A</b><b>B</b></p>
22339 <p><i>A</i><b><i>B</i></b></p>
22340 <p><b>A</b><i><b>B</b></i></p>
22341 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
22342 <p><i><b>A</b></i><i><b>B</b></i></p>
22343 <p><i><b>A</b></i><b><i>B</i></b></p>
22344 <p><b><i>A</i></b><i><b>B</b></i></p>
22348 2. I/B quote minimization: wikitext and html tags should not be combined
22354 ''A''<nowiki/>'''<i>B</i>'''
22356 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
22357 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
22361 3. I/B quote minimization: templated content stops minimization
22365 ''A''{{echo|''B''}}
22367 ''A''{{echo|'''''B'''''}}
22369 <p><i>A</i><i about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"''B''"}},"i":0}}]}'>B</i>
22370 <p><i>A</i><b about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"'''''B'''''"}},"i":0}}]}'><i>B</i></b>
22374 4. I/B quote minimization: new content should be mimimized with adjacent old content
22384 <p><i>A</i><i>B</i></p>
22385 <p><b>A</b><b>B</b></p>
22386 <p><i>A</i><b><i>B</i></b></p>
22389 #------------------------------------
22390 # End of I/B quote minimization tests
22391 #------------------------------------
22394 Bug 54262: New entities
22400 <span typeof="mw:Entity"> </span>
22403 ## Note that there is no wikitext output for 'unknownproperty' ##
22404 ## Unknown magic words are silently dropped ##
22419 __NOCONTENTCONVERT__
22421 <meta property='mw:PageProp/toc' />
22422 <meta property='mw:PageProp/notoc' />
22423 <meta property='mw:PageProp/forcetoc' />
22424 <meta property='mw:PageProp/index' />
22425 <meta property='mw:PageProp/noindex' />
22426 <meta property='mw:PageProp/nogallery' />
22427 <meta property='mw:PageProp/noeditsection' />
22428 <meta property='mw:PageProp/notitleconvert' />
22429 <meta property='mw:PageProp/nocontentconvert' />
22430 <meta property='mw:PageProp/unknownproperty' />
22434 Consecutive <pre>s should not get merged
22436 parsoid=html2wt,html2html
22452 <pre>a</pre><pre>b</pre>
22466 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
22470 [[Special:BookSources/1234567890|ISBN 1234567895]]
22472 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
22476 Edited RFC links not serializable as RFC links should serialize as extlinks
22480 [//tools.ietf.org/html/rfc123 New RFC]
22482 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
22486 Edited PMID links not serializable as PMID links should serialize as extlinks
22490 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
22492 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
22496 Edited Redirect link should emit a non-piped wikitext link
22502 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"src":"#REDIRECT ","a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
22506 T75121: Infer extension name from typeOf if data-mw is not present
22512 <div typeOf="mw:Extension/foo"></div>
22515 # -----------------------------------------------------------------
22516 # End of section for Parsoid-only html2wt tests for serialization
22518 # -----------------------------------------------------------------
22525 Try for 100% code coverage