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.
79 MediaWiki:bad image list
81 * [[File:Bad.jpg]] except [[Nasty page]]
109 Template:echo_with_span
115 Template:echo_with_div
121 Template:table_attribs
124 |</noinclude>style="color:red;"|Foo
128 Template:table_attribs_2
131 |</noinclude>style="color:red;"|Foo
136 Template:table_attribs_3
139 |</noinclude>style{{=}}"background:#f9f9f9;"|Foo
143 Template:table_attribs_4
145 | style="background-color:#DC241f;" width="10px" |
149 Template:table_header_cells
151 {{table_attribs}}!!style='color:red;'|''Bar''||style='color:brown;'|''Foo'' and Baz
157 {{table_attribs}}||style='color:red;'|''Bar''||style='color:brown;'|''Foo'' and Baz
161 Template:image_attribs
164 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
167 ## See T48811 for details
169 Template:mixed_attr_content_template
171 style="color:red;" title="T48811"
177 Template:definition_list
224 Template:EmptyTRWithHTMLAttrTest
227 <tr align="center"></tr>
228 <tr><td>foo</td></tr>
229 <tr align="center"></tr>
230 <tr><td>bar</td></tr>
247 This is a simple paragraph.
249 <p>This is a simple paragraph.
254 Paragraphs with extra newline spacing
277 Paragraphs with newline spacing with comment lines in between
285 <!--foo--><!--More than 1 comment, still stripped-->
289 <!--foo--> <!----> <!-- bar -->
350 Paragraphs with newline spacing with non-empty white-space lines in between
377 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
385 <!--foo--><!--More than 1 comment doesn't disable stripping of this line!-->
424 Extra newlines: More paragraphs with indented comment
439 Extra newlines followed by heading
454 <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>
455 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
458 <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>
463 Extra newlines between heading and content are swallowed
471 <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>
472 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
479 http://fr.wikipedia.org/wiki/🍺
480 <!-- EasterEgg we love beer, better be able be able to link to it -->
482 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
486 # Note that the html+tidy output removes the spaces after the <li>,
487 # which is a bug (http://sourceforge.net/p/tidy/bugs/945/, etc).
488 # This is an issue for all tests with lists. We intentionally do
489 # *not* add html+tidy clauses for these, as we don't want to
490 # document/test the broken behavior. (Parsoid matches the non-tidy
491 # output in these cases.)
500 <li> Item 2</li></ul>
508 * plain''italic''plain
509 * plain''italic''plain''italic''plain
510 * plain'''bold'''plain
511 * plain'''bold'''plain'''bold'''plain
512 * plain''italic''plain'''bold'''plain
513 * plain'''bold'''plain''italic''plain
514 * plain''italic'''bold-italic'''italic''plain
515 * plain'''bold''bold-italic''bold'''plain
516 * plain'''''bold-italic'''italic''plain
517 * plain'''''bold-italic''bold'''plain
518 * plain''italic'''bold-italic'''''plain
519 * plain'''bold''bold-italic'''''plain
520 * plain l'''italic''plain
521 * plain l''''bold''' plain
524 <li> plain<i>italic</i>plain</li>
525 <li> plain<i>italic</i>plain<i>italic</i>plain</li>
526 <li> plain<b>bold</b>plain</li>
527 <li> plain<b>bold</b>plain<b>bold</b>plain</li>
528 <li> plain<i>italic</i>plain<b>bold</b>plain</li>
529 <li> plain<b>bold</b>plain<i>italic</i>plain</li>
530 <li> plain<i>italic<b>bold-italic</b>italic</i>plain</li>
531 <li> plain<b>bold<i>bold-italic</i>bold</b>plain</li>
532 <li> plain<i><b>bold-italic</b>italic</i>plain</li>
533 <li> plain<b><i>bold-italic</i>bold</b>plain</li>
534 <li> plain<i>italic<b>bold-italic</b></i>plain</li>
535 <li> plain<b>bold<i>bold-italic</i></b>plain</li>
536 <li> plain l'<i>italic</i>plain</li>
537 <li> plain l'<b>bold</b> plain</li></ul>
541 # this example taken from the [[simple:Moon]] article (bug 47326)
543 Italics and possessives (1)
545 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
547 <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
551 # this example taken from [[en:Flaming Pie]] (bug 49926)
553 Italics and possessives (2)
555 '''''Flaming Pie''''' is ... released in 1997. In ''Flaming Pie'''s liner notes
557 <p><i><b>Flaming Pie</b></i> is ... released in 1997. In <i>Flaming Pie'</i>s liner notes
561 # this example taken from [[en:Dictionary]] (bug 49926)
563 Italics and possessives (3)
565 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''.
567 <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>.
573 ### 2-quote opening sequence tests
576 Italics and bold: 2-quote opening sequence: (2,2)
585 Italics and bold: 2-quote opening sequence: (2,3)
594 Italics and bold: 2-quote opening sequence: (2,4)
604 # same html as previous, but wikitext adjusted to match parsoid html2wt
606 Italics and bold: 2-quote opening sequence: (2,4) w/ nowiki
608 ''foo<nowiki>''</nowiki>''
614 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
616 Italics and bold: 2-quote opening sequence: (2,5)
629 # same html as previous, but wikitext adjusted to match parsoid html2wt
631 Italics and bold: 2-quote opening sequence: (2,5+3) w/ nowiki
633 ''foo'''''<nowiki/>'''
644 ### 3-quote opening sequence tests
648 Italics and bold: 3-quote opening sequence: (3,2)
657 Italics and bold: 3-quote opening sequence: (3,3)
666 Italics and bold: 3-quote opening sequence: (3,4)
674 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
676 Italics and bold: 3-quote opening sequence: (3,5)
689 # same html as previous, but wikitext adjusted to match parsoid html2wt
691 Italics and bold: 3-quote opening sequence: (3,5+2) w/ nowiki
693 '''foo'''''<nowiki/>''
704 ### 4-quote opening sequence tests
708 Italics and bold: 4-quote opening sequence: (4,2)
718 # same html as previous, but wikitext adjusted to match parsoid html2wt
720 Italics and bold: 4-quote opening sequence: (4,2) w/ nowiki
722 <nowiki>''</nowiki>''foo''
729 Italics and bold: 4-quote opening sequence: (4,3)
738 Italics and bold: 4-quote opening sequence: (4,4)
748 # same html as previous, but wikitext adjusted to match parsoid html2wt
750 Italics and bold: 4-quote opening sequence: (4,4) w/ nowiki
758 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
760 Italics and bold: 4-quote opening sequence: (4,5)
769 <p>'<b>foo</b><i></i>
773 # same html as previous, but wikitext adjusted to match parsoid html2wt
775 Italics and bold: 4-quote opening sequence: (4,5+2) w/ nowiki
777 '<nowiki/>'''foo'''''<nowiki/>''
782 <p>'<b>foo</b><i></i>
788 ### 5-quote opening sequence tests
792 Italics and bold: 5-quote opening sequence: (5,2)
802 # same html as previous, but wikitext adjusted to match parsoid html2wt
803 # skipping wt2html and html2html because it wants to put <i> before <b>
805 Italics and bold: 5-quote opening sequence: (5,2+3)
807 parsoid=wt2wt,html2wt
816 Italics and bold: 5-quote opening sequence: (5,3)
826 # same html as previous, but wikitext adjusted to match parsoid html2wt
828 Italics and bold: 5-quote opening sequence: (5,3+2)
837 Italics and bold: 5-quote opening sequence: (5,4)
843 <p><i><b>foo'</b></i>
848 Italics and bold: 5-quote opening sequence: (5,5)
857 Italics and bold: 5-quote opening sequence: (5,6)
861 <p><i><b>foo'</b></i>
866 ### multiple quote sequences in a line
869 Italics and bold: multiple quote sequences: (2,4,2)
875 <p><i>foo'<b>bar</b></i>
880 # same html as previous, but wikitext adjusted to match parsoid html2wt
882 Italics and bold: multiple quote sequences: (2,4,2+3) w/ nowiki
884 ''foo'<nowiki/>'''bar'''''
886 <p><i>foo'<b>bar</b></i>
892 Italics and bold: multiple quote sequences: (2,4,3)
898 <p><i>foo'<b>bar</b></i>
903 # same html as previous, but wikitext adjusted to match parsoid html2wt
905 Italics and bold: multiple quote sequences: (2,4,3+2) w/ nowiki
907 ''foo'<nowiki/>'''bar'''''
909 <p><i>foo'<b>bar</b></i>
915 Italics and bold: multiple quote sequences: (2,4,4)
921 <p><i>foo'<b>bar'</b></i>
926 # same html as previous, but wikitext adjusted to match parsoid html2wt
928 Italics and bold: multiple quote sequences: (2,4,4+2) w/ nowiki
930 ''foo'<nowiki/>'''bar'<nowiki/>'''''
932 <p><i>foo'<b>bar'</b></i>
937 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
939 Italics and bold: multiple quote sequences: (3,4,2)
948 <p><b>foo'</b>bar<i></i>
952 # same html as previous, but wikitext adjusted to match parsoid html2wt
954 Italics and bold: multiple quote sequences: (3,4,2+2) w/ nowiki
958 '''<nowiki>foo'</nowiki>'''bar''<nowiki/>''
963 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<i></i>
968 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
970 Italics and bold: multiple quote sequences: (3,4,3)
979 <p><b>foo'</b>bar<b></b>
983 # same html as previous, but wikitext adjusted to match parsoid html2wt
985 Italics and bold: multiple quote sequences: (3,4,3+3) w/ nowiki
987 '''<nowiki>foo'</nowiki>'''bar'''<nowiki/>'''
992 <p><b><span typeof="mw:Nowiki">foo'</span></b>bar<b></b>
997 ### other quote tests
1000 Italics and bold: other quote tests: (2,3,5)
1002 ''this is about '''foo's family'''''
1004 <p><i>this is about <b>foo's family</b></i>
1010 Italics and bold: other quote tests: (2,(3,3),2)
1012 ''this is about '''foo's''' family''
1014 <p><i>this is about <b>foo's</b> family</i>
1020 Italics and bold: other quote tests: (3,2,3,2)
1024 '''this is about ''foo'''s family''
1026 <p><b>this is about <i>foo</i></b><i>s family</i>
1031 # same html as previous, but wikitext adjusted to match parsoid html2wt
1033 Italics and bold: other quote tests: (3,2,3+2+2,2)
1035 '''this is about ''foo'''''<nowiki/>''s family''
1037 <p><b>this is about <i>foo</i></b><i>s family</i>
1043 Italics and bold: other quote tests: (3,2,3,3)
1045 '''this is about ''foo'''s family'''
1047 <p>'<i>this is about </i>foo<b>s family</b>
1053 Italics and bold: other quote tests: (3,(2,2),3)
1055 '''this is about ''foo's'' family'''
1057 <p><b>this is about <i>foo's</i> family</b>
1063 Italicized possessive
1065 The ''[[Main Page]]'''s talk page.
1067 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
1070 <p>The <i><a rel="mw:WikiLink" href="Main_Page" title="Main Page">Main Page</a>'</i>s talk page.</p>
1074 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
1075 (Requires tidy for PHP parser output to be fixed up)
1077 parsoid=wt2html,wt2wt
1094 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
1095 <td><i>a</i></td><td><i>b</i></td></tr>
1104 Non-html5 tags should be accepted
1106 <center>''foo''</center>
1108 <font>''foo''</font>
1109 <strike>''foo''</strike>
1112 <center><i>foo</i></center>
1113 <p><big><i>foo</i></big>
1114 <font><i>foo</i></font>
1115 <strike><i>foo</i></strike>
1121 <wbr> is valid wikitext (bug 52468)
1129 # <strike> is HTML4, <s> is HTML4/5.
1131 <s> or <strike> for strikethrough
1133 <strike>strike</strike>
1137 <p><strike>strike</strike>
1145 Text-level semantic html elements in wikitext
1148 <strong>text</strong>
1164 <ruby><rb>明日</rb><rp>(</rp><rt>Ashita</rt><rp> </rp><rtc>あした</rtc><rp>)</rp></ruby>
1171 <strong>text</strong>
1187 <ruby><rb>明日</rb><rp>(</rp><rt>Ashita</rt><rp> </rp><rtc>あした</rtc><rp>)</rp></ruby>
1195 # test cases taken from
1196 # http://www.w3.org/TR/html5/text-level-semantics.html#the-ruby-element
1198 Ruby markup (W3C-style)
1200 ; Mono-ruby for individual base characters
1201 : <ruby>日<rt>に</rt>本<rt>ほん</rt>語<rt>ご</rt></ruby>
1203 : <ruby>今日<rt>きょう</rt></ruby>
1205 : <ruby>法<rb>華</rb><rb>経</rb><rt>ほ</rt><rt>け</rt><rt>きょう</rt></ruby>
1207 : <ruby>東<rb>京</rb><rp>(</rp><rt>とう</rt><rt>きょう</rt><rp>)</rp></ruby>
1209 : <ruby><rb>旧</rb><rb>金</rb><rb>山</rb><rt>jiù</rt><rt>jīn</rt><rt>shān</rt><rtc>San Francisco</rtc></ruby>
1211 <rb>♥</rb><rtc><rt>Heart</rt></rtc><rtc lang="fr"><rt>Cœur</rt></rtc>
1212 <rb>☘</rb><rtc><rt>Shamrock</rt></rtc><rtc lang="fr"><rt>Trèfle</rt></rtc>
1213 <rb>✶</rb><rtc><rt>Star</rt></rtc><rtc lang="fr"><rt>Étoile</rt></rtc>
1216 <dl><dt> Mono-ruby for individual base characters</dt>
1217 <dd> <ruby>日<rt>に</rt>本<rt>ほん</rt>語<rt>ご</rt></ruby></dd>
1218 <dt> Group ruby</dt>
1219 <dd> <ruby>今日<rt>きょう</rt></ruby></dd>
1220 <dt> Jukugo ruby</dt>
1221 <dd> <ruby>法<rb>華</rb><rb>経</rb><rt>ほ</rt><rt>け</rt><rt>きょう</rt></ruby></dd>
1222 <dt> Inline ruby</dt>
1223 <dd> <ruby>東<rb>京</rb><rp>(</rp><rt>とう</rt><rt>きょう</rt><rp>)</rp></ruby></dd>
1224 <dt> Double-sided ruby</dt>
1225 <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>
1227 <rb>♥</rb><rtc><rt>Heart</rt></rtc><rtc lang="fr"><rt>Cœur</rt></rtc>
1228 <rb>☘</rb><rtc><rt>Shamrock</rt></rtc><rtc lang="fr"><rt>Trèfle</rt></rtc>
1229 <rb>✶</rb><rtc><rt>Star</rt></rtc><rtc lang="fr"><rt>Étoile</rt></rtc>
1234 # The next two test different paths in the sanitizer.
1236 Non-word characters don't terminate tag names (bug 17663, 40670, 52022)
1238 <blockquote|>a</blockquote>
1240 <b→> doesn't terminate </b→>
1242 <bä> doesn't terminate </bä>
1244 <boo> doesn't terminate </boo>
1246 <s.foo> doesn't terminate </s.foo>
1250 <p><blockquote|>a</blockquote>
1251 </p><p><b→> doesn't terminate </b→>
1252 </p><p><bä> doesn't terminate </bä>
1253 </p><p><boo> doesn't terminate </boo>
1254 </p><p><s.foo> doesn't terminate </s.foo>
1255 </p><p><sub-ID#1>
1259 # There is a tidy bug here: http://sourceforge.net/p/tidy/bugs/946/
1260 # If the non-word-character tag made it through the sanitizer, tidy
1261 # would munge it up.
1263 Non-word characters don't terminate tag names + tidy
1265 <blockquote|>a</blockquote>
1267 <b→> doesn't terminate </b→>
1269 <bä> doesn't terminate </bä>
1271 <boo> doesn't terminate </boo>
1273 <s.foo> doesn't terminate </s.foo>
1277 <p><blockquote|>a</p>
1278 <p><b→> doesn't terminate </b→></p>
1279 <p><bä> doesn't terminate </bä></p>
1280 <p><boo> doesn't terminate </boo></p>
1281 <p><s.foo> doesn't terminate </s.foo></p>
1282 <p><sub-ID#1></p>
1286 ### See tests/parser/parserTestsParserHook.php for the <tåg> extension)
1287 ### This checks that HTML5 tags (with non-word characters in the tag
1288 ### name) make it safely through the parser -- the Sanitizer will
1289 ### munge them later, as it should.
1292 Non-word characters are valid in extension tags (T19663)
1305 Isolated close tags should be treated as literal text (bug 52760)
1311 <p><s.foo>s</p>
1315 ### Special characters
1319 Bare pipe character (bug 52363)
1328 Bare pipe character from a template (bug 52363)
1337 ### <nowiki> test cases
1341 <nowiki> unordered list
1343 <nowiki>* This is not an unordered list item.</nowiki>
1345 <p>* This is not an unordered list item.
1352 <nowiki>Lorem ipsum dolor
1360 <p>Lorem ipsum dolor
1373 :There is not nowiki.
1374 :There is <nowiki>nowiki</nowiki>.
1376 #There is not nowiki.
1377 #There is <nowiki>nowiki</nowiki>.
1379 *There is not nowiki.
1380 *There is <nowiki>nowiki</nowiki>.
1382 <dl><dd>There is not nowiki.</dd>
1383 <dd>There is nowiki.</dd></dl>
1384 <ol><li>There is not nowiki.</li>
1385 <li>There is nowiki.</li></ol>
1386 <ul><li>There is not nowiki.</li>
1387 <li>There is nowiki.</li></ul>
1392 Entities inside <nowiki>
1394 <nowiki><</nowiki>
1401 Entities inside template parameters
1407 <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>
1411 Properly escape nowiki when combined with other wiki markup
1415 <p>* </nowiki> tag</p>
1417 <nowiki>* </nowiki></nowiki> tag
1421 T71950: 1. Put nowiki as close to cause as possible, even with non-quote escapable chars
1425 <p>This text: L'<a rel="mw:WikiLink" href="./Foo">Foo</a>
1426 This text: L''<a rel="mw:WikiLink" href="./Foo">Foo</a>
1427 This text: L'''<a rel="mw:WikiLink" href="./Foo">Foo</a>''</p>
1429 This text: L'[[Foo]]
1430 This text: L<nowiki>''</nowiki>[[Foo]]
1431 This text: L<nowiki>'''</nowiki>[[Foo]]<nowiki>''</nowiki>
1434 # This test fails because wikitext whitespace is not normalized before comparing.
1436 T71950: 2. Put nowiki as close to cause as possible, after ' :'
1440 <p>This text : L''<a rel="mw:WikiLink" href="./Foo">Foo</a>
1443 This text : L<nowiki>''</nowiki>[[Foo]]
1446 # This test and the next one are html2wt only as they test that incorrect wikitext
1447 # passed in template arguments gets escaped or wrapped in nowikis where required.
1449 T71482: Use {{!}} instead of nowiki for single pipe in template argument
1453 <p><span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo|bar"}},"i":0}}]}" about="#mwt1"></span>
1454 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo|bar |[["}},"i":0}}]}" about="#mwt2"></p>
1456 {{echo|foo{{!}}bar}}
1457 {{echo|<nowiki>foo|bar |[[</nowiki>}}
1461 T53961: Output correct nowikis in template arguments
1465 <p><span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a [ b"}},"i":0}}]}" about="#mwt1"></span>
1466 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a }} b"}},"i":0}}]}" about="#mwt2"></span>
1467 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a [[ b"}},"i":0}}]}" about="#mwt3"></span>
1468 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a | {{ ]]"}},"i":0}}]}" about="#mwt4"></span>
1469 <span typeof="mw:Transclusion" data-mw="{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"a }"}},"i":0}}]}" about="#mwt5"></span></p>
1472 {{echo|a <nowiki>}}</nowiki> b}}
1473 {{echo|<nowiki>a [[ b</nowiki>}}
1474 {{echo|a {{!}} <nowiki>{{ ]]</nowiki>}}
1475 {{echo|a <nowiki>}</nowiki>}}
1482 Comments and Indent-Pre
1484 <!-- comment 1 --> asdf
1486 <!-- comment 1 --> asdf
1489 <!-- comment 1 --> asdf
1490 <!-- comment 2 -->xyz
1492 <!-- comment 1 --> asdf
1493 <!-- comment 2 --> xyz
1549 asdf<!-- comment 1 -->jkl
1559 <!-- foo --> b <!-- bar -->
1573 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1579 Comment semantics and delimiters
1581 <!-- --><!----><!-----><!------>
1587 Comment semantics and delimiters, redux
1589 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1590 -- foo -- funky huh? ... -->
1596 Comment semantics and delimiters: directors cut
1598 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1599 everything starting with < followed by !-- until the first -- and > we see,
1600 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1608 Comment semantics: nesting
1610 <!--<!-- no, we're not going to do anything fancy here -->-->
1617 Comment semantics: unclosed comment at end
1619 <!--This comment will run out to the end of the document
1624 # Bug 58184: document parsoid's behaviour
1626 Suppress comment closing tag in lenient browsers
1628 parsoid=wt2html,html2html
1630 <!-- Browsers--!> think this is closed -->
1634 <!-- Browsers--¡> think this is closed -->
1638 Comment in template title
1647 Comment on its own line post-expand
1659 Comment on its own line post-expand with non-significant whitespace
1671 Multiple comments should still parse as SOL-transparent
1673 parsoid=wt2html,wt2wt
1676 <!--c2--><!--c3--><!--c4-->*b
1687 ### paragraph wrapping tests
1702 Block tag on one line (<div>)
1718 Block tag on one line (<blockquote>)
1720 a <blockquote>foo</blockquote>
1724 a <blockquote>foo</blockquote>
1736 Block tag on both lines (<div>)
1753 Block tag on both lines (<blockquote>)
1755 a <blockquote>foo</blockquote>
1757 b <blockquote>foo</blockquote>
1759 a <blockquote>foo</blockquote>
1760 b <blockquote>foo</blockquote>
1774 Multiple lines without block tags
1798 # Tidy strips out the empty <div> tags. Parsoid doesn't.
1799 # So, we have a separate section for Parsoid. We don't want
1800 # to mimic this stripping behavior in Parsoid. It affects
1801 # editing experience and also requires us to maintain additional
1804 Empty lines between lines with block tags
1842 <div data-parsoid='{"stx":"html"}'></div>
1845 <div data-parsoid='{"stx":"html"}'></div><p>a</p>
1848 <div data-parsoid='{"stx":"html"}'>a</div><p>b</p>
1850 <div data-parsoid='{"stx":"html"}'>b</div><p>d</p>
1853 <div data-parsoid='{"stx":"html"}'>e</div>
1856 ## PHP parser emits output which is broken
1858 Unclosed HTML p-tags should be handled properly
1871 <div data-parsoid='{"stx":"html"}'><p data-parsoid='{"stx":"html", "autoInsertedEnd":true}'>foo</p></div>
1876 ## SSS FIXME: I can come up with other scenarios where this doesn't work because
1877 ## of eager output of buffered tokens in the p-wrapper. But, I'm going to ignore
1880 1. P-wrapping should leave sol-transparent tags outside p-tags where possible
1884 a [[Category:A1]] [[Category:A2]]
1889 <link href="Category:A1"/> <link href="Category:A2"/> <link href="Category:A3"/> <link href="Category:A4"/>
1893 2. P-wrapping should leave sol-transparent tags outside p-tags where possible
1899 <link href="Category:A1"/><p>a</p>
1903 ### Preformatted text
1912 And a [[Main Page|link]]
1918 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1923 Tabs don't trigger preformatted text
1927 This is preformatted text.
1933 <pre>This is preformatted text.
1939 Ident preformatting with inline content
1950 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1967 Regression with preformatted in <center>
1981 Bug 52763: Preformatted in <blockquote>
1987 indented cell (no pre-wrapping!)
1997 <p> indented cell (no pre-wrapping!)
2005 Bug 51086: Double newlines in blockquotes should be turned into paragraphs
2022 Bug 15491: <ins>/<del> in blockquote
2025 Foo <del>bar</del> <ins>baz</ins> quux
2029 <p>Foo <del>bar</del> <ins>baz</ins> quux
2035 # Note that the p-wrapping is newline sensitive, which could be
2036 # considered a bug: tidy will wrap only the 'Foo' in the example
2037 # below in a <p> tag. (see comment 23-25 of bug #6200)
2039 Bug 15491: <ins>/<del> in blockquote (2)
2041 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
2044 <blockquote>Foo <del>bar</del> <ins>baz</ins> quux
2050 <del>bar</del> <ins>baz</ins> quux</blockquote>
2054 <pre> with attributes (bug 3202)
2056 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
2058 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
2063 <pre> with width attribute (bug 3202)
2065 <pre width="8">Narrow screen goodies</pre>
2067 <pre width="8">Narrow screen goodies</pre>
2072 <pre> with forbidden attribute (bug 3202)
2074 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
2076 <pre width="8">Narrow screen goodies</pre>
2081 Entities inside <pre>
2090 <pre> with forbidden attribute values (bug 3202)
2092 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
2094 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
2099 <nowiki> inside <pre> (bug 13238)
2107 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
2115 <pre><nowiki>Foo</nowiki></pre>
2120 <nowiki> and <pre> preference (first one wins)
2151 </pre> inside nowiki
2153 <nowiki></pre></nowiki>
2159 # Parsoid doesn't strip empty tags, like Tidy does.
2161 Empty pre; pre inside other HTML tags (bug 54946)
2163 parsoid=wt2html,wt2wt
2194 HTML pre followed by indent-pre
2209 <p><pre>foo</pre></p>
2211 <p data-parsoid='{"stx":"html","autoInsertedEnd":true}'></p><pre data-parsoid='{"stx":"html"}'>foo</pre><p data-parsoid='{"autoInsertedStart":true,"stx":"html"}'></p>
2215 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
2223 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
2233 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
2245 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
2266 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
2270 {{echo| foo}}{{echo| bar}}
2275 {{echo|<!--cmt--> foo}}
2277 <!--cmt-->{{echo| foo}}
2279 {{echo|{{echo| }}bar}}
2297 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
2334 Things that look like <pre> tags aren't treated as such
2336 Barack Obama <President> of the United States
2337 <President></President>
2339 <p>Barack Obama <President> of the United States
2340 <President></President>
2344 ## PHP parser discards the "<pre " string
2346 Handle broken pre-like tags (bug 64025)
2350 {{echo|<pre <pre>x</pre>}}
2352 <table><pre </table>
2355 <table><pre></pre></table>
2358 <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>
2367 Parsoid: handle pre with space after attribute
2371 <pre style="width:50%;" >{{echo|foo}}</pre>
2373 <pre style="width:50%;">{{echo|foo}}</pre>
2376 # TODO / maybe: fix wt2wt for this
2378 Parsoid: Don't paragraph-wrap fosterable content
2404 Parsoid: Don't paragraph-wrap fosterable content even if table syntax is unbalanced
2432 #--------------------------------------------------------------------
2433 # Transclusion parameter whitespace stripping tests
2434 # Behavior is different for positional and named parameters
2435 #--------------------------------------------------------------------
2437 Templates: Strip leading and trailing whitespace from named-param values
2441 {{echo|1= {{echo|b}} }}
2454 <ul><li> d</li></ul>
2459 Templates: Don't strip whitespace from positional-param values
2463 {{echo|{{echo|b}} }}
2495 <ul><li> f</li></ul>
2503 Templates: Handle empty comment-and-ws-only lines correctly
2506 <!--should be ignored-->
2507 <!--should be ignored as well-->
2516 Templates: Handle comments in the target
2519 <!-- should be ignored -->
2522 {{echo<!-- should be ignored -->
2525 {{echo<!-- should be ignored -->|foo}}
2527 {{<!-- should be ignored -->echo|foo}}
2529 <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>
2531 <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>
2533 <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>
2535 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo"}},"i":0}}]}'>foo</p>
2539 Templates: Handle comments in parameter names (bug 67657)
2542 <!-- should be ignored -->
2546 <!-- should be ignored -->
2549 {{echo|1<!-- should be ignored --> = foo}}
2551 {{echo|<!-- should be ignored -->1 = foo}}
2553 <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>
2555 <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>
2557 <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>
2559 <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>
2563 Templates: Other wikitext in parameter names (bug 67657)
2567 <p typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"''1''":{"wt":"foo"}},"i":0}}]}'>{{{1}}}</p>
2573 #--------------------------------------------------------------------
2574 # Transclusion parameter escaping tests
2575 #--------------------------------------------------------------------
2577 Templates: Parsoid parameter escaping test 1
2581 {{echo|[foo]|{{echo|[bar]}}}}
2583 <p about="#mwt1" typeof="mw:Transclusion"
2584 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}}]}'>[foo]</p>
2588 Parsoid: Pipes in external links in template parameter
2592 {{echo|[{{echo|http://example.com}} link]}}
2594 <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>
2598 Parsoid: pipe in transclusion parameter
2602 {{echo|http://foo.com/a|b}}
2604 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2605 typeof="mw:Transclusion"
2606 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>
2610 Parsoid: Pipe in external link target and content in template parameter
2612 parsoid=html2wt,wt2wt
2614 {{echo|[http://foo.com/a|b a|b]}}
2616 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
2617 typeof="mw:Transclusion"
2618 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},
2619 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}}]}'>a|b</a></p>
2623 Parsoid: Pipe in template with nested template in external link target in template parameter (seriously)
2627 {{echo|[{{fullurl:{{FULLPAGENAME}}|action=edit}} bar]}}
2629 <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>
2633 Templates: Don't escape already nowiki-escaped text in template parameters
2635 parsoid=html2wt,wt2wt
2637 {{echo|foo<nowiki>|</nowiki>bar}}
2638 {{echo|<nowiki><div></nowiki>}}
2639 {{echo|<nowiki></nowiki>}}
2641 <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>
2642 <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>
2643 <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>
2649 Templates: '=' char in nested transclusions should not trigger nowiki escapes or conversion to named param
2651 parsoid=html2wt,wt2wt
2653 {{echo|{{echo|1=bar}}}}
2655 <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>
2660 Templates parameters with special tokenizing behavior dont get modified because of arg escaping
2666 <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>
2671 Templates: Preserve blank parameter names
2678 <p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"":{"wt":"foo"}},"i":0}}]}'>{{{1}}}</p>
2682 ### Parsoid-centric tests for testing RT edge cases for pre
2686 1a. Indent-Pre and Comments
2699 1b. Indent-Pre and Comments
2712 1c. Indent-Pre and Comments
2725 1d. Indent-Pre and Comments
2726 (Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)
2739 2a. Indent-Pre and tables
2760 2b. Indent-Pre and tables
2776 2c. Indent-Pre and tables (bug 42252)
2793 2d. Indent-Pre and tables
2810 <tbody><tr><td> b</td></tr>
2815 2e. Indent-Pre and table-line syntax
2828 2f. Indent-pre started by table-line syntax
2847 3a. Indent-Pre and block tags (single-line html)
2851 c <blockquote> foo </blockquote>
2856 c <blockquote> foo </blockquote>
2857 <pre><span> foo </span>
2860 <p>a </p><p data-parsoid='{"stx":"html"}'> foo </p>
2861 <p>b </p><div data-parsoid='{"stx":"html"}'> foo </div>
2862 <p>c </p><blockquote data-parsoid='{"stx":"html"}'> foo </blockquote>
2863 <pre><span> foo </span>
2880 3b. Indent-Pre and block tags (multi-line html)
2885 <pre>a <span>foo</span>
2890 <pre>a <span data-parsoid='{"stx":"html"}'>foo</span></pre>
2891 b <div data-parsoid='{"stx":"html"}'> foo </div>
2901 3c. Indent-Pre and block tags (pre-content on separate line)
2965 4. Indent-Pre and extension tags
2971 a <ul class="gallery mw-gallery-traditional">
2972 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
2973 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
2974 <div class="gallerytext">
2981 <ul class="gallery mw-gallery-traditional">
2982 <li class="gallerybox" style="width: 155px">
2983 <div style="width: 155px">
2984 <div class="thumb" style="width: 150px;">
2985 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div>
2987 <div class="gallerytext"></div>
2994 Table wikitext syntax outside wiki-tables
2997 ! not a table heading
3000 | class="foo bar" | baz
3007 ! not a table heading
3010 | class="foo bar" | baz
3019 Render paragraphs when indent-pre is suppressed in blocklevels
3036 4. Multiple spaces at start-of-line
3054 ## NOTE: the leading white-space chars on empty line are significant
3056 5a. White-space in indent-pre
3068 ## NOTE: the leading white-space chars on empty line are significant
3070 5b. White-space in indent-pre
3089 5c. White-space in indent-pre
3102 6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content
3125 7a. Indent-pre and category links
3127 parsoid=wt2html,wt2wt
3129 [[Category:foo]] <!-- No pre-wrapping -->
3130 {{echo| [[Category:foo]]}} <!-- No pre-wrapping -->
3132 <link rel="mw:PageProp/Category" href="./Category:Foo"> <!-- No pre-wrapping -->
3133 <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 -->
3137 7b. Indent-pre and category links
3139 parsoid=wt2html,wt2wt
3142 [[Category:foo]] {{echo|b}}
3145 <link rel="mw:PageProp/Category" href="./Category:Foo"> a
3146 <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>
3150 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
3154 HTML-pre: 1. embedded newlines
3188 <pre data-parsoid='{"stx":"html"}'>foo</pre>
3190 <pre data-parsoid='{"stx":"html","strippedNL":"\n"}'>
3194 <pre data-parsoid='{"stx":"html"}'>
3199 <pre data-parsoid='{"stx":"html"}'>
3207 HTML-pre: big spaces
3244 <pre data-parsoid='{"stx":"html"}'>
3263 HTML-pre: 2: indented text
3276 HTML-pre: 3: other wikitext
3297 ### Definition lists
3304 <dl><dt> name </dt>
3305 <dd> Definition</dd></dl>
3310 Definition list for indentation only
3314 <dl><dd> Indented text</dd></dl>
3319 Definition list with no space
3324 <dd>Definition</dd></dl>
3329 Definition list with URL link
3331 ; http://example.com/ : definition
3333 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt>
3334 <dd> definition</dd></dl>
3339 Definition list with bracketed URL link
3341 ;[http://www.example.com/ Example]:Something about it
3343 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt>
3344 <dd>Something about it</dd></dl>
3349 Definition list with wikilink containing colon
3351 ; [[Help:FAQ]]: The least-read page on Wikipedia
3353 <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>
3354 <dd> The least-read page on Wikipedia</dd></dl>
3358 # At Brion's and JeLuF's insistence... :)
3360 Definition list with news link containing colon
3362 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
3364 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt>
3365 <dd> This isn't even a real newsgroup!</dd></dl>
3368 <dl><dt> <a rel="mw:ExtLink" href="news:alt.wikipedia.rox" data-parsoid='{"stx":"url"}'>news:alt.wikipedia.rox</a></dt><dd data-parsoid='{"stx":"row"}'> This isn't even a real newsgroup!</dd></dl>
3372 Malformed definition list with colon
3374 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
3376 <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>
3381 Definition lists: colon in external link text
3383 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
3385 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt>
3386 <dd> OK, I made that up</dd></dl>
3391 Definition lists: colon in HTML attribute
3393 ;<b style="display: inline">bold</b>
3395 <dl><dt><b style="display: inline">bold</b></dt></dl>
3400 Definition lists: self-closed tag
3402 ;one<br/>two : two-line fun
3404 <dl><dt>one<br />two </dt>
3405 <dd> two-line fun</dd></dl>
3410 Bug 11748: Literal closing tags
3414 <dd>test test test test test</dd>
3416 <dd>test test test test test</dd>
3421 <dd>test test test test test</dd>
3423 <dd>test test test test test</dd>
3429 Definition and unordered list using wiki syntax nested in unordered list using html tags.
3432 ; term : description
3437 <dl><dt> term </dt>
3438 <dd> description</dd></dl>
3439 <ul><li> unordered</li></ul>
3446 Definition list with empty definition and following paragraph
3458 Nested definition lists using html syntax
3467 Definition Lists: No nesting: Multiple dd's
3480 Definition Lists: Indentation: Regular
3488 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
3493 Definition Lists: Indentation: Missing 1st level
3499 <dl><dd>i3</dd></dl></dd></dl></dd></dl>
3504 Definition Lists: Indentation: Multi-level indent
3508 <dl><dd><dl><dd><dl><dd>i3</dd></dl></dd></dl></dd></dl>
3513 Definition Lists: Hacky use to indent tables
3520 should be left alone
3522 <dl><dd><dl><dd><table>
3527 </td></tr></table></dd></dl></dd></dl>
3529 should be left alone
3534 Definition Lists: Hacky use to indent tables, with comments (bug 63979)
3542 should be left alone
3545 <dl><dd><dl><dd><table><tr>
3548 </tr></table><!-- bar --></dd></dl></dd></dl>
3550 should be left alone</p>
3554 Definition Lists: Hacky use to indent tables, with comment before table
3560 <dl><dd><dl><dd><!-- foo --><table><tr>
3562 </tr></table></dd></dl></dd></dl>
3567 Definition Lists: Hacky use to indent tables (WS-insensitive)
3576 <dd> <table><tr><td>a</td></tr></table> </dd>
3579 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
3580 ## as an empty dt item. It also ignores all but the last ";" when followed
3581 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
3582 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
3585 ## Ex: ";;t2 ::d2" is transformed into:
3597 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
3598 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
3609 ## All Parsoid only definition list tests have this difference.
3611 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
3612 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
3615 Table / list interaction: indented table with lists in table contents
3630 <ul><li> b</li></ul>
3634 <ul><li> d</li></ul>
3635 </td></tr></table></dd></dl>
3640 Table / list interaction: lists nested in tables nested in indented lists
3663 </td></tr></table></dd></dl>
3670 Definition Lists: Nesting: Multi-level (Parsoid only)
3700 Definition Lists: Nesting: Test 2 (Parsoid only)
3720 Definition Lists: Nesting: Test 3 (Parsoid only)
3748 Definition Lists: Nesting: Test 4
3753 <dl><dd><dl><dd><dl><dt>t3</dt>
3754 <dd>d3</dd></dl></dd></dl></dd></dl>
3759 ## The Parsoid team believes the following three test exposes a
3760 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
3761 ## wrong to close the <dl> after the <dt> containing the <ul>.)
3762 ## It also exposes a "misfeature" in tidy, which doesn't like
3763 ## <dl> tags with a single <dt> child; it converts the <dt> into
3764 ## a <dd> in that case. (Parsoid leaves the <dt> alone!)
3766 Definition Lists: Mixed Lists: Test 1
3772 <dl><dd><dl><dt><ul><li> foo</li>
3773 <li> bar</li></ul></dt></dl>
3774 <dl><dt> baz</dt></dl></dd></dl>
3809 Definition Lists: Mixed Lists: Test 2
3814 <ul><li><dl><dd> d1</dd>
3815 <dd> d2</dd></dl></li></ul>
3821 Definition Lists: Mixed Lists: Test 3
3826 <ul><li><dl><dd><dl><dd><dl><dd> d1</dd>
3827 <dd> d2</dd></dl></dd></dl></dd></dl></li></ul>
3833 Definition Lists: Mixed Lists: Test 4
3838 <ul><li><dl><dt>d1 </dt>
3841 <dd>d4</dd></dl></li></ul>
3847 Definition Lists: Mixed Lists: Test 5
3853 <dl><dd> d2</dd></dl></dd></dl></li></ul>
3859 Definition Lists: Mixed Lists: Test 6
3864 <ol><li><ul><li><dl><dd>d1
3865 <dl><dd><dl><dd> d3</dd></dl></dd></dl></dd></dl></li></ul></li></ol>
3871 Definition Lists: Mixed Lists: Test 7
3876 <dl><dd><ul><li> d1</li>
3877 <li> d2</li></ul></dd></dl>
3883 Definition Lists: Mixed Lists: Test 8
3888 <dl><dd><ul><li> d1</li></ul>
3889 <dl><dd><ul><li> d2</li></ul></dd></dl></dd></dl>
3895 Definition Lists: Mixed Lists: Test 9
3899 <ul><li><dl><dt>foo </dt>
3900 <dd>bar</dd></dl></li></ul>
3906 Definition Lists: Mixed Lists: Test 10
3910 <ul><li><ol><li><dl><dt>foo </dt>
3911 <dd>bar</dd></dl></li></ol></li></ul>
3915 # The Parsoid team disagrees with the PHP parser's seemingly-random
3916 # rules regarding dd/dt on the next two tests. Parsoid is more
3917 # consistent, and recognizes the shared nesting and keeps the
3918 # still-open tags around until the nesting is complete.
3919 # (And tidy again converts <dt> to <dd> before 'bar'.)
3922 Definition Lists: Mixed Lists: Test 11
3927 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt>
3928 <dd><ul><li><dl><dt><dl><dt>bar</dt></dl></dd></dl></li></ul></dd></dl>
3929 <dl><dt>boo </dt>
3930 <dd>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
3985 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3986 <dd data-parsoid='{"stx":"row"}'>bar</dd>
3990 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
3991 <dd data-parsoid='{"stx":"row"}'>baz</dd>
4000 # Another case where tidy converts a <dt> to a <dd> (but Parsoid doesn't).
4002 Definition Lists: Weird Ones: Test 1
4004 *#;*::;; foo : bar (who uses this?)
4006 <ul><li><ol><li><dl><dt> foo </dt>
4007 <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>
4026 <dt>bar (who uses this?)</dt>
4058 <dt> foo<span typeof="mw:Placeholder"> </span></dt>
4059 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd>
4071 Definition Lists: colons occurring in tags
4088 <dt><span>a:b</span></dt>
4106 Definition Lists: colons and tables 1
4118 </td></tr></table></dd></dl>
4122 </td></tr></table></dd></dl>
4126 # Parsoid's output (as documented below) differs from php's in this case.
4127 # This is probably a bug. If we fixup parsoid to match php's output, the
4128 # above test should pass and the below test case can be removed. It is
4129 # unclear which output is more desirable.
4132 Definition Lists: colons and tables 2
4144 </td></tr></table></dd>
4148 </td></tr></table></dd></dl>
4152 Definition Lists: template interaction
4154 ::{{definition_list}}
4157 ::{{definition_list}}
4162 <dl><dd><dl data-parsoid='{}'><dd about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"pi":[[]]}' data-mw='{"parts":[":",{"template":{"target":{"wt":"definition_list","href":"./Template:Definition_list"},"params":{},"i":0}}]}'>one</dd><span about="#mwt1">
4163 </span><dd about="#mwt1">two</dd></dl></dd></dl>
4165 <dl><dd data-parsoid='{}'>one
4166 <dl><dd about="#mwt2" typeof="mw:Transclusion" data-parsoid='{"pi":[[]]}' data-mw='{"parts":["::",{"template":{"target":{"wt":"definition_list","href":"./Template:Definition_list"},"params":{},"i":0}},"\n:::two\n:::three"]}'>one</dd><span about="#mwt2">
4167 </span><dd about="#mwt2">two
4169 <dd>three</dd></dl></dd>
4170 <dd data-parsoid='{}'>four</dd></dl></dd></dl>
4178 External links: non-bracketed
4180 Non-bracketed: http://example.com
4182 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4186 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4188 External links: numbered
4190 Numbered: [http://example.com]
4191 Numbered: [http://example.net]
4192 Numbered: [http://example.com]
4194 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
4195 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
4196 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
4199 <p>Numbered: <a rel="mw:ExtLink" href="http://example.com"></a>
4200 Numbered: <a rel="mw:ExtLink" href="http://example.net"></a>
4201 Numbered: <a rel="mw:ExtLink" href="http://example.com"></a></p>
4205 External links: specified text
4207 Specified text: [http://example.com link]
4209 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
4214 External links: trail
4216 Linktrails should not work for external links: [http://example.com link]s
4218 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
4223 External links: dollar sign in URL
4225 http://example.com/1$2345
4227 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
4231 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4233 External links: dollar sign in URL (autonumber)
4235 [http://example.com/1$2345]
4237 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
4240 <p><a rel="mw:ExtLink" href="http://example.com/1$2345"></a></p>
4244 External links: open square bracket forbidden in URL (bug 4377)
4246 parsoid=wt2html,wt2wt,html2html
4248 http://example.com/1[2345
4250 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
4253 <p><a rel="mw:ExtLink" href="http://example.com/1">http://example.com/1</a>[2345</p>
4257 External links: open square bracket forbidden in URL (named) (bug 4377)
4259 parsoid=wt2html,html2html
4261 [http://example.com/1[2345]
4263 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
4266 <p><a rel="mw:ExtLink" href="http://example.com/1">[2345</a></p>
4269 # parsoid adds a space before the link name
4271 External links: open square bracket forbidden in URL (named) (bug 4377)
4274 [http://example.com/1 [2345]
4276 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
4281 External links: nowiki in URL link text (bug 6230)
4283 [http://example.com/ <nowiki>''example site''</nowiki>]
4285 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
4290 External links: newline forbidden in text (bug 6230 regression check)
4292 [http://example.com/ first
4295 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
4301 External links: Pipe char between url and text
4303 [http://example.com | link]
4305 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
4310 External links: protocol-relative URL in brackets
4312 [//example.com/ Test]
4314 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
4318 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4320 External links: protocol-relative URL in brackets without text
4324 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
4327 <p><a rel="mw:ExtLink" href="//example.com"></a></p>
4331 External links: protocol-relative URL in free text is left alone
4335 <p>//example.com/Foo
4340 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
4342 foo//example.com/Foo
4344 <p>foo//example.com/Foo
4349 External links: with no contents
4351 [http://en.wikipedia.org/wiki/Foo]
4353 [[wikipedia:Foo|Bar]]
4355 [[wikipedia:Foo|<span>Bar</span>]]
4357 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/wiki/Foo">[1]</a>
4358 </p><p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo">Bar</a>
4359 </p><p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo"><span>Bar</span></a>
4362 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo"></a></p>
4363 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" title="wikipedia:Foo">Bar</a></p>
4364 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/wiki/Foo" title="wikipedia:Foo"><span>Bar</span></a></p>
4368 External links: Free with trailing punctuation
4378 http://example.com/url_with_(brackets)
4379 (http://example.com/url_without_brackets)
4380 http://example.com/url_with_entity
4381 http://example.com/url_with_entity 
4382 http://example.com/url_with_entity 
4383 http://example.com/url_with_entity<
4384 http://example.com/url_with_entity<
4385 http://example.com/url_with_entity<
4387 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>,
4388 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>;
4389 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>\
4390 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>.
4391 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>:
4392 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>!
4393 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>?
4394 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
4395 <a rel="nofollow" class="external free" href="http://example.com/url_with_(brackets)">http://example.com/url_with_(brackets)</a>
4396 (<a rel="nofollow" class="external free" href="http://example.com/url_without_brackets">http://example.com/url_without_brackets</a>)
4397 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4398 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4399 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4400 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity">http://example.com/url_with_entity</a><
4401 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity%3C">http://example.com/url_with_entity%3C</a>
4402 <a rel="nofollow" class="external free" href="http://example.com/url_with_entity%3C">http://example.com/url_with_entity%3C</a>
4405 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>,
4406 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>;
4407 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>\
4408 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>.
4409 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>:
4410 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>!
4411 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>?
4412 <a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)
4413 <a rel="mw:ExtLink" href="http://example.com/url_with_(brackets)">http://example.com/url_with_(brackets)</a>
4414 (<a rel="mw:ExtLink" href="http://example.com/url_without_brackets">http://example.com/url_without_brackets</a>)
4415 <a rel="mw:ExtLink" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4416 <a rel="mw:ExtLink" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4417 <a rel="mw:ExtLink" href="http://example.com/url_with_entity ">http://example.com/url_with_entity </a>
4418 <a rel="mw:ExtLink" href="http://example.com/url_with_entity">http://example.com/url_with_entity</a><span typeof="mw:Entity"><</span>
4419 <a rel="mw:ExtLink" href="http://example.com/url_with_entity<">http://example.com/url_with_entity<</a>
4420 <a rel="mw:ExtLink" href="http://example.com/url_with_entity<">http://example.com/url_with_entity<</a></p>
4424 External links: No preceding word characters allowed (bug 65278)
4426 NOPEhttp://example.com
4427 N0http://example.com
4428 ok:http://example.com
4429 ok-http://example.com
4431 <p>NOPEhttp://example.com
4432 N0http://example.com
4433 ok:<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4434 ok-<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4441 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4443 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
4448 External image from https
4450 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4452 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
4457 External image (when not allowed)
4459 wgAllowExternalImages=0
4461 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
4463 <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>
4468 Link to non-http image, no img tag
4470 Link to non-http image, no img tag: ftp://example.com/test.jpg
4472 <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>
4477 External links: terminating separator
4479 Terminating separator: http://example.com/thing,
4481 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
4486 External links: intervening separator
4488 Intervening separator: http://example.com/1,2,3
4490 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
4495 External links: old bug with URL in query
4497 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
4499 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
4504 External links: old URL-in-URL bug, mixed protocols
4506 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
4508 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
4513 External links: URL in text
4515 URL in text: [http://example.com http://example.com]
4517 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
4522 External links: Clickable images
4524 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
4526 <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>
4529 <p>ja-style clickable images: <a rel="mw:ExtLink" href="http://example.com"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" data-parsoid='{"type":"extlink"}'/></a></p>
4533 External links: raw ampersand
4535 Old & use: http://x&y
4537 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
4542 External links: encoded ampersand
4544 Old & use: http://x&y
4546 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
4549 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y">http://x&y</a></p>
4553 External links: encoded equals (bug 6102)
4555 http://example.com/?foo=bar
4557 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
4560 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a></p>
4564 ## Note that parsoid doesn't explicit mark autonumbered links, nor
4565 ## does it number them. As discussed in bug 53505, we can identify
4566 ## autonumbered links via CSS.
4570 External links: [raw ampersand]
4572 Old & use: [http://x&y]
4574 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
4577 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
4580 # note that parsoid html is identical to [raw ampersand] case; so html2wt
4581 # mode will return the [raw ampersand] wikitext
4583 External links: [encoded ampersand]
4585 parsoid=wt2html,wt2wt,html2html
4587 Old & use: [http://x&y]
4589 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
4592 <p>Old <span typeof="mw:Entity">&</span> use: <a rel="mw:ExtLink" href="http://x&y"></a></p>
4596 External links: [raw equals]
4598 [http://example.com/?foo=bar]
4600 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
4603 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
4606 # note that parsoid html is identical to [raw equals] case; so html2wt
4607 # mode will return the [raw equals] wikitext
4609 External links: [encoded equals] (bug 6102)
4611 parsoid=wt2html,wt2wt,html2html
4613 [http://example.com/?foo=bar]
4615 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
4618 <p><a rel="mw:ExtLink" href="http://example.com/?foo=bar"></a></p>
4621 # xxx parsoid strips the IDN character, so the round-trip tests will
4622 # obviously fail and are disabled. --cscott
4624 External links: [IDN ignored character reference in hostname; strip it right off]
4626 parsoid=wt2html,wt2wt,html2html
4628 [http://e‌xample.com/]
4630 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
4633 <p><a rel="mw:ExtLink" href="http://example.com/"></a></p>
4636 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
4637 # Where an external link could easily circumvent the sanitization of the text of
4638 # a link like this (where an IDN-ignore character is in the URL somewhere), this
4639 # test demands a higher standard. That's a bit strange.
4643 # http://example.com -> [http://example.com|http://example.com]
4644 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
4646 # The first example is sanitized, but the second is not. Any security benefits
4647 # from this production are trivial to circumvent. Either remove this test and
4648 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
4649 # the test accordingly.
4653 # xxx parsoid strips the IDN character, so the round-trip tests will
4654 # obviously fail and are disabled. --cscott
4656 External links: IDN ignored character reference in hostname; strip it right off
4658 parsoid=wt2html,html2html
4660 http://e‌xample.com/
4662 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
4665 <p><a rel="mw:ExtLink" href="http://example.com/">http://example.com/</a></p>
4669 External links: www.jpeg.org (bug 554)
4673 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
4677 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
4679 External links: URL within URL (original bug 2)
4681 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
4683 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
4686 <p><a rel="mw:ExtLink" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp"></a></p>
4690 BUG 361: URL inside bracketed URL
4692 [http://www.example.com/foo http://www.example.com/bar]
4694 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
4699 BUG 361: URL within URL, not bracketed
4701 http://www.example.com/foo?=http://www.example.com/bar
4703 <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>
4708 BUG 289: ">"-token in URL-tail
4710 http://www.example.com/<hello>
4712 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
4717 BUG 289: literal ">"-token in URL-tail
4719 http://www.example.com/<b>html</b>
4721 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
4724 <p><a rel="mw:ExtLink" href="http://www.example.com/" data-parsoid='{"stx":"url"}'>http://www.example.com/</a><b data-parsoid='{"stx":"html"}'>html</b></p>
4728 BUG 289: ">"-token in bracketed URL
4730 [http://www.example.com/<hello> stuff]
4732 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
4737 BUG 289: literal ">"-token in bracketed URL
4739 [http://www.example.com/<b>html</b> stuff]
4741 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
4746 BUG 289: literal double quote at end of URL
4748 http://www.example.com/"hello"
4750 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
4755 BUG 289: literal double quote in bracketed URL
4757 [http://www.example.com/"hello" stuff]
4759 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
4764 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
4766 [http://www.example.com test]
4768 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
4773 External links: link text with spaces
4775 [http://www.example.com a b c]
4776 [http://www.example.com ''a'' ''b'']
4778 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
4779 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
4784 External links: wiki links within external link (Bug 3695)
4786 [http://example.com [[wikilink]] embedded in ext link]
4788 <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>
4791 <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>
4795 BUG 787: Links with one slash after the url protocol are invalid
4799 [http:/example.com title]
4801 <p>http:/example.com
4802 </p><p>[http:/example.com title]
4807 Bracketed external links with template-generated invalid target
4809 [{{echo|http:/example.com}} title]
4811 <p>[http:/example.com title]
4816 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
4818 ''[http://example.com text'']
4819 [http://example.com '''text]'''
4820 ''Something [http://example.com in italic'']
4821 ''Something [http://example.com mixed''''', even bold]'''
4822 '''''Now [http://example.com both''''']
4824 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
4825 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
4826 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
4827 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
4828 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
4834 Bug 4781: %26 in URL
4836 http://www.example.com/?title=AT%26T
4838 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
4841 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a></p>
4844 # According to http://www.w3.org/TR/2011/WD-html5-20110525/Overview.html#parsing-urls a plain
4845 # % is actually legal in HTML5. Any change in output would need testing though.
4847 Bug 4781, 5267: %25 in URL
4849 http://www.example.com/?title=100%25_Bran
4851 <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>
4854 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran">http://www.example.com/?title=100%25_Bran</a></p>
4858 Bug 4781, 5267: %28, %29 in URL
4860 http://www.example.com/?title=Ben-Hur_%281959_film%29
4862 <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>
4865 <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>
4870 Bug 4781: %26 in autonumber URL
4872 [http://www.example.com/?title=AT%26T]
4874 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
4877 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T"></a></p>
4881 Bug 4781, 5267: %26 in autonumber URL
4883 [http://www.example.com/?title=100%25_Bran]
4885 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
4888 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=100%25_Bran"></a></p>
4892 Bug 4781, 5267: %28, %29 in autonumber URL
4894 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
4896 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
4899 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29"></a></p>
4904 Bug 4781: %26 in bracketed URL
4906 [http://www.example.com/?title=AT%26T link]
4908 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
4911 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=AT%26T">link</a></p>
4915 Bug 4781, 5267: %25 in bracketed URL
4917 [http://www.example.com/?title=100%25_Bran link]
4919 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
4924 Bug 4781, 5267: %28, %29 in bracketed URL
4926 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
4928 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
4931 <p><a rel="mw:ExtLink" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a></p>
4935 External link containing a period in the anchor. (bug 63947)
4937 [//foo.org/bar#baz. bang]
4939 [//foo.org/bar. bang]
4941 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4942 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4945 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4946 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4950 External link containing a single quote. (bug 63947)
4954 [//foo.org/bar'baz bang]
4956 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4957 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4960 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4961 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4966 External link containing a period in the anchor. (bug 63947)
4968 [//foo.org/bar#baz. bang]
4970 [//foo.org/bar. bang]
4972 <p><a rel="nofollow" class="external text" href="//foo.org/bar#baz.">bang</a>
4973 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar.">bang</a>
4976 <p><a rel="mw:ExtLink" href="//foo.org/bar#baz.">bang</a></p>
4977 <p><a rel="mw:ExtLink" href="//foo.org/bar.">bang</a></p>
4981 External link containing a single quote. (bug 63947)
4985 [//foo.org/bar'baz bang]
4987 <p><a rel="nofollow" class="external autonumber" href="//foo.org/bar'baz">[1]</a>
4988 </p><p><a rel="nofollow" class="external text" href="//foo.org/bar'baz">bang</a>
4991 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz"></a></p>
4992 <p><a rel="mw:ExtLink" href="//foo.org/bar'baz">bang</a></p>
4997 External link containing double-single-quotes in text '' (bug 4598 sanity check)
4999 Some [http://example.com/ pretty ''italics'' and stuff]!
5001 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
5006 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
5008 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
5010 <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>
5015 External link containing double-single-quotes with no space separating the url from text in italics
5017 [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]].]
5019 <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>
5022 <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>
5024 <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>
5028 External link with comments in link text
5030 [http://www.google.com Google <!-- comment -->]
5032 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
5037 URL-encoding in URL functions (single parameter)
5039 {{localurl:Some page|amp=&}}
5041 <p>/index.php?title=Some_page&amp=&
5046 URL-encoding in URL functions (multiple parameters)
5048 {{localurl:Some page|q=?&=&}}
5050 <p>/index.php?title=Some_page&q=?&amp=&
5057 http://example.com/index.php?foozoid%5B%5D=bar
5059 http://example.com/index.php?foozoid[]=bar
5061 <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>
5062 </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>
5065 <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>
5067 <p><a rel="mw:ExtLink" href="http://example.com/index.php?foozoid[]=bar">http://example.com/index.php?foozoid[]=bar</a></p>
5071 IPv6 urls (bug 21261)
5075 http://[2404:130:0:1000::187:2]/index.php
5077 <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>
5082 Non-extlinks in brackets
5091 [{{echo|foo}} ''bar'']
5092 [{{echo|foo}}l's] errand
5093 [{{echo|foo}}l's errand]
5095 [url=http://example.com]
5108 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
5113 Percent encoding in external links
5115 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
5117 <p><a rel="nofollow" class="external text" href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a>
5120 <p><a rel="mw:ExtLink"
5121 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
5125 Use url link syntax for links where the content is equal the link target
5129 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
5132 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
5136 Parenthesis in external links, especially URL links
5140 http://example.com/test)
5142 http://example.com/(test)
5144 http://example.com/((test)
5146 (http://example.com/(test))
5148 (http://example.com/(test)))))
5150 http://example.com/a)b
5152 [http://example.com) foo]
5154 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
5155 </p><p><a rel="nofollow" class="external free" href="http://example.com/test">http://example.com/test</a>)
5156 </p><p><a rel="nofollow" class="external free" href="http://example.com/(test)">http://example.com/(test)</a>
5157 </p><p><a rel="nofollow" class="external free" href="http://example.com/((test)">http://example.com/((test)</a>
5158 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test))">http://example.com/(test))</a>
5159 </p><p>(<a rel="nofollow" class="external free" href="http://example.com/(test)))))">http://example.com/(test)))))</a>
5160 </p><p><a rel="nofollow" class="external free" href="http://example.com/a)b">http://example.com/a)b</a>
5161 </p><p><a rel="nofollow" class="external text" href="http://example.com)">foo</a>
5164 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a>)</p>
5165 <p><a rel="mw:ExtLink" href="http://example.com/test">http://example.com/test</a>)</p>
5166 <p><a rel="mw:ExtLink" href="http://example.com/(test)">http://example.com/(test)</a></p>
5167 <p><a rel="mw:ExtLink" href="http://example.com/((test)">http://example.com/((test)</a></p>
5168 <p>(<a rel="mw:ExtLink" href="http://example.com/(test))">http://example.com/(test))</a></p>
5169 <p>(<a rel="mw:ExtLink" href="http://example.com/(test)))))">http://example.com/(test)))))</a></p>
5170 <p><a rel="mw:ExtLink" href="http://example.com/a)b">http://example.com/a)b</a></p>
5171 <p><a rel="mw:ExtLink" href="http://example.com)">foo</a></p>
5175 Parenthesis in external links, w/ transclusion or comment
5177 (http://example.com/{{echo|hi}})
5179 (http://example.com<!-- hi -->)
5181 <p>(<a rel="nofollow" class="external free" href="http://example.com/hi">http://example.com/hi</a>)
5182 </p><p>(<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
5185 <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>
5187 <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>
5191 Replace invalid link targets when serializing
5195 <a rel="mw:WikiLink" href="./]] foo [[bar">Manual</a>
5197 [[MediaWiki:Badtitletext|Manual]]
5207 Normal text. '''Bold text.''' Normal text. ''Italic text.''
5209 Normal text. '''''Bold italic text.''''' Normal text.
5211 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
5212 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
5217 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
5218 # parser strips. The wikitext contains just the first half of the bold
5221 Unclosed and unmatched quotes
5223 '''''Bold italic text '''with bold deactivated''' in between.'''''
5225 '''''Bold italic text ''with italic deactivated'' in between.'''''
5229 ..spanning two paragraphs (should not work).'''
5231 '''Bold tag left open
5233 ''Italic tag left open
5237 <!-- Unmatching number of opening, closing tags: -->
5238 '''This year''''s election ''should'' beat '''last year''''s.
5240 ''Tom'''s car is bigger than ''Susan'''s.
5242 Plain ''italic'''s plain
5244 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
5245 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
5246 </p><p><b>Bold text..</b>
5247 </p><p>..spanning two paragraphs (should not work).
5248 </p><p><b>Bold tag left open</b>
5249 </p><p><i>Italic tag left open</i>
5251 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
5252 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
5253 </p><p>Plain <i>italic'</i>s plain
5256 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
5257 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
5258 </p><p><b>Bold text..</b>
5259 </p><p>..spanning two paragraphs (should not work).<b></b>
5260 </p><p><b>Bold tag left open</b>
5261 </p><p><i>Italic tag left open</i>
5263 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
5264 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
5265 </p><p>Plain <i>italic'</i>s plain
5272 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
5275 # This should not produce <table></table> as <table><tr><td></td></tr></table>
5276 # is the bare minimum required by the spec, see:
5277 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
5278 # Parsoid team replies: empty table tags are legal in HTML5
5280 A table with no data.
5293 A table with stray table end tags on start tag line (wt2html)
5297 {|style="color: red;"|}
5299 {|style="color: red;" |}
5303 {|style="color: red;"|} id="foo"
5307 {|style="color: red;" |} id="foo"
5311 <table style="color: red;"></table>
5313 <table style="color: red;">
5319 <table style="color: red;" id="foo">
5325 <table style="color: red;" id="foo">
5334 A table with no data (take 2)
5342 # A table with nothing but a caption is invalid XHTML, we might want to render
5343 # this as <p>caption</p>
5344 # Parsoid team replies: table with only a caption is legal in HTML5
5346 A table with nothing but a caption
5354 </caption><tr><td></td></tr></table>
5357 <table><caption> caption</caption></table>
5361 A table with caption with default-spaced attributes and a table row
5364 |+ style="color: red;" | caption1
5370 <caption style="color: red;"> caption1
5379 A table with captions with non-default spaced attributes and a table row
5382 |+style="color: red;"|caption2
5383 |+ style="color: red;"| caption3
5389 <caption style="color: red;">caption2
5391 <caption style="color: red;"> caption3
5400 Table td-cell syntax variations
5404 | foo bar foo || baz
5405 | style='color:red;' | baz
5406 | style='color:red;' || baz
5413 <td> foo bar foo </td>
5416 <td style="color:red;"> baz
5418 <td> style='color:red;' </td>
5446 Simple table but with multiple dashes for row wikitext
5464 Multiplication table
5466 {| border="1" cellpadding="2"
5467 |+Multiplication table
5469 ! × !! 1 !! 2 !! 3
5487 <table border="1" cellpadding="2">
5488 <caption>Multiplication table
5535 Accept "||" in table headings
5550 Accept "!!" in table data
5564 <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>
5569 Accept "||" in indented table headings
5579 </th></tr></table></dd></dl>
5584 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
5601 Accept "| !" at start of line in tables (ignore !-attribute)
5605 | !style="color:red" | bar
5617 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 +/-
5621 |style='color:red;'|+1
5622 |style='color:blue;'|-1
5634 <td style="color:red;">+1
5636 <td style="color:blue;">-1
5660 |rowspan=2| Cell 2, row 1 (and 2)
5671 <td rowspan="2"> Cell 2, row 1 (and 2)
5689 {| bgcolor=#ABCDEF border=2
5694 |the original table again
5702 <table bgcolor="#ABCDEF" border="2">
5710 <td>the original table again
5716 Invalid attributes in table cell (bug 1830)
5729 # The "|}" to close the table is missing from the input, so parsoid's
5730 # *2wt modes will fail.
5732 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
5734 parsoid=wt2html,html2html
5737 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
5741 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
5742 <td>]" onmouseover="alert(document.cookie)">test
5750 <td><a rel="mw:ExtLink" href="ftp://|x||"></a>" onmouseover="alert(document.cookie)">test</td></tr></tbody></table>
5753 # FIXME: The php output is broken.
5755 ! and || in td attributes should not be parsed as <th>/<td>
5758 | style="color: red !important;" data-contrived="put this here ||" | foo
5763 <td> style="color: red !important;" data-contrived="put this here </td>
5769 <tbody><tr><td style="color: red !important;" data-contrived="put this here ||" data-parsoid='{"autoInsertedEnd":true}'> foo</td></tr>
5774 Indented table markup mixed with indented pre content (proposed in bug 6200)
5779 Text that should be rendered preformatted
5787 <pre>Text that should be rendered preformatted
5796 1. Template-generated table cell attributes and cell content
5801 | <!--foo--> <!--bar--> <!--baz--> {{table_attribs}}
5802 |align=center {{table_attribs}}
5803 | <!--foo--> align=center <!--bar--> {{table_attribs}}
5808 <td style="color:red;">Foo
5810 <td style="color:red;">Foo
5812 <td style="color:red;">Foo
5814 <td align="center" style="color:red;">Foo
5816 <td align="center" style="color:red;">Foo
5822 2. Template-generated table cell attributes and cell content
5825 |{{table_attribs_2}}
5830 <td style="color:red;">Foo
5838 <tbody><tr><td about="#mwt1" typeof="mw:Transclusion" style="color:red;" data-mw='{"parts":["|",{"template":{"target":{"wt":"table_attribs_2","href":"./Template:Table_attribs_2"},"params":{},"i":0}}]}'>Foo</td>
5839 <td about="#mwt1">Bar</td><td about="#mwt1">Baz</td></tr>
5844 3. Template-generated table cell attributes and cell content
5847 !align=center {{table_header_cells}}
5849 |align=center {{table_cells}}
5854 <th align="center" style="color:red;">Foo</th>
5855 <th style="color:red;"><i>Bar</i></th>
5856 <th style="color:brown;"><i>Foo</i> and Baz
5859 <td align="center" style="color:red;">Foo</td>
5860 <td style="color:red;"><i>Bar</i></td>
5861 <td style="color:brown;"><i>Foo</i> and Baz
5866 <tbody><tr><th align="center" style="color:red;" typeof="mw:Transclusion" about="#mwt1" data-mw='{"parts":["!align=center ",{"template":{"target":{"wt":"table_header_cells","href":"./Template:Table_header_cells"},"params":{},"i":0}}]}'>Foo</th><th about="#mwt1" style="color:red;"><i about="#mwt1">Bar</i></th><th about="#mwt1" style="color:brown;"><i about="#mwt1">Foo</i> and Baz</th></tr><tr>
5867 <td align="center" style="color:red;" typeof="mw:Transclusion" about="#mwt1" data-mw='{"parts":["|align=center ",{"template":{"target":{"wt":"table_cells","href":"./Template:Table_cells"},"params":{},"i":0}}]}'>Foo</td><td about="#mwt1" style="color:red;"><i about="#mwt1">Bar</i></td><td about="#mwt1" style="color:brown;"><i about="#mwt1">Foo</i> and Baz</td></tr>
5872 Table with row followed by newlines and table heading
5890 Table with empty line following the start tag
5907 # FIXME: Preserve the attribute properly (with an empty string as value) in
5908 # the PHP parser. Parsoid implements the behavior below.
5910 Table attributes with empty value
5920 </td></tr></tbody></table>
5925 Wikitext table with a lot of comments
5948 Wikitext table with double-line table cell
5965 Table cell with a single comment
5982 Table-cell after a comment-only-empty-line
5999 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>a</td>
6001 <!--c2--><td data-parsoid='{"autoInsertedEnd":true}'> b</td></tr>
6007 Build table with {{!}}
6009 {{{!}} class="wikitable"
6012 {{!}}- style="color:red;"
6013 {{!}} data {{!}}{{!}} style="color:red;" {{!}} second data
6016 <table class="wikitable">
6022 <tr style="color:red;">
6024 <td style="color:red;"> second data
6030 Build table with pipe as data
6032 {| class="wikitable"
6035 |- style="color:red;"
6036 | data || style="color:red;" | second data
6038 | style="color:red;" | data with | || style="color:red;" | second data with |
6040 || data with | ||| second data with |
6043 <table class="wikitable">
6049 <tr style="color:red;">
6051 <td style="color:red;"> second data
6054 <td style="color:red;"> data with | </td>
6055 <td style="color:red;"> second data with |
6058 <td> data with | </td>
6059 <td> second data with |
6065 Build table with wikilink
6067 {| class="wikitable"
6068 ! header || second header
6069 |- style="color:red;"
6070 | data [[Main Page|linktext]] || second data [[Main Page|linktext]]
6072 | data || second data [[Main Page|link|text with pipe]]
6075 <table class="wikitable">
6080 <tr style="color:red;">
6081 <td> data <a href="/wiki/Main_Page" title="Main Page">linktext</a> </td>
6082 <td> second data <a href="/wiki/Main_Page" title="Main Page">linktext</a>
6086 <td> second data <a href="/wiki/Main_Page" title="Main Page">link|text with pipe</a>
6091 # The expected HTML structure in this test is debatable. The PHP parser does
6092 # not parse this kind of table at all. The main focus for Parsoid is on
6093 # round-tripping, so this output is ok for now. TODO: revisit!
6095 Wikitext table with html-syntax row
6105 <td>foo</td></tr></tbody></table>
6108 ## Note that Parsoid output differs from PHP and PHP+tidy here.
6109 ## The lack of <tr> tags in the PHP output is arguably a bug in the
6110 ## PHP parser, which tidy then compounds by fostering the content
6111 ## entirely out of the table. Parsoid recognizes the table context
6112 ## and generates <tr> and <td> wrappers as needed. Hopefully nobody
6113 ## depends on PHP's treatment of broken table markup!
6115 Implicit <td> after a |-
6117 parsoid=wt2html,html2html
6137 # Again, Parsoid adds implicit <td>s here, PHP and Tidy strip the b out.
6139 <pre> tags should be recognized in an explicit <td> context, but not in an implicit <td> context
6141 parsoid=wt2html,html2html
6174 <tr><td><pre>a</pre></td></tr>
6175 <tr><td> b</td></tr>
6180 # PHP + Tidy strips the list out of the table; Parsoid wraps it.
6181 # Parsoid generates the missing <td>, so wt2wt won't succeed.
6183 Lists should be recognized in an implicit <td> context
6185 parsoid=wt2html,html2html
6212 Table cells not properly parsed in an implicit-td context
6216 {{table_attribs_4}} || a || b
6221 <td style="background-color:#DC241f;" width="10px"></td>
6228 <tbody><tr data-parsoid='{"startTagSrc":"|-","autoInsertedEnd":true}'>
6229 <td style="background-color:#DC241f;" width="10px" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"autoInsertedEnd":true,"pi":[[]]}' data-mw='{"parts":["",{"template":{"target":{"wt":"table_attribs_4","href":"./Template:Table_attribs_4"},"params":{},"i":0}}," "]}'> </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'> a </td><td data-parsoid='{"stx_v":"row","autoInsertedEnd":true}'> b</td></tr>
6234 Parsoid: Round-trip tables directly followed by content (bug 51219)
6236 parsoid=wt2html,wt2wt
6261 Parsoid: Default to a newline after tables in new content (bug 51219)
6266 <tr><td>foo</td></tr></tbody></table> bar
6268 <tr><td>baz</td></tr></tbody></table><b>quux</b>
6273 <nowiki> </nowiki>bar
6281 Parsoid: newline inducing block nodes don't suppress <nowiki>
6293 Parsoid: Row-syntax table headings followed by comment & table cells
6295 parsoid=wt2html,wt2wt
6299 <!-- foo --> || baz || quux
6313 <tbody><tr><th> foo </th><th> bar
6314 <!-- foo --> </th><td> baz </td><td> quux</td></tr>
6319 # PHP throws away the (semi-broken) "foo" class here; Parsoid
6322 Parsoid: Recover better from broken table attributes
6342 <p>foo</p></td></tr>
6347 Strip unsupported table tags
6395 Testing serialization after deletion of table cells
6406 | id="x" |c1 {{!}}{{!}}{{!}}c2 |||c3
6419 Plain link, capitalized
6423 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6428 Plain link, uncapitalized
6432 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
6439 [[Main Page|The Main Page]]
6441 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
6446 Piped link with comment in link text
6448 [[Main Page|The Main<!--front--> Page]]
6450 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
6455 Piped link with multiple pipe characters in link text
6457 [[Main Page||The|Main|Page|]]
6459 <p><a href="/wiki/Main_Page" title="Main Page">|The|Main|Page|</a>
6462 <p><a rel="mw:WikiLink" href="Main_Page" title="Main Page">|The|Main|Page|</a></p>
6470 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
6475 Broken link with fragment
6477 [[Zigzagzogzagzig#zug]]
6479 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
6484 Special page link with fragment
6486 [[Special:Version#anchor]]
6488 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
6493 Nonexistent special page link with fragment
6495 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
6497 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
6504 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
6506 <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>
6513 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
6515 <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>!!!
6526 Bug 43661: Piped links with identical prefixes
6528 [[prefixed article|prefixed articles with spaces]]
6530 [[prefixed article|prefixed articlesaoeu]]
6532 [[Main Page|Main Page test]]
6534 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
6535 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
6536 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
6542 Link with HTML entity in suffix / tail
6544 [[Main Page]]", [[Main Page]]a
6546 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
6549 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a><span typeof="mw:Entity" data-parsoid='{"src":"&quot;","srcContent":"\""}'>"</span>, <a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a><span typeof="mw:Entity" data-parsoid='{"src":"&#97;","srcContent":"a"}'>a</span></p>
6553 Link with 3 brackets
6562 Link with 4 brackets
6566 <p>[[<a href="/wiki/Main_Page" title="Main Page">Main Page</a>]]
6571 Piped link with 3 brackets
6573 [[[main page|the main page]]]
6575 <p>[[[main page|the main page]]]
6580 Piped link with extlink-like text
6583 [[Main Page|This is a [bar]]]
6585 <p><a href="/wiki/Main_Page" title="Main Page">[bar]</a>
6586 <a href="/wiki/Main_Page" title="Main Page">This is a [bar]</a>
6589 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page" data-parsoid='{"stx":"piped"}'>[bar]</a>
6590 <a rel="mw:WikiLink" href="./Main_Page" title="Main Page" data-parsoid='{"stx":"piped"}'>This is a [bar]</a></p>
6594 Link with multiple pipes
6596 [[Main Page|The|Main|Page]]
6598 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
6602 # Note that parsoid does not munge anchor text; all non-space
6603 # characters are valid in HTML5 ids.
6605 Anchor containing a #. (bug 63430)
6607 [[Main Page#And#Link]]
6609 <p><a href="/wiki/Main_Page#And.23Link" title="Main Page">Main Page#And#Link</a>
6612 <p><a rel="mw:WikiLink" href="./Main_Page#And%23Link" title="Main Page">Main Page#And#Link</a></p>
6618 [[Talk:Parser testing]], [[Meta:Disclaimers]]
6620 <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>
6625 Link with space in namespace
6627 [[User talk:Foo bar]]
6629 <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>
6634 MemoryAlpha:AlphaTest
6636 This is an article in the MemoryAlpha namespace
6637 (which shadows the memoryalpha interwiki link).
6641 Namespace takes precedence over interwiki link (bug 51680)
6643 [[MemoryAlpha:AlphaTest]]
6645 <p><a href="/wiki/MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a>
6649 # The previous test doesn't work correctly in html2*, due to not recognizing the
6650 # link as an internal one. This one checks for the correct behavior.
6652 Link to namespace preferred over interwiki with correct rel attribute
6654 parsoid=html2wt,html2html
6656 <p><a rel="mw:WikiLink" href="./MemoryAlpha:AlphaTest" title="MemoryAlpha:AlphaTest">MemoryAlpha:AlphaTest</a></p>
6658 [[MemoryAlpha:AlphaTest]]
6662 Piped link to namespace
6664 [[Meta:Disclaimers|The disclaimers]]
6666 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
6673 [[Usually caused by a typo (oops}]]
6675 <p>[[Usually caused by a typo (oops}]]
6682 Just a test of an article title containing a percent.
6686 Link containing % (not as a hex sequence)
6690 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
6693 <p><a rel="mw:WikiLink" href="./7%25_Solution" title="7% Solution">7% Solution</a></p>
6696 # note that the parsoid HTML is identical to the previous test output,
6697 # so the previous test ensures that the html2wt mode will generate the
6698 # "not as a hex sequence" wikitext.
6700 Link containing % as a single hex sequence interpreted to char
6702 parsoid=wt2wt,wt2html,html2html
6706 <p><a href="/wiki/7%25_Solution" title="7% Solution">7% Solution</a>
6709 <p><a rel="mw:WikiLink" href="./7%25_Solution" title="7% Solution">7% Solution</a></p>
6713 Link containing % as a double hex sequence interpreted to hex sequence
6717 <p>[[7%2525 Solution]]
6721 # note that parsoid does not munge anchor text; all non-space
6722 # characters are valid in HTML5 anchors.
6724 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
6725 Example for such a section: == < ==
6727 [[%23%3c]][[%23%3e]]
6729 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
6732 <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>
6736 Link containing "<#" and ">#" as a hex sequences
6738 [[%3c%23]][[%3e%23]]
6740 <p>[[%3c%23]][[%3e%23]]
6745 Link containing an equals sign
6747 [[Special:BookSources/isbn=4-00-026157-6]]
6749 <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>
6752 <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>
6758 Just a test of an article title containing a tilde.
6761 # note that links containing signatures, like [[Foo~~~~]], are
6762 # massaged by the pre-save transform (PST) and so the tildes are never
6763 # seen by the parser.
6765 Link containing a tilde
6769 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
6772 <p><a rel="mw:WikiLink" href="./Foo~bar" title="Foo~bar">Foo~bar</a></p>
6776 Link containing double-single-quotes '' (bug 4598)
6778 [[Lista d''e paise d''o munno]]
6780 <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>
6783 <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>
6787 Link containing double-single-quotes '' in text (bug 4598 sanity check)
6789 Some [[Link|pretty ''italics'' and stuff]]!
6791 <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>!
6794 <p>Some <a rel="mw:WikiLink" href="Link" title="Link">pretty <i>italics</i> and stuff</a>!</p>
6798 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
6800 ''Some [[Link|pretty ''italics'' and stuff]]!''
6802 <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>
6807 Link with double quotes in title part (literal) and alternate part (interpreted)
6809 [[File:Denys_Savchenko_''Pentecoste''.jpg]]
6813 [[''Pentecoste''|Pentecoste]]
6815 [[''Pentecoste''|''Pentecoste'']]
6817 <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>
6818 </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>
6819 </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>
6820 </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>
6823 <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>
6824 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''">''Pentecoste''</a></p>
6825 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''">Pentecoste</a></p>
6826 <p><a rel="mw:WikiLink" href="''Pentecoste''" title="''Pentecoste''"><i>Pentecoste</i></a></p>
6830 Broken image links with HTML captions (bug 39700)
6832 [[File:Nonexistent|<script></script>]]
6833 [[File:Nonexistent|100x100px|<script></script>]]
6834 [[File:Nonexistent|<]]
6835 [[File:Nonexistent|a<i>b</i>c]]
6837 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
6838 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
6839 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
6840 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
6843 <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>
6844 <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>
6845 <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>
6846 <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>
6852 [[http://www.example.com]]
6854 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
6857 <p>[<a rel="mw:ExtLink" href="http://www.example.com"></a>]</p>
6861 Plain link to URL with link text
6863 [[http://www.example.com Link text]]
6865 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
6870 Plain link to protocol-relative URL
6872 [[//www.example.com]]
6874 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
6877 <p>[<a rel="mw:ExtLink" href="//www.example.com"></a>]</p>
6881 Plain link to protocol-relative URL with link text
6883 [[//www.example.com Link text]]
6885 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
6890 Plain link to page with question mark in title
6896 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
6897 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
6902 # I'm fairly sure the expected result here is wrong.
6903 # We want these to be URL links, not pseudo-pages with URLs for titles....
6904 # However the current output is also pretty screwy.
6907 # I'm changing it to match the current output--it arguably makes more
6908 # sense in the light of the test above. Old expected result was:
6909 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
6911 # But I think this test is bordering on "garbage in, garbage out" anyway.
6916 Piped link to URL: [[http://www.example.com|an example URL]]
6918 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
6921 <p>Piped link to URL: [<a rel="mw:ExtLink" href="http://www.example.com|an">example URL</a>]</p>
6925 BUG 2: [[page|http://url/]] should link to page, not http://url/
6927 [[Main Page|http://url/]]
6929 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
6932 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">http://url/</a></p>
6935 # Parsoid does not mark self-links, by design.
6937 BUG 337: Escaped self-links should be bold
6941 [[Bug462]] [[Bug462]]
6943 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
6946 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong></p>
6948 <p><a rel="mw:WikiLink" href="./Bug462" title="Bug462">Bug462</a> <a rel="mw:WikiLink" href="./Bug462" title="Bug462">Bug462</a></p>
6952 Self-link to section should not be bold
6956 [[Main Page#section]]
6958 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
6969 Self-link to numeric title
6975 <p><strong class="selflink">0</strong>
6980 Link to numeric-equivalent title
6986 <p><a href="/wiki/00" title="00">00</a>
6991 <nowiki> inside a link
6993 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
6995 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
7000 Non-breaking spaces in title
7002 [[ Main Page ]]
7004 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
7009 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
7015 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
7020 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
7026 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
7031 Internal link with en linktrail: no apostrophes (bug 27473)
7037 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
7042 Internal link with ca linktrail with apostrophes (bug 27473)
7048 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
7053 Internal link with kaa linktrail with apostrophes (bug 27473)
7059 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
7064 Link with multiple ":" in a subpage-supporting namespace (bug 63636)
7066 [[User:Foo/Test/63636:Bar|Test]]
7068 <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>
7071 <p><a rel="mw:WikiLink" href="./User:Foo/Test/63636:Bar" title="User:Foo/Test/63636:Bar">Test</a></p>
7075 Purely hash wikilink
7077 title=[[User:test/123]]
7081 <p><a href="#a">b</a>
7084 <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>
7088 1. Interaction of linktrail and template encapsulation
7094 <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>
7098 2. Interaction of linktrail and template encapsulation
7102 {{echo|Some [[Fool]]}}s
7104 <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>
7108 3. Interaction of linktrail and template encapsulation
7112 {{echo|Some [[Fool]]s are '''bold and foolish'''}}
7114 <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>
7124 Internal link with is link prefix
7128 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
7130 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
7141 Internal link with is link trail and link prefix
7145 [[mótmælendatrú|xxx]]ar
7147 mótmælenda[[söfnuður]]
7148 mótmælenda[[söfnuður|söfnuðir]]
7149 mótmælenda[[söfnuður|söfnuðir]]xxx
7151 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
7152 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
7153 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
7154 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
7155 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
7160 Parsoid link trail escaping
7162 parsoid=html2wt,html2html
7164 <p><a rel="mw:WikiLink" href="Apple" title="Apple">apple</a>s</p>
7170 Parsoid link prefix escaping
7173 parsoid=html2wt,html2html
7175 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður" title="Söfnuður">söfnuður</a></p>
7177 Aðrir mótmælenda<nowiki/>[[söfnuður]]
7181 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
7189 [http://wp.org ''foo'']
7191 <p><a href="/wiki/Foo" title="Foo"> bar</a>
7192 </p><p><a href="/wiki/Foo" title="Foo"> <i>bar</i></a>
7193 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
7194 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
7199 Parsoid: Scoped parsing should handle mixed transclusions and plain text
7203 [[Foo|{{echo|a}} b {{echo|c}}]]
7205 <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>
7209 Link with angle bracket after anchor
7213 <p><a href="/wiki/Foo#.3Cbar.3E" title="Foo">Foo#<bar></a>
7216 <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>
7220 ### Interwiki links (see maintenance/interwiki.sql)
7224 Inline interwiki link
7226 parsoid=wt2html,wt2wt,html2html
7228 [[MeatBall:SoftSecurity]]
7230 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
7233 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a></p>
7237 Inline interwiki link with empty title (bug 2372)
7239 parsoid=wt2html,wt2wt,html2html
7243 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
7246 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?" title="meatball:">MeatBall:</a></p>
7250 Interwiki link encoding conversion (bug 1636)
7252 *[[Wikipedia:ro:Olteniţa]]
7253 *[[Wikipedia:ro:Olteniţa]]
7255 <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>
7256 <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>
7260 <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>
7261 <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>
7266 Interwiki link with fragment (bug 2130)
7268 [[MeatBall:SoftSecurity#foo]]
7270 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
7274 # Ideally the wikipedia: prefix here should be proto-relative too
7275 # [CSA]: this is kind of a bogus test, as the PHP parser test doesn't
7276 # define the 'en' prefix, and originally the test used 'wikipedia',
7277 # which isn't a localinterwiki prefix hence the links to the 'en:Foo'
7280 Different interwiki prefixes mapping to the same URL
7288 [[:wikipedia:Foo|Foo]]
7290 [[wikipedia:en:Foo]]
7292 [[:wikipedia:en:Foo]]
7296 <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>
7298 <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>
7300 <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>
7302 <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>
7304 <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>
7306 <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>
7308 <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>
7312 Interwiki links that cannot be represented in wiki syntax
7315 [[meatball:ok#foo|ok with fragment]]
7316 [[meatball:ok_as_well?|ok ending with ? mark]]
7317 [http://de.wikipedia.org/wiki/Foo?action=history has query]
7318 [http://de.wikipedia.org/wiki/#foo is just fragment]
7321 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?ok" class="extiw" title="meatball:ok">meatball:ok</a>
7322 <a href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo" class="extiw" title="meatball:ok">ok with fragment</a>
7323 <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>
7324 <a rel="nofollow" class="external text" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
7325 <a rel="nofollow" class="external text" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a>
7328 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok" title="meatball:ok">meatball:ok</a>
7329 <a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?ok#foo" title="meatball:ok">ok with fragment</a>
7330 <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>
7331 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/Foo?action=history">has query</a>
7332 <a rel="mw:ExtLink" href="http://de.wikipedia.org/wiki/#foo">is just fragment</a></p>
7336 Interwiki links: trail
7338 [[wikipedia:Foo|Ba]]r
7340 <p><a href="http://en.wikipedia.org/wiki/Foo" class="extiw" title="wikipedia:Foo">Bar</a>
7343 <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>
7347 Local interwiki link
7349 parsoid=wt2html,wt2wt,html2html
7351 [[local:Template:Foo]]
7353 <p><a href="/wiki/Template:Foo" title="Template:Foo">local:Template:Foo</a>
7356 <p><a rel="mw:WikiLink" href="./Template:Foo" title="Template:Foo">local:Template:Foo</a></p>
7359 # Parsoid does not mark self-links, by design.
7361 Local interwiki link: self-link to current page
7364 parsoid=wt2html,wt2wt,html2html
7368 <p><strong class="selflink">local:Main Page</strong>
7371 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">local:Main Page</a></p>
7375 Local interwiki link: prefix only (bug 64167)
7377 parsoid=wt2html,wt2wt,html2html
7381 <p><a href="/wiki/Main_Page" title="Main Page">local:</a>
7384 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">local:</a></p>
7388 Local interwiki link: with additional interwiki prefix (bug 61357)
7390 parsoid=wt2html,wt2wt,html2html
7392 [[local:meatball:Hello]]
7394 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?Hello" class="extiw" title="meatball:Hello">local:meatball:Hello</a>
7397 <p><a rel="mw:ExtLink" href="http://www.usemod.com/cgi-bin/mb.pl?Hello" title="meatball:Hello">local:meatball:Hello</a></p>
7401 Multiple local interwiki link prefixes
7403 [[local:local:local:local:mi:local:Foo]]
7405 parsoid=wt2html,wt2wt,html2html
7407 <p><a href="/wiki/Foo" title="Foo">local:local:local:local:mi:local:Foo</a>
7410 <p><a rel="mw:WikiLink" href="./Foo" title="Foo">local:local:local:local:mi:local:Foo</a></p>
7414 ### Interlanguage links
7415 ### Language links (so that searching for '### language' matches..)
7421 parsoid=wt2html,wt2wt,html2html
7429 <p>Blah blah blah</p>
7430 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7434 Interlanguage link with spacing
7436 parsoid=wt2html,wt2wt,html2html
7444 <p>Blah blah blah</p>
7445 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7449 Double interlanguage link
7451 parsoid=wt2html,wt2wt,html2html
7460 <p>Blah blah blah</p>
7461 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish"/>
7462 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7466 Interlanguage link variations
7468 parsoid=wt2html,wt2wt,html2html
7479 <p>Blah blah blah</p>
7480 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish" />
7481 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese" />
7482 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Foo_bar" />
7483 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Foo_bar" />
7487 Interlanguage link, with prefix links
7497 <p>Blah blah blah</p>
7498 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7502 Double interlanguage link, with prefix links (bug 8897)
7513 <p>Blah blah blah</p>
7514 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Spanish"/>
7515 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/Chinese"/>
7519 "Extra" interlanguage links (bug 32189 / gerrit 111390)
7527 <p>Blah blah blah</p>
7528 <link rel="mw:PageProp/Language" title="Multilingual" href="http://wikisource.org/wiki/Article"/>
7532 Parsoid-specific test: Wikilinks with should RT properly
7538 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
7543 Parsoid bug 53221: Wikilinks should be properly entity-escaped
7547 <p>He&nbsp;llo <a href="Foo" rel="mw:WikiLink">He&nbsp;llo</a></p>
7548 <p>He&nbsp;llo <a href="He&nbsp;llo" rel="mw:WikiLink">He&nbsp;llo</a></p>
7550 He&nbsp;llo [[Foo|He&nbsp;llo]]
7552 He&nbsp;llo [[He&nbsp;llo]]
7556 Parsoid: handle constructor well
7562 <p><a href="/index.php?title=Constructor&action=edit&redlink=1" class="new" title="Constructor (page does not exist)">constructor</a>
7563 </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>
7566 <p><a rel="mw:WikiLink" href="./Constructor" title="Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"}}">constructor</a></p>
7568 <p><a rel="mw:WikiLink" href="./Foo" title="Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"}}">constructor:foo</a></p>
7577 # Note that `ko` isn't a known interlanguage prefix
7579 Parsoid: recognize interlanguage links without a target page
7589 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/"/>
7591 <p><a rel="mw:WikiLink" href="./Ko:" title="Ko:">ko:</a></p>
7594 # Note that `ko` isn't a known interwiki prefix
7596 Parsoid: recognize interwiki links without a target page
7598 parsoid=wt2html,wt2wt,html2html
7604 <p><a href="http://es.wikipedia.org/wiki/" class="extiw" title="es:">es:</a>
7605 </p><p><a href="/wiki/Ko:" title="Ko:">ko:</a>
7608 <p><a rel="mw:ExtLink" href="http://es.wikipedia.org/wiki/" title="es:">es:</a></p>
7609 <p><a rel="mw:WikiLink" href="./Ko:" title="Ko:">ko:</a></p>
7613 Handle interwiki links pointing to the current wiki as plain wiki links (bug 45209)
7617 <p><a href="/wiki/Foo" title="Foo">mi:Foo</a>
7620 <p><a rel="mw:WikiLink" href="./Foo" title="Foo" data-parsoid='{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"mi:Foo"}}'>mi:Foo</a></p>
7624 Interlanguage link with preceding local interwiki link (bug 68085)
7626 parsoid=wt2html,wt2wt,html2html
7629 [[local:es:Spanish]]
7632 <a href="http://es.wikipedia.org/wiki/Spanish" class="extiw" title="es:Spanish">local:es:Spanish</a>
7636 <a rel="mw:ExtLink" href="http://es.wikipedia.org/wiki/Spanish" title="es:Spanish">local:es:Spanish</a></p>
7640 Looks like an interlanguage link, but is actually a local interwiki
7642 parsoid=wt2html,wt2wt,html2html
7648 <a href="/wiki/Template:Foo" title="Template:Foo">mi:Template:Foo</a>
7652 <a rel="mw:WikiLink" href="Template:Foo" title="Template:Foo">mi:Template:Foo</a></p>
7656 ### Redirects, Parsoid-only
7659 1. Simple redirect to page
7663 #REDIRECT [[Main Page]]
7665 <link rel="mw:PageProp/redirect" href="./Main_Page">
7668 # Only wt2html and html2html since "Main_Page" will serialize to "Main Page"
7670 2. Other redirect variants
7672 parsoid=wt2html,wt2wt
7674 #REDIRECT [[Main_Page]]
7675 #REDIRECT [[<nowiki>[[Bar]]</nowiki>]]
7677 <link rel="mw:PageProp/redirect" href="./Main_Page"><link rel="mw:PageProp/redirect" href="./%5B%5BBar%5D%5D">
7683 parsoid=wt2html,wt2wt
7688 <li>REDIRECT [[]]</li></ol>
7692 Optional colon in #REDIRECT
7694 # the colon is archaic syntax. we support it for wt2html, but we
7695 # don't care that it roundtrips back to the modern syntax.
7696 parsoid=wt2html,html2html
7698 #REDIRECT:[[Main Page]]
7700 <link rel="mw:PageProp/redirect" href="./Main_Page">
7704 Whitespace in #REDIRECT with optional colon
7706 # the colon and gratuitous whitespace is archaic syntax. we support
7707 # it for wt2html, but we don't care that it roundtrips back to the
7708 # modern syntax (without extra whitespace)
7709 parsoid=wt2html,html2html
7716 <link rel="mw:PageProp/redirect" href="./Main_Page">
7720 Piped link in #REDIRECT
7722 # content after piped link is ignored. we support this syntax,
7723 # but don't care that the piped link is lost when we roundtrip this.
7726 #REDIRECT [[Main Page|bar]]
7728 <link rel="mw:PageProp/redirect" href="./Main_Page">
7732 Redirect to category
7736 #REDIRECT [[Category:Foo]]
7738 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7742 Redirect to category with URL encoding
7746 #REDIRECT [[Category%3AFoo]]
7748 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:PageProp/Category" href="./Category:Foo">
7752 Redirect to category page
7754 parsoid=wt2html,html2html
7756 #REDIRECT [[:Category:Foo]]
7758 <p><a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Category:Foo</a></p>
7762 Redirect to image page (1)
7766 #REDIRECT [[File:Wiki.png]]
7768 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7772 Redirect to image page (2)
7776 #REDIRECT [[Image:Wiki.png]]
7778 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
7782 Redirect to language
7786 #REDIRECT [[en:File:Wiki.png]]
7788 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7792 Redirect to interwiki
7796 #REDIRECT [[meatball:File:Wiki.png]]
7798 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
7802 Non-English #REDIRECT
7807 #TILVÍSUN [[Main Page]]
7809 <link rel="mw:PageProp/redirect" href="./Main_Page">
7817 <p>Foo<link rel="mw:PageProp/redirect" href="./Foo"></p>
7837 Broken br tag sanitization
7845 # TODO: Fix html2html mode (bug 51055)!
7847 Parsoid: Broken br tag recognition
7860 Incorrecly removing closing slashes from correctly formed XHTML
7862 <br style="clear:both;" />
7864 <p><br style="clear:both;" />
7869 Failing to transform badly formed HTML into correct XHTML
7871 <br style="clear: left;">
7872 <br style="clear: right;">
7873 <br style="clear: both;">
7875 <p><br style="clear: left;" />
7876 <br style="clear: right;" />
7877 <br style="clear: both;" />
7881 ## FIXME: Is Parsoid's acceptance of self-closing html-tags
7882 ## a feature or a bug? See https://phabricator.wikimedia.org/T76962
7884 Handling html with a div self-closing tag
7893 <p><div title />
7897 <p><div title=bar />
7898 <div title=bar/>
7900 <div title="bar/"></div>
7904 <div title="" data-parsoid='{"stx":"html","selfClose":true}'></div>
7905 <div title="" data-parsoid='{"stx":"html","selfClose":true}'></div>
7906 <div title="" data-parsoid='{"stx":"html","selfClose":true,"brokenHTMLTag":true}'></div>
7907 <div title="bar" data-parsoid='{"stx":"html","selfClose":true}'></div>
7908 <div title="bar" data-parsoid='{"stx":"html","selfClose":true}'></div>
7909 <div title="bar/" data-parsoid='{"stx":"html","autoInsertedEnd":true}'></div>
7913 Handling html with a br self-closing tag
7922 <p><br title="title" />
7923 <br title="title" />
7940 Horizontal ruler (should it add that extra space?)
7955 Horizontal ruler -- 4+ dashes render hr
7964 Horizontal ruler -- eats additional dashes on the same line
7973 Horizontal ruler -- does not collapse dashes on consecutive lines
7984 Horizontal ruler -- <4 dashes render as plain text
7993 Horizontal ruler -- Supports content following dashes on same line
8005 ### Block-level elements
8014 <ul><li>Common list</li>
8016 <li>item 3</li></ul>
8027 <ol><li>Numbered list</li>
8029 <li> item 3</li></ol>
8043 ***#Number on level 4
8045 **#Number on level 3
8046 **#Number on level 3
8050 #** Level 3, but ordered
8053 <ol><li> with numbers</li></ol>
8054 <ul><li> and bullets</li></ul>
8055 <ol><li> and numbers</li></ol></li>
8057 <ul><li>bullet level 2
8058 <ul><li>bullet level 3
8059 <ol><li>Number on level 4</li></ol></li></ul></li>
8061 <ol><li>Number on level 3</li>
8062 <li>Number on level 3</li></ol></li></ul>
8063 <ol><li>number level 2</li></ol></li>
8065 <ul><li><ul><li> Level 3</li></ul></li></ul></li></ul>
8066 <ol><li><ul><li><ul><li> Level 3, but ordered</li></ul></li></ul></li></ol>
8077 <ul><li>bar</li></ul></li></ul>
8087 <ul><li><ul><li>foo</li></ul></li>
8093 Nested lists 3 (first element empty)
8099 <ul><li>bar</li></ul></li></ul>
8104 Nested lists 4 (first element empty)
8109 <ul><li><ul><li></li></ul></li>
8115 Nested lists 5 (both elements empty)
8120 <ul><li><ul><li></li></ul></li>
8126 Nested lists 6 (both elements empty)
8132 <ul><li></li></ul></li></ul>
8137 Nested lists 7 (skip initial nesting levels)
8141 <ul><li><ul><li><ul><li> foo</li></ul></li></ul></li></ul>
8146 Nested lists 8 (multiple nesting transitions)
8154 <ul><li><ul><li> bar</li></ul></li>
8155 <li> baz</li></ul></li>
8161 Nested lists 9 (extension interaction)
8167 <ul><li data-parsoid='{}'><ol class="references" typeof="mw:Extension/references" about="#mwt2" data-parsoid='{}' data-mw='{"name":"references","attrs":{}}'></ol></li></ul>
8171 1. Lists with start-of-line-transparent tokens before bullets: Comments
8184 2. Lists with start-of-line-transparent tokens before bullets: Template close
8189 <ul><li>foo bar</li>
8195 List items are not parsed correctly following a <pre> block (bug 785)
8201 <ul><li> <pre>foo</pre></li>
8202 <li> <pre>bar</pre></li>
8208 List items from template
8219 * notSOL{{inner list}}
8222 <ul><li> item 1</li>
8223 <li> item 2</li></ul>
8224 <ul><li> item 0</li>
8226 <li> item 2</li></ul>
8227 <ul><li> item 0</li>
8230 <li> item 2</li></ul>
8235 List interrupted by empty line or heading
8243 <ul><li> foo</li></ul>
8244 <ul><li><ul><li> bar</li></ul></li></ul>
8245 <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>
8246 <ul><li> Another list item</li></ul>
8251 Multiple list tags generated by templates
8272 Single-comment whitespace lines dont break lists, and neither do multi-comment whitespace lines
8275 <!--This line will NOT split the list-->
8277 <!--This line will NOT split the list either-->
8279 <!--foo--> <!----> <!--This line NOT split the list either-->
8290 Replacing whitespace with tabs still doesn't break the list (gerrit 78327)
8293 <!--This line will NOT split the list-->
8295 <!--This line will NOT split the list either-->
8297 <!--foo--> <!----> <!--This line NOT split the list
8310 (The PHP parser relies on Tidy for the hack)
8312 parsoid=wt2html,wt2wt
8316 * {{echo|<li>templated li-hack}}
8317 * <!--foo--> <li> unsupported li-hack with preceding comments
8320 <li><li>not a li-hack
8327 <li>templated li-hack</li>
8328 <li>unsupported li-hack with preceding comments</li>
8331 <li>not a li-hack</li>
8336 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
8363 Parsoid: Test of whitespace serialization with Templated bullets
8370 <li> </li><li about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"bullet","href":"./Template:Bullet"},"params":{},"i":0}}]}'> Bar</li>
8374 # ------------------------------------------------------------------------
8375 # The next set of tests are about Parsoid's ability to handle badly nested
8376 # tags (parse, minimize scope of fixup, and roundtrip back)
8377 # ------------------------------------------------------------------------
8380 Unbalanced closing block tags break a list
8381 (php parser relies on Tidy to fix up)
8399 # Parsoid fails this test, but it might be tricky to support properly.
8402 Unbalanced closing non-block tags don't break a list
8403 (php parser relies on Tidy to fix up)
8410 <li><span>a</span></li>
8411 <li><span>b</span></li>
8425 Unclosed formatting tags that straddle lists are closed and reopened
8426 (php parser relies on Tidy to fix up)
8428 parsoid=wt2html,wt2wt,html2html
8438 <ol><li> <s> a</s></li>
8439 <li><s> b </s></li></ol>
8444 1. List embedded in a formatting tag
8451 <li><small>foo</small></li>
8461 ## Ugly Parsoid output here
8462 ## Not sure what the right output is.
8464 2. List embedded in a formatting tag
8471 <li><small>a</small></li>
8472 <li><small>b</small></li>
8479 <li><small>b</small></li>
8483 # Ugly Parsoid and PHP parser output here
8484 # Not sure if we want to make this a test!
8487 ## 3. Unclosed formatting tags in list elements
8493 ## <li><small>a</small></li>
8494 ## <li><small><small>b</small></small></li>
8498 ## <li><small>a</small></li>
8500 ## <li><small>b</small></li>
8504 # This is a bug in the PHP parser + tidy combination.
8505 # (The </tr> tag gets parsed as text and html-escaped by PHP,
8506 # and then fostered out of the table by tidy.)
8507 # We believe the Parsoid output to be correct.
8509 Table with missing opening <tr> tag
8511 parsoid=wt2html,wt2wt
8529 # Note that the current date is hard-coded as
8530 # 1970-01-01T00:02:03Z (a Thursday)
8531 # when running parser tests. The timezone is also fixed to GMT, so
8532 # local date will be identical to current date.
8535 Magic Word: {{CURRENTDAY}}
8544 Magic Word: {{CURRENTDAY2}}
8553 Magic Word: {{CURRENTDAYNAME}}
8562 Magic Word: {{CURRENTDOW}}
8571 Magic Word: {{CURRENTMONTH}}
8580 Magic Word: {{CURRENTMONTH1}}
8589 Magic Word: {{CURRENTMONTHABBREV}}
8591 {{CURRENTMONTHABBREV}}
8598 Magic Word: {{CURRENTMONTHNAME}}
8600 {{CURRENTMONTHNAME}}
8607 Magic Word: {{CURRENTMONTHNAMEGEN}}
8609 {{CURRENTMONTHNAMEGEN}}
8616 Magic Word: {{CURRENTTIME}}
8625 Magic Word: {{CURRENTHOUR}}
8634 Magic Word: {{CURRENTWEEK}} (@bug 4594)
8643 Magic Word: {{CURRENTYEAR}}
8652 Magic Word: {{CURRENTTIMESTAMP}}
8654 {{CURRENTTIMESTAMP}}
8661 Magic Words LOCAL (UTC)
8665 * {{LOCALMONTHNAME}}
8666 * {{LOCALMONTHNAMEGEN}}
8667 * {{LOCALMONTHABBREV}}
8676 * {{LOCALTIMESTAMP}}
8691 <li> 19700101000203</li></ul>
8696 Magic Word: {{FULLPAGENAME}}
8698 title=[[User:Ævar Arnfjörð Bjarmason]]
8702 <p>User:Ævar Arnfjörð Bjarmason
8707 Magic Word: {{FULLPAGENAMEE}}
8709 title=[[User:Ævar Arnfjörð Bjarmason]]
8713 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8718 Magic Word: {{TALKSPACE}}
8720 title=[[User:Ævar Arnfjörð Bjarmason]]
8729 Magic Word: {{TALKSPACE}}, same namespace
8731 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8740 Magic Word: {{TALKSPACE}}, main namespace
8742 title=[[Parser Test]]
8751 Magic Word: {{TALKSPACEE}}
8753 title=[[User:Ævar Arnfjörð Bjarmason]]
8762 Magic Word: {{SUBJECTSPACE}}
8764 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8773 Magic Word: {{SUBJECTSPACE}}, same namespace
8775 title=[[User:Ævar Arnfjörð Bjarmason]]
8784 Magic Word: {{SUBJECTSPACE}}, main namespace
8786 title=[[Parser Test]]
8794 Magic Word: {{SUBJECTSPACEE}}
8796 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8805 Magic Word: {{NAMESPACE}}
8807 title=[[User:Ævar Arnfjörð Bjarmason]]
8816 Magic Word: {{NAMESPACEE}}
8818 title=[[User:Ævar Arnfjörð Bjarmason]]
8827 Magic Word: {{NAMESPACENUMBER}}
8829 title=[[User:Ævar Arnfjörð Bjarmason]]
8838 Magic Word: {{SUBPAGENAME}}
8840 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8849 Magic Word: {{SUBPAGENAMEE}}
8851 title=[[Ævar Arnfjörð Bjarmason/sub ö]] subpage
8860 Magic Word: {{ROOTPAGENAME}}
8862 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8866 <p>Ævar Arnfjörð Bjarmason
8871 Magic Word: {{ROOTPAGENAMEE}}
8873 title=[[Ævar Arnfjörð Bjarmason/sub/sub2]] subpage
8877 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8882 Magic Word: {{BASEPAGENAME}}
8884 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8888 <p>Ævar Arnfjörð Bjarmason
8893 Magic Word: {{BASEPAGENAMEE}}
8895 title=[[Ævar Arnfjörð Bjarmason/sub]] subpage
8899 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8904 Magic Word: {{TALKPAGENAME}}
8906 title=[[User:Ævar Arnfjörð Bjarmason]]
8910 <p>User talk:Ævar Arnfjörð Bjarmason
8915 Magic Word: {{TALKPAGENAMEE}}
8917 title=[[User:Ævar Arnfjörð Bjarmason]]
8921 <p>User_talk:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8926 Magic Word: {{SUBJECTPAGENAME}}
8928 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8932 <p>User:Ævar Arnfjörð Bjarmason
8937 Magic Word: {{SUBJECTPAGENAMEE}}
8939 title=[[User talk:Ævar Arnfjörð Bjarmason]]
8941 {{SUBJECTPAGENAMEE}}
8943 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
8948 Magic Word: {{NUMBEROFFILES}}
8957 Magic Word: {{PAGENAME}}
8959 title=[[User:Ævar Arnfjörð Bjarmason]]
8963 <p>Ævar Arnfjörð Bjarmason
8968 Magic Word: {{PAGENAME}} with metacharacters
8970 title=[['foo & bar = baz']]
8974 <p><i>'foo & bar = baz'</i>
8977 <p><i>'foo & bar = baz'</i></p>
8981 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
8983 title=[[*RFC 1234 http://example.com/]]
8987 <p>*RFC 1234 http://example.com/
8990 <p>*RFC 1234 http://example.com/</p>
8994 Magic Word: {{PAGENAMEE}}
8996 title=[[User:Ævar Arnfjörð Bjarmason]]
9000 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
9005 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
9007 title=[[*RFC 1234 http://example.com/]]
9011 <p>*RFC_1234_http://example.com/
9014 <p>*RFC_1234_http://example.com/</p>
9018 Magic Word: {{REVISIONID}}
9027 Magic Word: {{SCRIPTPATH}}
9036 Magic Word: {{STYLEPATH}}
9045 Magic Word: {{SERVER}}
9049 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
9054 Magic Word: {{SERVERNAME}}
9063 Magic Word: {{SITENAME}}
9072 Case-sensitive magic words, when cased differently, should just be template transclusions
9079 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
9080 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
9081 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
9082 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
9087 Case-insensitive magic words should still work with weird casing.
9097 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
9101 # From plwiki:PLOS_ONE
9103 Parsoid: Page property magic word with magic word contents
9105 {{DISPLAYTITLE:''{{PAGENAME}}''}}
9107 <meta property="mw:PageProp/displaytitle" content="Main Page" about="#mwt2" typeof="mw:ExpandedAttrs" data-mw='{"attribs":[[{"txt":"content"},{"html":"<i data-parsoid=\"{&quot;dsr&quot;:[15,31,2,2]}\"><span about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;pi&quot;:[[]],&quot;dsr&quot;:[17,29,null,null]}\" data-mw=\"{&quot;parts&quot;:[{&quot;template&quot;:{&quot;target&quot;:{&quot;wt&quot;:&quot;PAGENAME&quot;,&quot;function&quot;:&quot;pagename&quot;},&quot;params&quot;:{},&quot;i&quot;:0}}]}\">Main Page</span></i>"}]]}'/>
9111 Parsoid: Template-generated DISPLAYTITLE
9113 {{{{echo|DISPLAYTITLE}}:Foo}}
9115 <meta property="mw:PageProp/displaytitle" content="Foo" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"dsr":[0,29,null,null],"pi":[[]]}' data-mw='{"parts":[{"template":{"target":{"wt":"{{echo|DISPLAYTITLE}}:Foo"},"params":{},"i":0}}]}'/>
9119 Namespace 1 {{ns:1}}
9128 Namespace 1 {{ns:01}}
9137 Namespace 0 {{ns:0}} (bug 4783)
9145 Namespace 0 {{ns:00}} (bug 4783)
9153 Namespace -1 {{ns:-1}}
9162 Namespace User {{ns:User}}
9171 Namespace User talk {{ns:User_talk}}
9180 Namespace User talk {{ns:uSeR tAlK}}
9189 Namespace File {{ns:File}}
9198 Namespace File {{ns:Image}}
9207 Namespace (lang=de) Benutzer {{ns:User}}
9218 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
9224 <p>Benutzer Diskussion
9232 {{urlencode:hi world?!}}
9233 {{urlencode:hi world?!|WIKI}}
9234 {{urlencode:hi world?!|PATH}}
9235 {{urlencode:hi world?!|QUERY}}
9245 Magic Word: prioritize type info over data-parsoid
9249 <meta property="mw:PageProp/forcetoc" data-parsoid='{"magicSrc":"__NOTOC__"}'/>
9255 Magic Word: serialize on separate line (parsoid)
9257 parsoid=wt2wt,html2wt
9263 foo<meta property="mw:PageProp/notoc"/>bar
9267 Magic Word: rt non-english wikis
9274 <meta property="mw:PageProp/noeditsection" data-parsoid='{"magicSrc":"__NOEDITSECTION__"}'/>
9281 Magic links: internal link to RFC (bug 479)
9285 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
9290 Magic links: RFC (bug 479)
9294 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
9299 Magic links: RFC (bug 65278)
9301 This is RFC 822 but thisRFC 822 is not RFC 822linked.
9303 <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.
9308 Magic links: RFC (w/ non-newline whitespace, bug 28950/29025)
9310 RFC      822
9314 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
9321 Magic links: ISBN (bug 1937)
9325 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
9330 Magic links: ISBN (bug 65278)
9332 This is ISBN 978-0-316-09811-3 but thisISBN 978-0-316-09811-3 is not ISBN 978-0-316-09811-3linked.
9334 <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.
9337 <p>This is <a href="./Special:BookSources/9780316098113" rel="mw:ExtLink">ISBN 978-0-316-09811-3</a> but thisISBN 978-0-316-09811-3 is not ISBN 978-0-316-09811-3linked.</p>
9341 Magic links: ISBN (w/ non-newline whitespace, bug 28950/29025)
9343 ISBN      978 0 316 09811 3
9349 <p><a href="/wiki/Special:BookSources/9780316098113" class="internal mw-magiclink-isbn">ISBN 978 0 316 09811 3</a>
9358 Magic links: PMID incorrectly converts space to underscore
9362 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
9367 Magic links: PMID (bug 65278)
9369 This is PMID 1234 but thisPMID 1234 is not PMID 1234linked.
9371 <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.
9376 Magic links: PMID (w/ non-newline whitespace, bug 28950/29025)
9378 PMID      1234
9382 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
9393 Nonexistent template
9395 {{thistemplatedoesnotexist}}
9397 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
9402 Template with invalid target containing tags
9404 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
9406 <p>{{a<b>b</b>|foo|a=b|a = b}}
9411 Template with invalid target containing unclosed tag
9413 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
9415 <p>{{a<b>|foo|a=b|a = b}}</b>
9420 Template with invalid target containing wikilink
9424 <p>{{<a href="/wiki/Main_Page" title="Main Page">Main Page</a>}}
9427 <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>
9431 Template with just whitespace in it, bug #68421
9435 <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>
9441 This is a test template
9449 <p>This is a test template
9454 Template with explicit namespace
9458 <p>This is a test template
9466 This is a test template with parameter {{{param}}}
9472 {{paramtest|param=foo}}
9474 <p>This is a test template with parameter foo
9479 Template:paramtestnum
9485 Template unnamed parameter
9487 {{paramtestnum|Main Page|the main page}}
9489 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
9494 Template:templatesimple
9500 Template:templateredirect
9502 #redirect [[Template:templatesimple]]
9506 Template:templateasargtestnum
9512 Template:templateasargtest
9514 {{template{{{templ}}}}}
9518 Template:templateasargtest2
9524 Template with template name as unnamed argument
9526 {{templateasargtestnum|templatesimple}}
9533 Template with template name as argument
9535 {{templateasargtest|templ=simple}}
9542 Template with template name as argument (2)
9544 {{templateasargtest2|templ=templatesimple}}
9551 Template:templateasargtestdefault
9553 {{{{{templ|templatesimple}}}}}
9563 Template with default value
9565 {{templateasargtestdefault}}
9572 Template with default value (value set)
9574 {{templateasargtestdefault|templ=templa}}
9583 {{templateredirect}}
9590 Template with argument in separate line
9592 {{ templateasargtest |
9600 Template with complex template as argument
9603 param ={{ templateasargtest |
9606 <p>This is a test template with parameter (test)
9611 Template with thumb image (with link in description)
9613 {{paramtest|param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
9615 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>
9618 <p>This is a test template with parameter</p>
9619 <div class="thumb tright">
9620 <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>
9621 <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>
9625 <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>
9629 Template:complextemplate
9631 {{{1}}} {{paramtest|
9632 param ={{{param}}}}}
9636 Template with complex arguments
9639 param ={{ templateasargtest |
9640 templ = simple }}|[[Template:complextemplate|link]]}}
9642 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
9647 BUG 553: link with two variables in a piped link
9650 |[[{{{1}}}|{{{2}}}]]
9655 <td>[[{{{1}}}|{{{2}}}]]
9661 Magic variable as template parameter
9663 {{paramtest|param={{SITENAME}}}}
9665 <p>This is a test template with parameter MediaWiki
9672 [[{{{param}}}|link]]
9676 Template parameter as link source
9678 {{linktest|param=Main Page}}
9680 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
9687 including another template, {{paramtest|param={{{arg}}}}}
9691 Template passing argument to another template
9693 {{paramtest2|arg='hmm'}}
9695 <p>including another template, This is a test template with parameter 'hmm'
9706 Template as link source
9710 [[{{linktest2}}|Main Page]]
9712 [[{{linktest2}}]]Page
9714 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9715 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
9716 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
9734 Template infinite loop
9738 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
9743 Template from main namespace
9762 BUG 529: Template with table, not included at beginning of line
9781 BUG 523: Template shouldn't eat newline (or add an extra one before table)
9801 BUG 41: Template parameters shown as broken links
9810 Template with targets containing wikilinks
9814 {{[[{{echo|foo}}]]}}
9816 {{{{echo|[[foo}}]]}}
9818 <p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
9819 </p><p>{{<a href="/wiki/Foo" title="Foo">foo</a>}}
9827 ''None'' of '''this''' should be
9829 but rather passed unmodified
9836 # hmm, fix this or just deprecate msgnw and document its behavior?
9840 {{msgnw:MSGNW test}}
9842 <p>''None'' of '''this''' should be
9844  but rather passed unmodified
9845 {{test}}
9855 {{int:youhavenewmessages|lots of money|not!}}
9857 <p>You have lots of money (not!).
9864 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9868 <includeonly> and <noinclude> being included
9879 <onlyinclude>Foo</onlyinclude>bar
9883 <onlyinclude> being included
9895 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
9899 <onlyinclude> and <includeonly> being included
9908 <includeonly> and <noinclude> on a page
9910 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
9917 Un-closed <noinclude>
9924 <onlyinclude> on a page
9926 <onlyinclude>Foo</onlyinclude>bar
9933 Un-closed <onlyinclude>
9940 Self-closed noinclude, includeonly, onlyinclude tags
9951 Unbalanced includeonly and noinclude tags
9955 |b</noinclude></noinclude>
9956 |c</noinclude></includeonly>
9957 |d</includeonly></includeonly>
9966 <td>c</includeonly>
9968 <td>d</includeonly></includeonly>
9974 Template:Includeonly section
9977 ==Includeonly section==
9983 Bug 6563: Edit link generation for section shown by <includeonly>
9985 {{includeonly section}}
9987 <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>
9988 <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>
9992 # Uses same input as the contents of [[Template:Includeonly section]]
9994 Bug 6563: Section extraction for section shown by <includeonly>
9999 ==Includeonly section==
10007 Bug 6563: Edit link generation for section suppressed by <includeonly>
10010 ==Includeonly section==
10014 <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>
10019 Bug 6563: Section extraction for section suppressed by <includeonly>
10024 ==Includeonly section==
10032 Un-closed <includeonly>
10039 Includes and comments at SOL
10041 <!-- comment --><noinclude><!-- comment --></noinclude><!-- comment -->== hu ==
10045 </noinclude>* stuff
10048 <includeonly>can have stuff</includeonly>=== here ===
10051 <h2><span class="mw-headline" id="hu">hu</span></h2>
10054 <ul><li> stuff</li>
10055 <li> here</li></ul>
10056 <h3><span class="mw-headline" id="here">here</span></h3>
10059 <!-- 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>
10061 <meta typeof="mw:Includes/NoInclude" data-parsoid='{"src":"<noinclude>"}'/>
10063 <meta typeof="mw:Includes/NoInclude/End" data-parsoid='{"src":"</noinclude>"}'/><ul><li> stuff</li>
10064 <li> here</li></ul>
10066 <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>
10070 # TODO: test with DOM fragment reuse!
10072 Parsoid: DOM fragment reuse
10074 parsoid=wt2wt,wt2html
10076 a{{echo|b<table></table>c}}d
10088 <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>
10090 <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">
10091 </span><table about="#mwt2" data-parsoid='{"stx":"html"}'></table><span about="#mwt2">
10092 </span><p about="#mwt2">cd</p>
10094 <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">
10096 </span><table about="#mwt3" data-parsoid='{"stx":"html"}'></table><span about="#mwt3">
10098 </span><p about="#mwt3">b</p>
10102 Parsoid: Merge double tds (bug 50603)
10107 |{{echo|{{!}} foo}}
10111 <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>
10116 Parsoid: Merge double tds in nested transclusion content (bug 50603)
10122 |{{echo|{{!}} foo}}
10126 <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}}]}'>
10128 <tr><td data-mw='{"parts":["|"]}'> foo</td></tr>
10134 ### <includeonly> and <noinclude> in attributes
10137 0. includeonly around the entire attribute
10139 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
10141 <p><span id="v2">bar</span>
10146 1. includeonly in html attr key
10148 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
10150 <p><span id="foo">bar</span>
10155 2. includeonly in html attr value
10157 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
10158 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
10160 <p><span id="v1">bar</span>
10161 <span id="v1">bar</span>
10166 3. includeonly in part of an attr value
10168 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
10170 <p><span style="color:red;">bar</span>
10175 4. includeonly in table attributes
10199 ### Token Stream Patcher tests
10201 ### These tests won't always pass wt2wt and other modes because
10202 ### on serialization, the table will be output on a new line.
10203 ### For now, we are blacklisting them, and using this to test selser.
10207 1. Table tag in SOL posn. should get reparsed correctly with valid TSR
10209 parsoid=wt2html,wt2wt
10211 {{echo|}}{| width = '100%'
10215 <span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":""}},"i":0}}]}'></span><table width="100%">
10216 <tbody><tr><td>foo</td></tr>
10221 2. Table tag in SOL posn. should get reparsed correctly with valid TSR
10223 parsoid=wt2html,wt2wt
10225 <includeonly>a</includeonly>{| {{{b}}}
10229 <meta typeof="mw:Includes/IncludeOnly"/><meta typeof="mw:Includes/IncludeOnly/End"/><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}}}":""}}'>
10230 <tbody><tr><td>c</td></tr>
10236 ### Testing parsing of templates where a template arg
10237 ### has the same name as the template itself.
10243 {{{quote|{{{1}}}}}}
10247 Templates: Template Name/Arg clash: 1. Use of positional param
10256 Templates: Template Name/Arg clash: 2. Use of named param
10258 {{quote|quote=foo}}
10265 Templates: Template Name/Arg clash: 3. Use of named param with empty input
10274 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
10278 Templates: 1. Simple use
10287 Templates: 2. Inside a block tag
10289 <div>{{echo|Foo}}</div>
10290 <blockquote>{{echo|Foo}}</blockquote>
10293 <blockquote>Foo</blockquote>
10303 Templates: P-wrapping: 1a. Templates on consecutive lines
10314 Templates: P-wrapping: 1b. Templates on consecutive lines
10328 Templates: P-wrapping: 1c. Templates on consecutive lines
10331 {{echo|bar}} <div>baz</div>
10344 Templates: P-wrapping: 1d. Template preceded by comment-only line
10353 <p about="#mwt223" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"Bar"}},"i":0}}]}'>Bar</p>
10357 Templates: Inline Text: 1. Multiple template uses
10359 {{echo|Foo}}bar{{echo|baz}}
10366 Templates: Inline Text: 2. Back-to-back template uses
10368 {{echo|Foo}}{{echo|bar}}
10375 Templates: Block Tags: 1. Multiple template uses
10377 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
10379 <div>Foo</div><div>bar</div><div>baz</div>
10384 Templates: Block Tags: 2. Back-to-back template uses
10386 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
10388 <div>Foo</div><div>bar</div>
10392 # This is an edge case relating to paragraph wrapping.
10394 Templates: Correctly encapsulate templates producing </p> tag without a corresponding <p> tag
10399 <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
10404 Templates: Links: 1. Simple example
10406 {{echo|[[Foo|bar]]}}
10408 <p><a href="/wiki/Foo" title="Foo">bar</a>
10413 Templates: Links: 2. Generation of link href
10415 [[{{echo|Foo}}|bar]]
10417 <p><a href="/wiki/Foo" title="Foo">bar</a>
10422 Templates: Links: 3. Generation of part of a link href
10424 [[Fo{{echo|o}}|bar]]
10426 [[Foo{{echo|bar}}]]
10428 [[Foo{{echo|bar}}baz]]
10430 [[Foo{{echo|bar}}|bar]]
10432 [[:Foo{{echo|bar}}]]
10434 [[:Foo{{echo|bar}}|bar]]
10436 <p><a href="/wiki/Foo" title="Foo">bar</a>
10437 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10438 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
10439 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
10440 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10441 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
10446 Templates: Links: 4. Multiple templates generating link href
10448 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
10450 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
10455 Templates: Links: 5. Generation of link text
10457 [[Foo|{{echo|bar}}]]
10459 <p><a href="/wiki/Foo" title="Foo">bar</a>
10464 Templates: Links: 5. Nested templates (only outermost template should be marked)
10466 {{echo|[[{{echo|Foo}}|bar]]}}
10468 <p><a href="/wiki/Foo" title="Foo">bar</a>
10473 Templates: HTML Tag: 1. Generation of HTML attr. key
10475 <div {{echo|style}}="color:red;">foo</div>
10477 <div style="color:red;">foo</div>
10482 Templates: HTML Tag: 2. Generation of HTML attr. value
10484 <div style={{echo|'color:red;'}}>foo</div>
10486 <div style="color:red;">foo</div>
10491 Templates: HTML Tag: 3. Generation of HTML attr key and value
10493 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
10495 <div style="color:red;">foo</div>
10500 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
10502 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
10504 <div title="This is a long title with just one piece templated">foo</div>
10509 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
10511 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
10513 <div title="This is a long title with just one piece templated">foo</div>
10518 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
10520 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
10522 <div title="This is a long title with just one piece templated">foo</div>
10526 # SSS FIXME: While it is great we added support for all this,
10527 # do we want to make this part of the spec? Maybe we want to
10528 # deprecate this kind of usage in the future?
10530 Templates: HTML Tag: 7. Generation of partial attribute key string
10532 <div st{{echo|yle}}="color:red;">foo</div>
10534 <div style="color:red;">foo</div>
10539 Templates: HTML Tag: 8. Template-generated attribute (k=v)
10541 <div {{echo|1=id="v1"}}>bar</div>
10543 <div id="v1">bar</div>
10548 Templates: HTML Tag: 9. Multiple template-generated attributes
10550 <div {{echo|1=id="v1" title="foo"}}>bar</div>
10552 <div id="v1" title="foo">bar</div>
10557 Templates: Support for templates generating attributes and content
10559 {| {{mixed_attr_content_template}}
10564 <table style="color:red;" title="T48811">
10574 <table style="color:red;" title="T48811" about="#mwt1" typeof="mw:Transclusion mw:ExpandedAttrs" data-mw='{"parts":["{| ",{"template":{"target":{"wt":"mixed_attr_content_template","href":"./Template:Mixed_attr_content_template"},"params":{},"i":0}},"\n|-\n|bar\n|}"]}'>
10583 1. Entities and nowikis inside templated attributes should be handled correctly
10585 <div {{echo|style{{=}}"background:#f9f9f9;"}}>foo</div>
10587 <div style="background:#f9f9f9;">foo</div>
10590 <div style="background:#f9f9f9;" about="#mwt3" typeof="mw:ExpandedAttrs" data-parsoid='{"stx":"html"}' data-mw='{"attribs":[[{"txt":"style","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;:[5,49,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;style{{=}}\\&quot;background:&amp;#35;f9f9f9;\\&quot;&quot;}},&quot;i&quot;:0}}]}\">style</span><span typeof=\"mw:Nowiki\" about=\"#mwt1\" data-parsoid=\"{}\">=</span><span about=\"#mwt1\" data-parsoid=\"{}\">\"background:</span><span typeof=\"mw:Entity\" about=\"#mwt1\" data-parsoid=\"{&quot;src&quot;:&quot;&amp;#35;&quot;,&quot;srcContent&quot;:&quot;#&quot;}\">#</span><span about=\"#mwt1\" data-parsoid=\"{}\">f9f9f9;\"</span>"},{"html":""}]]}'>foo</div>
10594 2. Entities and nowikis inside templated attributes should be handled correctly
10597 |{{table_attribs_3}}
10602 <td style="background:#f9f9f9;">Foo
10607 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td style="background:#f9f9f9;" typeof="mw:Transclusion" about="#mwt1" data-parsoid='{"autoInsertedEnd":true,"pi":[[]]}' data-mw='{"parts":["|",{"template":{"target":{"wt":"table_attribs_3","href":"./Template:Table_attribs_3"},"params":{},"i":0}}]}'>Foo</td></tr>
10612 Templates: HTML Tables: 1. Generating start of a HTML table
10614 {{echo|<table><tr><td>foo</td>}}</tr></table>
10616 <table><tr><td>foo</td></tr></table>
10621 Templates: HTML Tables: 2a. Generating middle of a HTML table
10623 <table><tr>{{echo|<td>foo</td>}}</tr></table>
10625 <table><tr><td>foo</td></tr></table>
10630 Templates: HTML Tables: 2b. Generating middle of a HTML table
10632 <table>{{echo|<tr><td>foo</td></tr>}}</table>
10634 <table><tr><td>foo</td></tr></table>
10639 Templates: HTML Tables: 3. Generating end of a HTML table
10641 <table><tr>{{echo|<td>foo</td></tr></table>}}
10643 <table><tr><td>foo</td></tr></table>
10648 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
10650 {{echo|<table>}}<tr><td>foo</td></tr></table>
10652 <table><tr><td>foo</td></tr></table>
10657 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
10659 <table>{{echo|<tr>}}<td>foo</td></tr></table>
10661 <table><tr><td>foo</td></tr></table>
10666 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
10668 <table><tr>{{echo|<td>}}foo</td></tr></table>
10670 <table><tr><td>foo</td></tr></table>
10675 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
10677 <table><tr><td>foo{{echo|</td>}}</tr></table>
10679 <table><tr><td>foo</td></tr></table>
10684 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
10686 <table><tr><td>foo</td>{{echo|</tr>}}</table>
10688 <table><tr><td>foo</td></tr></table>
10693 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
10695 <table><tr><td>foo</td></tr>{{echo|</table>}}
10697 <table><tr><td>foo</td></tr></table>
10702 Templates: HTML Tables: 5. Proper fostering of categories from inside
10704 parsoid=wt2html,wt2wt
10706 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
10707 <!--Two categories (Bug 50330)-->
10708 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
10710 <link rel="mw:PageProp/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
10711 <!--Two categories (Bug 50330)-->
10712 <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>
10716 Templates: Wiki Tables: 1a. Fostering of entire template content
10724 <tr><td></td></tr></table>
10736 Templates: Wiki Tables: 1b. Fostering of entire template content
10749 <tr><td></td></tr></table>
10763 Templates: Wiki Tables: 2. Fostering of partial template content
10773 <tr><td></td></tr></table>
10786 Templates: Wiki Tables: 3. td-content via multiple templates
10789 {{echo|{{pipe}}a}}{{echo|b}}
10800 Templates: Wiki Tables: 4. Templated tags, no content
10806 <tr><td></td></tr></table>
10811 Templates: Wiki Tables: 5. Templated tags, regular td-tags
10825 Templates: Wiki Tables: 6. Templated tags, templated td-tags
10839 Templates: Lists: Multi-line list-items via templates
10841 *{{echo|a {{nonexistent|
10843 *{{echo|b {{nonexistent|
10846 <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>
10847 <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>
10852 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
10854 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
10856 <p><i>ab</i>c<i>d</i>e
10861 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
10862 (PHP parser generates misnested html)
10864 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
10866 <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>
10870 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
10871 (PHP parser generates misnested html; Parsoid html2wt mode adds newlines between {{echo}}s)
10873 parsoid=wt2html,wt2wt
10875 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
10877 <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>
10878 <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>
10879 <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>
10883 Templates: Ugly nesting: 4. Divs opened/closed across templates
10885 a<div>b{{echo|c</div>d}}e
10896 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
10902 |{{echo|foo</table>}}
10906 <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|}"]}'>
10910 <td>foo</td></tr></tbody></table><span about="#mwt1">
10911 </span><span about="#mwt1">|bar</span><span about="#mwt1">
10916 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
10926 <td>1. {{echo|foo </table>}}</td>
10928 <td>2. {{echo|baz </table>}}</td>
10941 <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>"]}'>
10946 <td>1. foo </td></tr></tbody></table></td>
10948 <td>2. baz </td></tr></tbody></table><span about="#mwt2">
10949 </span><span about="#mwt2">
10950 </span><span about="#mwt2">
10951 </span><span about="#mwt2">abc</span><span about="#mwt2">
10952 </span><span about="#mwt2">
10953 </span><span about="#mwt2">
10954 </span><span about="#mwt2">
10955 </span><span about="#mwt2">
10956 </span><span about="#mwt2">
10957 </span><span about="#mwt2">xyz</span><span about="#mwt2">
10958 </span><span about="#mwt2">
10963 Templates: Ugly templates: 3. newline-only template parameter
10972 # This looks like a bug: a single newline triggers p/br for some reason.
10974 Templates: Ugly templates: 4. newline-only template parameter inconsistency
10983 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges that
10984 # have a true overlap (T1-start - T2-start - T1-end - T2-end).
10986 Templates: Ugly templates: 5. Template encapsulation test: Non-trivial overlap of template ranges is properly handled
10992 <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
10993 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
10997 # Bug 64017 -- ugly wikitext with fostered content generates two template ranges
10998 # that are "identical" and generate nesting cycles in the algorithm
11000 Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of template ranges is properly handled
11002 {{echo|<table><tr><td><table>}}
11006 <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"}'>
11007 </div><table about="#mwt1" data-parsoid='{"stx":"html"}'>
11008 </table></td></tr></tbody></table>
11012 Parser Functions: 1. Simple example
11021 Parser Functions: 2. Nested use (only outermost should be marked up)
11030 ### Pre-save transform tests
11033 pre-save transform: subst:
11039 This is a test template
11043 pre-save transform: normal template
11053 pre-save transform: nonexistent template
11057 {{thistemplatedoesnotexist}}
11059 {{thistemplatedoesnotexist}}
11064 pre-save transform: subst magic variables
11073 # This is bug 89, which I fixed. -- wtm
11075 pre-save transform: subst: templates with parameters
11079 {{subst:paramtest|param="something else"}}
11081 This is a test template with parameter "something else"
11085 Template:nowikitest
11087 <nowiki>'''not wiki'''</nowiki>
11091 pre-save transform: nowiki in subst (bug 1188)
11095 {{subst:nowikitest}}
11097 <nowiki>'''not wiki'''</nowiki>
11102 Template:commenttest
11104 This template has <!-- a comment --> in it.
11108 pre-save transform: comment in subst (bug 1936)
11112 {{subst:commenttest}}
11114 This template has <!-- a comment --> in it.
11118 pre-save transform: unclosed tag
11122 <nowiki>'''not wiki'''
11124 <nowiki>'''not wiki'''
11128 pre-save transform: mixed tag case
11132 <NOwiki>'''not wiki'''</noWIKI>
11134 <NOwiki>'''not wiki'''</noWIKI>
11138 pre-save transform: unclosed comment in <nowiki>
11142 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
11144 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
11147 # Leading @ in this template definition works around a limitation
11148 # in parsoid's parserTests which otherwise strips the <span> from the
11149 # result (confusing it for a template wrapper)
11153 @<span onmouseover="alert('crap')">Oh no</span>
11157 (confirming safety of fix for subst bug 1936)
11159 {{Template:dangerous}}
11161 <p>@<span>Oh no</span>
11166 pre-save transform: comment containing gallery (bug 5024)
11170 <!-- <gallery>data</gallery> -->
11172 <!-- <gallery>data</gallery> -->
11176 pre-save transform: comment containing extension
11180 <!-- <tag>data</tag> -->
11182 <!-- <tag>data</tag> -->
11186 pre-save transform: comment containing nowiki
11190 <!-- <nowiki>data</nowiki> -->
11192 <!-- <nowiki>data</nowiki> -->
11196 pre-save transform: <noinclude> in subst (bug 3298)
11206 pre-save transform: <onlyinclude> in subst (bug 3298)
11210 {{subst:Includes2}}
11218 {{<includeonly>subst:</includeonly>Includes}}
11222 Template:SafeSubstTest
11224 {{<includeonly>safesubst:</includeonly>Includes}}
11228 bug 22297: safesubst: works during PST
11232 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
11238 bug 22297: safesubst: works during normal parse
11247 subst: does not work during normal parse
11251 <p>{{subst:Includes}}
11256 pre-save transform: context links ("pipe trick")
11260 [[Article (context)|]]
11263 [[Bar:Article (context)|]]
11264 [[:Bar:Article (context)|]]
11266 [[|Article (context)]]
11270 [[Article (context)|Article]]
11271 [[Bar:Article|Article]]
11272 [[:Bar:Article|Article]]
11273 [[Bar:Article (context)|Article]]
11274 [[:Bar:Article (context)|Article]]
11276 [[Article (context)]]
11277 [[Bar:X (Y) Z|X (Y) Z]]
11278 [[:Bar:X (Y) Z|X (Y) Z]]
11282 pre-save transform: context links ("pipe trick") with interwiki prefix
11286 [[interwiki:Article|]]
11287 [[:interwiki:Article|]]
11288 [[interwiki:Bar:Article|]]
11289 [[:interwiki:Bar:Article|]]
11291 [[interwiki:Article|Article]]
11292 [[:interwiki:Article|Article]]
11293 [[interwiki:Bar:Article|Bar:Article]]
11294 [[:interwiki:Bar:Article|Bar:Article]]
11298 pre-save transform: context links ("pipe trick") with parens in title
11300 pst title=[[Somearticle (context)]]
11304 [[Article (context)|Article]]
11308 pre-save transform: context links ("pipe trick") with comma in title
11310 pst title=[[Someplace, Somewhere]]
11313 [[Otherplace, Elsewhere|]]
11314 [[Otherplace, Elsewhere, Anywhere|]]
11316 [[Otherplace, Somewhere|Otherplace]]
11317 [[Otherplace, Elsewhere|Otherplace]]
11318 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
11322 pre-save transform: context links ("pipe trick") with parens and comma
11324 pst title=[[Someplace (IGNORED), Somewhere]]
11327 [[Otherplace (place), Elsewhere|]]
11329 [[Otherplace, Somewhere|Otherplace]]
11330 [[Otherplace (place), Elsewhere|Otherplace]]
11334 pre-save transform: context links ("pipe trick") with comma and parens
11336 pst title=[[Who, me? (context)]]
11339 [[Me, Myself, and I (1937 song)|]]
11341 [[Yes, you. (context)|Yes, you.]]
11342 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
11346 pre-save transform: context links ("pipe trick") with namespace
11348 pst title=[[Ns:Somearticle]]
11352 [[Ns:Article|Article]]
11356 pre-save transform: context links ("pipe trick") with namespace and parens
11358 pst title=[[Ns:Somearticle (context)]]
11362 [[Ns:Article (context)|Article]]
11366 pre-save transform: context links ("pipe trick") with namespace and comma
11368 pst title=[[Ns:Somearticle, Context, Whatever]]
11372 [[Ns:Article, Context, Whatever|Article]]
11376 pre-save transform: context links ("pipe trick") with namespace, comma and parens
11378 pst title=[[Ns:Somearticle, Context (context)]]
11382 [[Ns:Article (context)|Article]]
11386 pre-save transform: context links ("pipe trick") with namespace, parens and comma
11388 pst title=[[Ns:Somearticle (IGNORED), Context]]
11392 [[Ns:Article, Context|Article]]
11396 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
11400 [[Article(context)|]]
11401 [[Bar:Article(context)|]]
11402 [[:Bar:Article(context)|]]
11403 [[|Article(context)]]
11407 [[Article(context)|Article]]
11408 [[Bar:Article(context)|Article]]
11409 [[:Bar:Article(context)|Article]]
11410 [[Article(context)]]
11411 [[Bar:X(Y)Z|X(Y)Z]]
11412 [[:Bar:X(Y)Z|X(Y)Z]]
11416 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
11420 [[Article (context)|]]
11421 [[Bar:Article (context)|]]
11422 [[:Bar:Article (context)|]]
11423 [[|Article (context)]]
11427 [[Article (context)|Article]]
11428 [[Bar:Article (context)|Article]]
11429 [[:Bar:Article (context)|Article]]
11430 [[Article (context)]]
11431 [[Bar:X (Y) Z|X (Y) Z]]
11432 [[:Bar:X (Y) Z|X (Y) Z]]
11436 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
11440 [[Article(context)|]]
11441 [[Bar:Article(context)|]]
11442 [[:Bar:Article(context)|]]
11443 [[|Article(context)]]
11447 [[Article(context)|Article]]
11448 [[Bar:Article(context)|Article]]
11449 [[:Bar:Article(context)|Article]]
11450 [[Article(context)]]
11451 [[Bar:X(Y)Z|X(Y)Z]]
11452 [[:Bar:X(Y)Z|X(Y)Z]]
11456 pre-save transform: context links ("pipe trick") with commas (bug 21660)
11460 [[Article (context), context|]]
11461 [[Article (context),context|]]
11462 [[Bar:Article (context), context|]]
11463 [[Bar:Article (context),context|]]
11464 [[:Bar:Article (context), context|]]
11465 [[:Bar:Article (context),context|]]
11467 [[Article (context), context|Article]]
11468 [[Article (context),context|Article]]
11469 [[Bar:Article (context), context|Article]]
11470 [[Bar:Article (context),context|Article]]
11471 [[:Bar:Article (context), context|Article]]
11472 [[:Bar:Article (context),context|Article]]
11476 pre-save transform: trim trailing empty lines
11480 Empty lines are trimmed
11486 Empty lines are trimmed
11490 pre-save transform: Signature expansion
11495 * <noinclude>~~~</noinclude>
11496 * <includeonly>~~~</includeonly>
11497 * <onlyinclude>~~~</onlyinclude>
11499 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
11500 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
11501 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
11502 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
11507 pre-save transform: Signature expansion in nowiki tags (bug 93)
11513 <nowiki>~~~~</nowiki>
11515 <includeonly><nowiki>~~~~</nowiki></includeonly>
11517 <noinclude><nowiki>~~~~</nowiki></noinclude>
11519 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
11521 {{subst:Foo}} shall be converted to FOO
11523 As well as inside noinclude/onlyinclude
11524 <noinclude>{{subst:Foo}}</noinclude>
11525 <onlyinclude>{{subst:Foo}}</onlyinclude>
11527 But not inside includeonly
11528 <includeonly>{{subst:Foo}}</includeonly>
11532 <nowiki>~~~~</nowiki>
11534 <includeonly><nowiki>~~~~</nowiki></includeonly>
11536 <noinclude><nowiki>~~~~</nowiki></noinclude>
11538 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
11540 FOO shall be converted to FOO
11542 As well as inside noinclude/onlyinclude
11543 <noinclude>FOO</noinclude>
11544 <onlyinclude>FOO</onlyinclude>
11546 But not inside includeonly
11547 <includeonly>{{subst:Foo}}</includeonly>
11551 Parsoid: Recognize nowiki with trailing space in tags
11555 <nowiki ><div>[[foo]]</nowiki >
11563 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
11570 Parsoid: Recognize nowiki with odd capitalization
11574 <noWikI ><div>[[foo]]</Nowiki >
11576 <p><span typeof="mw:Nowiki"><div>[[foo]]</span></p>
11581 Parsoid: Escape nowiki with trailing space in tags
11585 <p><nowiki > foo </nowiki ></p>
11586 <p>a<nowiki />b</p>
11587 <p>c<nowiki/ >d</p>
11589 <nowiki > foo </nowiki >
11597 Parsoid: Escape weird noWikI capitalizations
11601 <p><noWikI > foo </NoWikI ></p>
11603 <noWikI > foo </NoWikI >
11607 ### Message transform tests
11610 message transform: magic variables
11620 message transform: should not transform wiki markup
11630 message transform: <noinclude> in transcluded template (bug 4926)
11640 message transform: <onlyinclude> in transcluded template (bug 4926)
11650 {{#special:}} page name, known
11654 {{#special:Recentchanges}}
11656 Special:RecentChanges
11660 {{#special:}} page name with subpage, known
11664 {{#special:Recentchanges/param}}
11666 Special:RecentChanges/param
11670 {{#special:}} page name, unknown
11674 {{#special:foobar nonexistent}}
11676 Special:Foobar nonexistent
11680 {{#speciale:}} page name, known
11684 {{#speciale:Recentchanges}}
11686 Special:RecentChanges
11690 {{#speciale:}} page name with subpage, known
11694 {{#speciale:Recentchanges/param}}
11696 Special:RecentChanges/param
11700 {{#speciale:}} page name, unknown
11704 {{#speciale:foobar nonexistent}}
11706 Special:Foobar_nonexistent
11712 ### For Parsoid-specific tests, see
11713 #### https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
11718 parsoid=wt2html,wt2wt,html2html
11720 [[Image:foobar.jpg]]
11722 <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>
11725 <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>
11729 Simple image (using File: namespace, now canonical)
11731 [[File:Foobar.jpg]]
11733 <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>
11736 <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>
11740 Right-aligned image
11742 [[File:Foobar.jpg|right]]
11744 <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>
11747 <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>
11753 [[File:Foobar.jpg|right|Caption text]]
11755 <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>
11758 <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>
11762 Image with caption, bug 53312 #1
11764 [[File:Foobar.jpg|right|Caption page stuff]]
11766 <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>
11769 <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>
11773 Image with caption, bug 53312 #2
11775 [[File:Foobar.jpg|right|Caption page=]]
11777 <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>
11780 <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>
11784 Image with caption, bug 53312 #3
11786 [[File:Foobar.jpg|right|Caption page=stuff]]
11788 <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>
11791 <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>
11795 Allow empty links in image captions (Bug 60753)
11799 [[File:Foobar.jpg|thumb|Caption [[Link1]]
11804 <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>
11807 <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>
11809 <a rel="mw:WikiLink" href="./Link2" title="Link2" data-parsoid='{"stx":"simple","a":{"href":"./Link2"},"sa":{"href":"Link2"}}'>Link2</a>
11810 </figcaption></figure>
11814 Titles in unlinked images (T23454)
11816 [[File:Foobar.jpg|link=|stuff]]
11818 <p><img alt="stuff" src="http://example.com/images/3/3a/Foobar.jpg" title="stuff" width="1941" height="220" />
11823 Link with empty target
11832 Image with link trail
11834 Linktrails should not work for images: [[File:Foobar.jpg]]s
11836 <p>Linktrails should not work for images: <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>s
11839 <p>Linktrails should not work for images: <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>s</p>
11843 Image with empty attribute
11845 parsoid=wt2html,wt2wt,html2html
11847 [[File:Foobar.jpg|right||Caption text]]
11849 <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>
11852 <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>
11856 1. Block image with individual attributes from templates
11858 [[File:Foobar.jpg|thumb|{{echo|137px}}|This is a caption]]
11860 <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>
11863 <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>
11867 2. Block Image with individual attributes from templates
11869 [[File:Foobar.jpg|{{echo|thumb}}|{{echo|137px}}|This is a caption]]
11871 <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>
11874 <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>
11878 3. Inline image with individual attributes from templates
11880 [[File:Foobar.jpg|{{echo|50px}}]]
11882 <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>
11885 <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>
11888 ## Parsoid does not provide editing support for images where templates produce multiple image attributes.
11889 ## To signal this, we add a 'mw:Placeholder' type to such images. This could change in the future.
11891 Image with multiple attributes from the same template
11893 [[File:Foobar.jpg|{{image_attribs}}]]
11895 <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>
11898 <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>
11902 Image with link tails
11906 123[[File:Foobar.jpg]]456
11907 123[[File:Foobar.jpg|right]]456
11908 123[[File:Foobar.jpg|thumb]]456
11910 <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
11912 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
11913 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
11916 <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>
11918 <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>
11920 <div class="thumb tright">
11921 <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>
11922 <div class="thumbcaption">
11923 <div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"></a></div>
11929 <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>
11930 <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>
11931 <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>
11935 Image with multiple captions -- only last one is accepted
11937 [[File:Foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
11939 <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>
11942 <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>
11946 Image with multiple widths -- use last
11948 [[File:Foobar.jpg|200px|300px|caption]]
11950 <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>
11953 <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>
11957 Image with multiple alignments -- use first (bug 48664)
11961 [[File:Foobar.jpg|thumb|left|right|center|caption]]
11963 [[File:Foobar.jpg|middle|text-top|caption]]
11965 <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>
11966 <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>
11969 <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>
11970 <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>
11974 Image with width attribute at different positions
11976 [[File:Foobar.jpg|200px|right|Caption]]
11977 [[File:Foobar.jpg|right|200px|Caption]]
11978 [[File:Foobar.jpg|right|Caption|200px]]
11980 <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>
11981 <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>
11982 <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>
11985 <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>
11986 <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>
11987 <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>
11990 # a sad bit of backward-compatibility
11992 Image with size specified with pxpx (bug 13500, 51628)
11994 parsoid=wt2html,wt2wt,html2html
11996 [[File:Foobar.jpg|20pxpx]]
11997 [[File:Foobar.jpg|200x20pxpx]]
11999 <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>
12000 <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>
12003 <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>
12007 Image with link parameter, wiki target
12009 [[File:Foobar.jpg|link=Main Page]]
12011 <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>
12014 <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>
12017 # parsoid bug 49293 (part 1)
12019 Image with link parameter, URL target
12021 [[File:Foobar.jpg|link=http://example.com/]]
12023 <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>
12026 <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>
12029 # parsoid bug 49293 (part 2)
12031 Image with link parameter, protocol-less URL target
12033 [[File:Foobar.jpg|link=//example.com/]]
12035 <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>
12038 <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>
12042 Image with link parameter, wgExternalLinkTarget
12044 [[Image:foobar.jpg|link=http://example.com/]]
12046 wgExternalLinkTarget='foobar'
12048 <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>
12053 Image with link parameter, wgNoFollowLinks set to false
12055 [[Image:foobar.jpg|link=http://example.com/]]
12057 wgNoFollowLinks=false
12059 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
12064 Image with link parameter, wgNoFollowDomainExceptions
12066 [[Image:foobar.jpg|link=http://example.com/]]
12068 wgNoFollowDomainExceptions='example.com'
12070 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
12075 Image with link parameter, wgExternalLinkTarget, unnamed parameter
12077 [[Image:foobar.jpg|link=http://example.com/|Title]]
12079 wgExternalLinkTarget='foobar'
12081 <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>
12086 Image with empty link parameter
12088 [[File:Foobar.jpg|link=]]
12090 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
12093 <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>
12097 Image with link parameter (wiki target) and unnamed parameter
12099 [[File:Foobar.jpg|link=Main_Page|Title]]
12101 <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>
12104 <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>
12108 Image with link parameter (URL target) and unnamed parameter
12110 [[File:Foobar.jpg|link=http://example.com/|Title]]
12112 <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>
12115 <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>
12119 Thumbnail image with link parameter
12122 parsoid=wt2html,wt2wt,html2html
12124 [[File:Foobar.jpg|thumb|link=http://example.com/|Title]]
12126 <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>
12129 <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>
12133 Manually-specified thumbnail image
12137 [[File:Foobar.jpg|thumb=Thumb.png|Title]]
12139 <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>
12142 <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>
12146 Manually-specified thumbnail image with explicit link to wiki page
12149 parsoid=wt2html,wt2wt,html2html
12151 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|Title]]
12153 <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>
12156 <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>
12160 Manually-specified thumbnail image with explicit link to url
12163 parsoid=wt2html,wt2wt,html2html
12165 [[File:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
12167 <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>
12170 <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>
12174 Manually-specified thumbnail image with explicit no link
12177 parsoid=wt2html,wt2wt,html2html
12179 [[File:Foobar.jpg|thumb=Thumb.png|link=|Title]]
12181 <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>
12184 <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>
12188 Manually-specified thumbnail image with explicit link and alt text
12191 parsoid=wt2html,wt2wt,html2html
12193 [[File:Foobar.jpg|thumb=Thumb.png|link=Main_Page|alt=alttext|Title]]
12195 <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>
12198 <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>
12202 Image with frame and link
12204 parsoid=wt2html,wt2wt,html2html
12206 [[File:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
12208 <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>
12211 <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>
12215 Image with frame and link and explicit alt
12217 parsoid=wt2html,wt2wt,html2html
12219 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
12221 <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>
12224 <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>
12228 Image with wiki markup in implicit alt
12230 parsoid=wt2html,wt2wt,html2html
12232 [[Image:Foobar.jpg|testing '''bold''' in alt]]
12234 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
12236 <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>
12237 </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>
12240 <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>
12241 <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>
12245 Alt image option should handle most kinds of wikitext without barfing
12247 [[Image:Foobar.jpg|thumb|This is the image caption|alt=This is a [[link]] and a {{echo|''bold template''}}.]]
12249 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a link and a bold template." 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 the image caption</div></div></div>
12252 <figure class="mw-default-size" typeof="mw:Image/Thumb mw:ExpandedAttrs" about="#mwt2" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"caption","ak":"This is the image caption"},{"ck":"alt","ak":"alt=This is a [[link]] and a {{echo|''bold template''}}."}]}' data-mw='{"attribs":[["thumbnail",{"html":"thumb"}],["alt",{"html":"alt=This is a <a rel=\"mw:WikiLink\" href=\"./Link\" title=\"Link\" data-parsoid=\"{&quot;stx&quot;:&quot;simple&quot;,&quot;a&quot;:{&quot;href&quot;:&quot;./Link&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;link&quot;},&quot;dsr&quot;:[65,73,2,2]}\">link</a> and a <i about=\"#mwt1\" typeof=\"mw:Transclusion\" data-parsoid=\"{&quot;dsr&quot;:[80,106,null,null],&quot;pi&quot;:[[{&quot;k&quot;:&quot;1&quot;,&quot;spc&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]}]]}\" 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;''bold template''&quot;}},&quot;i&quot;:0}}]}\">bold template</i>."}]]}'><a href="./File:Foobar.jpg" data-parsoid='{"a":{"href":"./File:Foobar.jpg"},"sa":{}}'><img alt="This is a link and a bold template." resource="./File:Foobar.jpg" src="//example.com/images/thumb/3/3a/Foobar.jpg/220px-Foobar.jpg" height="25" width="220" data-parsoid='{"a":{"alt":"This is a link and a bold template.","resource":"./File:Foobar.jpg","height":"25","width":"220"},"sa":{"alt":"alt=This is a [[link]] and a {{echo|''bold template''}}.","resource":"Image:Foobar.jpg"}}'/></a><figcaption>This is the image caption</figcaption></figure>
12255 ###################
12256 # Conflicting image format options.
12257 # First option specified should 'win'.
12258 # All three cases in each test should be identical.
12261 Image with 'frameless' first.
12263 parsoid=wt2html,wt2wt,html2html
12265 [[File:Foobar.jpg|frameless|caption]]
12267 [[File:Foobar.jpg|frameless|frame|caption]]
12269 [[File:Foobar.jpg|frameless|thumb|caption]]
12271 <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>
12272 </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>
12273 </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>
12276 <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>
12277 <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>
12278 <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>
12282 Image with 'frame' first.
12284 parsoid=wt2html,wt2wt,html2html
12286 [[File:Foobar.jpg|frame|caption]]
12287 [[File:Foobar.jpg|frame|frameless|caption]]
12288 [[File:Foobar.jpg|frame|thumb|caption]]
12290 <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>
12291 <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>
12292 <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>
12295 <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>
12296 <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>
12297 <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>
12301 Image with 'thumb' first.
12303 parsoid=wt2html,wt2wt,html2html
12305 [[File:Foobar.jpg|thumb|caption]]
12306 [[File:Foobar.jpg|thumb|frameless|caption]]
12307 [[File:Foobar.jpg|thumb|frame|caption]]
12309 <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>
12310 <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>
12311 <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>
12314 <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>
12315 <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>
12316 <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>
12319 ###################
12321 # See https://www.mediawiki.org/wiki/Help:Images#Size_and_frame
12322 # and https://bugzilla.wikimedia.org/show_bug.cgi?id=62258
12323 # Foobar has actual size of 1941x220
12324 # 1. Thumbs & frameless always reduce, can't be enlarged unless it's
12325 # a scalable format.
12326 # 2. Framed images always ignore size options; always render at default size.
12327 # 3. "Unspecified format" and border are the only types which can be
12331 Image: "unspecified format" and border enlarge
12333 parsoid=wt2html,wt2wt,html2html
12335 [[File:Foobar.jpg|2000px]]
12337 [[File:Foobar.jpg|border|2000px]]
12339 <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>
12340 </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>
12343 <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>
12344 <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>
12348 Image: "unspecified format" and border reduce
12350 parsoid=wt2html,wt2wt,html2html
12352 [[File:Foobar.jpg|1000px]]
12354 [[File:Foobar.jpg|border|1000px]]
12356 <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>
12357 </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>
12360 <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>
12361 <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>
12365 Image: thumbs reduce
12367 parsoid=wt2html,wt2wt,html2html
12369 [[File:Foobar.jpg|thumb|50px]]
12371 <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>
12374 <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>
12378 Image: bitmap thumbs can't be enlarged past original size, but vector can.
12380 parsoid=wt2html,wt2wt,html2html
12382 [[File:Foobar.jpg|thumb|2000px]]
12384 [[File:Foobar.svg|thumb|2000px]]
12386 <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>
12387 <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>
12390 <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>
12391 <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>
12395 Image: frameless can reduce in size
12397 parsoid=wt2html,wt2wt,html2html
12399 [[File:Foobar.jpg|frameless|50px]]
12401 <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>
12404 <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>
12408 Image: bitmap frameless can't be enlarged past original size, but vector can
12410 parsoid=wt2html,wt2wt,html2html
12412 [[File:Foobar.jpg|frameless|2000px]]
12414 [[File:Foobar.svg|frameless|2000px]]
12416 <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>
12417 </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>
12420 <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>
12421 <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>
12425 Image: framed images are always unscaled.
12427 parsoid=wt2html,wt2wt,html2html
12429 [[File:Foobar.jpg|frame]]
12431 [[File:Foobar.jpg|frame|50px]]
12433 [[File:Foobar.jpg|frame|50x50px]]
12435 [[File:Foobar.jpg|frame|2000px]]
12437 <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>
12438 <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>
12439 <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>
12440 <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>
12443 <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>
12444 <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>
12445 <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>
12446 <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>
12449 ###################
12452 Link to image page- image page normally doesn't exists, hence edit link
12453 Add test with existing image page
12454 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
12458 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
12463 bug 18784 Link to non-existent image page with caption should use caption as link text
12465 [[:Image:test|caption]]
12467 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
12472 Frameless image caption with a free URL
12474 [[File:Foobar.jpg|http://example.com]]
12476 <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>
12479 <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>
12483 Thumbnail image caption with a free URL
12487 [[File:Foobar.jpg|thumb|http://example.com]]
12489 <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>
12492 <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>
12496 Thumbnail image caption with a free URL and explicit alt
12499 parsoid=wt2html,wt2wt,html2html
12501 [[File:Foobar.jpg|thumb|http://example.com|alt=Alteration]]
12503 <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>
12506 <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>
12510 SVG thumbnails with no language set
12513 [[File:Foobar.svg|thumb|caption]]
12515 <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>
12518 <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>
12522 SVG thumbnails with language de
12524 parsoid=wt2html,wt2wt,html2html
12526 [[File:Foobar.svg|thumb|caption|lang=de]]
12528 <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>
12531 <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>
12535 SVG thumbnails with invalid language code
12537 parsoid=wt2html,wt2wt,html2html
12539 [[File:Foobar.svg|thumb|caption|lang=invalid.language.code]]
12541 <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>
12544 <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>
12548 BUG 1887: A ISBN with a thumbnail
12550 [[File:Foobar.jpg|thumb|ISBN 1235467890]]
12552 <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>
12555 <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>
12559 BUG 1887: A RFC with a thumbnail
12561 [[File:Foobar.jpg|thumb|This is RFC 12354]]
12563 <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>
12566 <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>
12570 BUG 1887: A mailto link with a thumbnail
12572 [[File:Foobar.jpg|thumb|Please mailto:nobody@example.com]]
12574 <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>
12577 <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>
12580 # Pending resolution to bug 368
12582 BUG 648: Frameless image caption with a link
12584 [[File:Foobar.jpg|text with a [[link]] in it]]
12586 <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>
12589 <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>
12593 BUG 648: Frameless image caption with a link (suffix)
12595 [[File:Foobar.jpg|text with a [[link]]foo in it]]
12597 <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>
12600 <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>
12604 BUG 648: Frameless image caption with an interwiki link
12606 [[File:Foobar.jpg|text with a [[MeatBall:Link]] in it]]
12608 <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>
12611 <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>
12615 BUG 648: Frameless image caption with a piped interwiki link
12617 [[File:Foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
12619 <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>
12622 <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>
12626 Escape HTML special chars in image alt text
12628 [[File:Foobar.jpg|& < > "]]
12630 <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>
12633 <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>
12637 BUG 499: Alt text should have Ӓ, not &1234;
12639 [[File:Foobar.jpg|♀]]
12641 <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>
12644 <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>
12648 Broken image caption with link
12650 parsoid=wt2html,wt2wt,html2html
12652 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
12654 <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.
12657 <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>
12661 Image caption containing another image
12663 [[File:Foobar.jpg|thumb|This is a caption with another [[File:Thumb.png|image]] inside it!]]
12665 <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>
12668 <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>
12672 Image: caption containing a newline
12674 [[File:Foobar.jpg|This
12677 <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>
12680 <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>
12684 Image: caption containing leading space
12685 (The leading space should not trigger nowiki escaping in wt2wt mode)
12687 [[File:Foobar.jpg|thumb| bar]]
12689 <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>
12692 <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>
12696 Image: caption containing a table
12698 parsoid=wt2html,wt2wt,html2html
12700 [[Image:Foobar.jpg|thumb|200px|This is an example image thumbnail caption with a table
12706 and some more text.]]
12708 <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>
12711 <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
12714 <tr><th>Foo </th><th>Bar</th></tr>
12717 <td>Bar1</td></tr></tbody></table>and some more text.</figcaption></figure>
12721 Bug 3090: External links other than http: in image captions
12723 [[File:Foobar.jpg|thumb|200x200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
12725 <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>
12728 <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>
12734 parsoid=wt2html,wt2wt,html2html
12736 [[Image:foobar.jpg|a|class=b]]
12738 <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>
12741 <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>
12745 Localized image handling (1).
12747 parsoid=wt2html,wt2wt,html2html
12750 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
12752 <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>
12755 <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>
12759 Localized image handling (2).
12762 parsoid=wt2html,wt2wt,html2html
12765 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
12767 <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>
12770 <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>
12774 "border", "frameless" and "class" attributes on an image.
12777 parsoid=wt2html,wt2wt,html2html
12779 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
12781 <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>
12784 <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>
12787 # Note that 'right' is the default alignment, despite the misspelled 'righ' below
12789 Invalid image attributes (bug 62500)
12792 parsoid=wt2html,wt2wt,html2html
12794 [[File:Foobar.jpg|thumb|float|left|caption]]
12796 [[File:Foobar.jpg|thumb|righ|caption]]
12798 [[File:Foobar.jpg|bogus1|thumb|bogus2|left|bogus3|caption]]
12800 <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>
12801 <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>
12802 <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>
12805 <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>
12806 <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>
12807 <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>
12813 #REDIRECT [[File:Barfoo.jpg]]
12816 # FIXME: Parsoid should run this test -- but we'd need to teach the
12817 # mockAPI about the redirected Barfoo.jpg image.
12821 [[Image:Barfoo.jpg]]
12823 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
12828 Missing image with uploads disabled
12832 [[File:Foobaz.jpg]]
12834 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
12837 <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>
12840 # Parsoid-specific testing for images
12841 # https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
12842 # Currently imperfect due to a flaw in the Parsoid testrunner
12844 # THESE TESTS SHOULD BE MOVED UP and merged with the php-specific
12848 Parsoid-specific image handling - simple image with size and middle alignment
12850 [[File:Foobar.jpg|middle|50px]]
12852 <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>
12856 Parsoid-specific image handling - simple image with size, middle alignment,
12857 non-standard namespace alias
12859 parsoid=wt2wt,wt2html,html2html
12861 [[Image:Foobar.jpg|middle|50px]]
12863 <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>
12867 Parsoid-specific image handling - simple image with size and middle alignment
12870 [[File:Foobar.jpg|50px|middle]]
12872 <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>
12876 Parsoid-specific image handling - simple image with size and middle alignment
12877 and non-standard namespace name
12879 parsoid=wt2html,wt2wt,html2html
12881 [[Image:Foobar.jpg|50px|middle]]
12883 <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>
12887 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
12889 [[File:Foobar.jpg|500x10px|baseline|caption]]
12891 <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>
12895 Parsoid-specific image handling - simple image with border and size spec
12897 [[File:Foobar.jpg|50px|border|caption]]
12899 <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>
12903 Parsoid-specific image handling - thumbnail with halign, valign, and caption
12905 [[File:Foobar.jpg|left|baseline|thumb|caption content]]
12907 <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>
12911 Parsoid-specific image handling - thumbnail with halign, valign, and caption
12914 [[File:Foobar.jpg|thumb|left|baseline|caption content]]
12916 <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>
12920 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
12922 [[Image:Foobar.jpg|right|middle|thumb|50x50px|caption]]
12924 <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>
12928 Parsoid-specific image handling - thumbnail with specific size, halign,
12929 valign, and caption (existing content)
12931 [[File:Foobar.jpg|thumb|50x50px|right|middle|caption]]
12933 <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>
12937 Parsoid-specific image handling - framed image with specific size and caption
12940 parsoid=wt2html,wt2wt,html2html
12942 [[File:Foobar.jpg|frame|500x50px|caption]]
12944 <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>
12948 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
12951 parsoid=wt2html,wt2wt,html2html
12953 [[File:Foobar.jpg|left|baseline|frame|500x50px|caption]]
12955 <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>
12959 Parsoid-specific image handling - frameless image with specific size, border, and caption
12961 [[File:Foobar.jpg|frameless|442x50px|border|caption]]
12963 <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>
12967 Parsoid-specific image handling - simple image with a formatted caption
12969 [[File:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
12971 <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>
12975 Parsoid-specific image handling - caption with a template in it
12977 [[File:Foobar.jpg|thumb|200x23px|This caption has a {{echo|transclusion}} in it.]]
12979 <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>
12983 Parsoid-specific image handling - caption with unbalanced tags in it
12985 parsoid=wt2html,wt2wt,html2html
12988 [[File:Foobar.jpg|thumb|200x200px|This caption has a <center>unbalanced tag in it.]]
12992 <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>
12997 Parsoid-specific image handling - empty caption (1)
12999 parsoid=wt2html,wt2wt
13001 [[File:Foobar.jpg|thumb|]]
13003 <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>
13006 # empty captions don't get serialized unless we're in the "round trip" case
13008 Parsoid-specific image handling - empty caption (2)
13012 <figure class="mw-default-size" typeof="mw:Image/Thumb">
13013 <a href="File:Foobar.jpg">
13014 <img resource="./File:Foobar.jpg"
13015 src="//example.com/images/3/3a/Foobar.jpg"
13016 height="25" width="220"/>
13018 <figcaption></figcaption>
13021 [[File:Foobar.jpg|thumb]]
13025 Parsoid-specific image handling - whitespace caption
13027 [[File:Foobar.jpg|thumb| ]]
13029 <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>
13033 Parsoid-specific image handling - lang option
13036 [[File:Foobar.svg|lang=de|caption]]
13040 <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>
13049 Subpage test/subpage
13057 subpage title=[[Subpage test]]
13061 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
13066 Subpage noslash link
13068 subpage title=[[Subpage test]]
13072 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
13077 Subpage test/1/2/subpage
13083 Relative subpage noslash link
13085 parsoid=wt2wt,wt2html,html2html
13086 subpage title=[[Subpage test/1/2/3/4]]
13092 <p><a href="/wiki/Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">subpage</a>
13093 </p><p><a href="/wiki/Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">Subpage test/1/2/subpage</a>
13096 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">subpage</a></p>
13097 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage" title="Subpage test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
13101 Parsoid: dot-slash prefixed wikilinks
13111 </p><p>[[././baz/]]
13116 </p><p>[[././baz/]]
13121 Render invalid page names as plain text (bug 51090)
13134 [[{{echo|./../foo}}|bar]]
13135 [[{{echo|foo/.}}|bar]]
13136 [[{{echo|foo/..}}|bar]]
13137 [[{{echo|foo~~~~bar}}]]
13138 [[{{echo|foo>bar}}]]
13139 [[{{echo|foo././bar}}]]
13140 [[{{echo|foo{bar}}]]
13141 [[{{echo|foo}bar}}]]
13142 [[{{echo|foo[bar}}]]
13143 [[{{echo|foo]bar}}]]
13144 [[{{echo|foo<bar}}]]
13146 <p>[[./../foo|bar]]
13156 </p><p>[[./../foo|bar]]
13169 <p>[[./../foo|bar]]
13180 <p>[[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"./../foo"}},"i":0}}]}'>./../foo</span>|bar]]
13181 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo/."}},"i":0}}]}'>foo/.</span>|bar]]
13182 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo/.."}},"i":0}}]}'>foo/..</span>|bar]]
13183 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo~~~~bar"}},"i":0}}]}'>foo~~~~bar</span>]]
13184 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo>bar"}},"i":0}}]}'>foo>bar</span>]]
13185 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo././bar"}},"i":0}}]}'>foo././bar</span>]]
13186 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo{bar"}},"i":0}}]}'>foo{bar</span>]]
13187 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo}bar"}},"i":0}}]}'>foo}bar</span>]]
13188 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo[bar"}},"i":0}}]}'>foo[bar</span>]]
13189 [[<span typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo]bar"}},"i":0}}]}'>foo]bar</span>]]
13190 [[<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>
13198 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
13203 BUG 561: {{/Subpage}}
13205 subpage title=[[Page]]
13209 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
13217 Category:MediaWiki User's Guide
13225 [[:Category:MediaWiki User's Guide]]
13227 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
13236 [[Category:MediaWiki User's Guide]]
13238 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
13242 PAGESINCATEGORY invalid title fatal (r33546 fix)
13244 {{PAGESINCATEGORY:<bogus>}}
13251 Category with different sort key
13255 [[Category:MediaWiki User's Guide|Foo]]
13257 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
13261 Category with identical sort key
13265 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
13267 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
13271 Category with empty sort key
13276 [[Category:MediaWiki User's Guide|]]
13278 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
13282 Category with empty sort key and parentheses
13287 [[Category:Foo (bar)|]]
13289 [[Category:Foo (bar)|Foo]]
13293 Category with link tail
13298 123[[Category:Foo]]456
13300 123[[Category:Foo]]456
13304 Category with template
13309 [[Category:{{echo|Foo}}]]
13311 [[Category:{{echo|Foo}}]]
13315 Category with template in sort key
13320 [[Category:Foo|{{echo|Bar}}]]
13322 [[Category:Foo|{{echo|Bar}}]]
13326 Category with template in sort key and title
13331 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
13333 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
13337 Category / paragraph interactions
13339 Foo [[Category:Baz]] Bar
13341 Foo [[Category:Baz]]
13349 [[Category:Baz]] Bar
13362 {{echo|[[Category:Baz]]}}
13377 Parsoid: Serialize link to category page with colon escape
13383 [[:Category:Foo|Bar]]
13386 <a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Category:Foo</a>
13387 <a rel="mw:WikiLink" href="Category:Foo" title="Category:Foo">Bar</a>
13392 Parsoid: Link prefix/suffixes aren't applied to category links
13394 parsoid=wt2html,wt2wt,html2html
13399 <p>x<link rel="mw:PageProp/Category" href="Category:Foo">y</p>
13403 Parsoid: Serialize link to file page with colon escape
13409 [[:File:Foo.png|Bar]]
13412 <a rel="mw:WikiLink" href="File:Foo.png" title="File:Foo.png">File:Foo.png</a>
13413 <a rel="mw:WikiLink" href="File:Foo.png" title="File:Foo.png">Bar</a>
13418 Parsoid: Serialize a genuine category link without colon escape
13423 [[Category:Foo|Bar]]
13425 <link rel="mw:PageProp/Category" href="Category:Foo">
13426 <link rel="mw:PageProp/Category" href="Category:Foo#Bar">
13430 Normalize hrefs properly before testing for invalid link targets (bug 70894)
13434 <link rel="mw:PageProp/Category" href="./Category:Toxine_bactérienne"/>
13436 [[Category:Toxine bactérienne]]
13440 Parsoid: Defaultsort
13442 {{DEFAULTSORT:Foo}}
13444 <meta property="mw:PageProp/categorydefaultsort" content="Foo"/>
13448 Parsoid: Defaultsort (template-generated)
13450 {{{{echo|DEFAULTSORT}}:Foo}}
13452 <meta property="mw:PageProp/categorydefaultsort" content="Foo" about="#mwt1" typeof="mw:Transclusion" data-parsoid='{"dsr":[0,28,null,null],"pi":[[]]}' data-mw='{"parts":[{"template":{"target":{"wt":"{{echo|DEFAULTSORT}}:Foo"},"params":{},"i":0}}]}'/>
13456 ### Inter-language links
13459 Interlanguage links
13467 es:Alimento fr:Nourriture zh:食品
13469 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Alimento"/>
13470 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/Nourriture"/>
13471 <link rel="mw:PageProp/Language" href="http://zh.wikipedia.org/wiki/食品"/>
13475 Duplicate interlanguage links (bug 24502)
13486 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/1"/>
13487 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/2"/>
13488 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/1"/>
13489 <link rel="mw:PageProp/Language" href="http://fr.wikipedia.org/wiki/2"/>
13496 Basic section headings
13503 ===Smaller headline===
13506 <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>
13509 <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>
13512 <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>
13518 Section headings with TOC
13521 === Subheadline 1 ===
13522 ===== Skipping a level =====
13523 ====== Skipping a level ======
13527 ===Another headline===
13529 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13531 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
13533 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
13535 <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>
13537 <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>
13544 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
13546 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
13552 <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>
13553 <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>
13554 <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>
13555 <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>
13556 <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>
13559 <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>
13564 TOC anchors don't collide
13572 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13574 <li class="toclevel-1 tocsection-1"><a href="#Headline_2"><span class="tocnumber">1</span> <span class="toctext">Headline 2</span></a></li>
13575 <li class="toclevel-1 tocsection-2"><a href="#Headline"><span class="tocnumber">2</span> <span class="toctext">Headline</span></a></li>
13576 <li class="toclevel-1 tocsection-3"><a href="#Headline_2_2"><span class="tocnumber">3</span> <span class="toctext">Headline 2</span></a></li>
13577 <li class="toclevel-1 tocsection-4"><a href="#Headline_3"><span class="tocnumber">4</span> <span class="toctext">Headline</span></a></li>
13581 <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=1" title="Edit section: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13582 <h2><span class="mw-headline" id="Headline">Headline</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">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13583 <h2><span class="mw-headline" id="Headline_2_2">Headline 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: Headline 2">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13584 <h2><span class="mw-headline" id="Headline_3">Headline</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: Headline">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
13588 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
13590 Handling of sections up to level 6 and beyond
13593 == Level 2 Heading==
13594 === Level 3 Heading===
13595 ==== Level 4 Heading====
13596 ===== Level 5 Heading=====
13597 ====== Level 6 Heading======
13598 ======= Level 7 Heading=======
13599 ======== Level 8 Heading========
13600 ========= Level 9 Heading=========
13601 ========== Level 10 Heading==========
13603 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13605 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
13607 <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>
13609 <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>
13611 <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>
13613 <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>
13615 <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>
13616 <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>
13617 <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>
13618 <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>
13619 <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>
13633 <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>
13634 <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>
13635 <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>
13636 <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>
13637 <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>
13638 <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>
13639 <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>
13640 <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>
13641 <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>
13642 <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>
13647 TOC regression (T11764)
13651 ==== title 1.1.1 ====
13656 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13658 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13660 <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>
13662 <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>
13665 <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>
13668 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
13670 <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>
13676 <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>
13677 <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>
13678 <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>
13679 <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>
13680 <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>
13681 <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>
13686 TOC with wgMaxTocLevel=3 (bug 6204)
13692 ==== title 1.1.1 ====
13697 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13699 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13701 <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>
13702 <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>
13705 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
13707 <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>
13713 <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>
13714 <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>
13715 <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>
13716 <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>
13717 <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>
13718 <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>
13723 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
13729 ====Section 1.1.1====
13730 ====Section 1.1.1.1====
13733 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13735 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
13737 <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>
13740 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
13744 <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>
13745 <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>
13746 <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>
13747 <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>
13748 <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>
13754 Resolving duplicate section names
13759 <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>
13760 <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>
13765 Resolving duplicate section names with differing case (bug 10721)
13770 <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>
13771 <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>
13783 Template with sections, __NOTOC__
13790 <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>
13791 <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>
13792 <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>
13793 <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>
13798 __NOEDITSECTION__ keyword
13804 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
13805 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
13810 Link inside a section heading
13812 ==Section with a [[Main Page|link]] in it==
13814 <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>
13819 TOC regression (T14077)
13826 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13828 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
13830 <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>
13833 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
13837 <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>
13838 <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>
13839 <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>
13844 BUG 1219 URL next to image (good)
13846 http://example.com [[File:Foobar.jpg]]
13848 <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>
13851 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a> <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>
13855 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
13858 The line above must have a trailing space!
13861 But just in case it doesn't...
13863 <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>
13864 <p>The line above must have a trailing space!
13866 <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>
13867 <p>But just in case it doesn't...
13872 Header with special characters (bug 25462)
13874 The tooltips shall not show entities to the user (ie. be double escaped)
13891 <p>The tooltips shall not show entities to the user (ie. be double escaped)
13893 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13895 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
13896 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
13897 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
13898 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
13899 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
13903 <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>
13906 <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>
13909 <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>
13912 <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>
13915 <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>
13921 Header with space, plus and underscore as entity
13923 Id should not contain + for spaces
13925 == Space between Text ==
13928 == Space-Entity between Text ==
13931 == Plus+between+Text ==
13934 == Plus-Entity+between+Text ==
13937 == Underscore_between_Text ==
13940 == Underscore-Entity_between_Text ==
13943 [[#Space between Text]]
13944 [[#Space-Entity between Text]]
13945 [[#Plus+between+Text]]
13946 [[#Plus-Entity+between+Text]]
13947 [[#Underscore_between_Text]]
13948 [[#Underscore-Entity_between_Text]]
13950 <p>Id should not contain + for spaces
13952 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
13954 <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>
13955 <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>
13956 <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>
13957 <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>
13958 <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>
13959 <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>
13963 <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>
13966 <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>
13969 <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>
13972 <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>
13975 <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>
13978 <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>
13980 </p><p><a href="#Space_between_Text">#Space between Text</a>
13981 <a href="#Space-Entity_between_Text">#Space-Entity between Text</a>
13982 <a href="#Plus.2Bbetween.2BText">#Plus+between+Text</a>
13983 <a href="#Plus-Entity.2Bbetween.2BText">#Plus-Entity+between+Text</a>
13984 <a href="#Underscore_between_Text">#Underscore_between_Text</a>
13985 <a href="#Underscore-Entity_between_Text">#Underscore-Entity_between_Text</a>
13990 Headers with excess '=' characters
13991 (Are similar tests necessary beyond the 1st level?)
13995 =''italic'' heading==
13996 ==''italic'' heading=
13998 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14000 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
14001 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
14002 <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>
14003 <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>
14007 <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>
14008 <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>
14009 <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>
14010 <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>
14015 HTML headers vs TOC (bug 23393)
14016 (__NOEDITSECTION__ for clearer output, doesn't matter here)
14028 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14030 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
14032 <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>
14033 <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>
14036 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
14038 <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>
14039 <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>
14045 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
14046 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
14047 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
14048 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
14049 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
14050 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
14055 Single-line or multiline-comments can follow headings
14057 parsoid=wt2html,wt2wt
14065 <h2><span class="mw-headline" id="foo">foo</span></h2>
14066 <h2><span class="mw-headline" id="bar">bar</span></h2>
14067 <h2><span class="mw-headline" id="baz">baz</span></h2>
14072 BUG 1219 URL next to image (broken)
14074 http://example.com[[File:Foobar.jpg]]
14076 <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>
14079 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a><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>
14083 Bug 1186 news: in the middle of text
14085 http://en.wikinews.org/wiki/Wikinews:Workplace
14087 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
14093 Namespaced link must have a title
14102 Namespaced link must have a title (bad fragment version)
14104 [[Project:#fragment]]
14106 <p>[[Project:#fragment]]
14112 ### HTML tags and HTML attributes
14116 div with no attributes
14118 <div>HTML rocks</div>
14120 <div>HTML rocks</div>
14125 div with double-quoted attribute
14127 <div id="rock">HTML rocks</div>
14129 <div id="rock">HTML rocks</div>
14134 div with single-quoted attribute
14136 <div id='rock'>HTML rocks</div>
14138 <div id="rock">HTML rocks</div>
14143 div with unquoted attribute
14145 <div id=rock>HTML rocks</div>
14147 <div id="rock">HTML rocks</div>
14152 div with illegal double attributes
14154 <div id="a" id="b">HTML rocks</div>
14156 <div id="b">HTML rocks</div>
14160 # FIXME: produce empty string instead of "class" in the PHP parser, following
14163 div with empty attribute value, space before equals
14167 <div class =>HTML rocks</div>
14169 <div class="">HTML rocks</div>
14174 div with multiple empty attribute values
14178 <div id= title=>HTML rocks</div>
14180 <div id="" title="">HTML rocks</div>
14185 table with multiple empty attribute values
14193 <table title="" id="">
14194 <tbody><tr><td> hi</td></tr>
14199 div with braces in attribute value
14201 <div title="{}">Foo</div>
14203 <div title="{}">Foo</div>
14206 <div title="{}">Foo</div>
14209 # This it very inconsistent in the PHP parser: it returns
14210 # class="class" if there is a space between the name and the equal sign (see
14211 # 'div with empty attribute value, space before equals'), but strips the
14212 # attribute completely if the space is missing. We hope that not much content
14213 # depends on this, so are implementing the behavior below in Parsoid for
14214 # consistencies' sake.
14215 # FIXME: fix this behavior in the PHP parser?
14217 div with empty attribute value, no space before equals
14219 parsoid=wt2html,html2html
14221 <div class=>HTML rocks</div>
14223 <div>HTML rocks</div>
14226 <div class="">HTML rocks</div>
14230 HTML multiple attributes correction
14232 <p class="error" class="awesome">Awesome!</p>
14234 <p class="awesome">Awesome!</p>
14239 Table multiple attributes correction
14242 !+ class="error" class="awesome"| status
14247 <th class="awesome"> status
14255 <DIV ID="x">HTML ROCKS</DIV>
14257 <div id="x">HTML ROCKS</div>
14262 Non-ASCII pseudo-tags are rendered as text
14271 Pseudo-tag with URL 'name' renders as url link
14273 <http://example.com/>
14275 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
14280 text with amp in the middle of nowhere
14284 <p>Remember AT&T?
14289 text with character entity: eacute
14291 I always thought é was a cute letter.
14293 <p>I always thought é was a cute letter.
14296 <p>I always thought é was a cute letter.</p>
14300 text with entity-escaped character entity-like string: eacute
14302 I always thought &eacute; was a cute letter.
14304 <p>I always thought &eacute; was a cute letter.
14309 text with undefined character entity: xacute
14311 I always thought &xacute; was a cute letter.
14313 <p>I always thought &xacute; was a cute letter.
14317 # TODO: generalize to PHP parser?
14323 <data value="5">five</data>
14324 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
14325 <mark>This highlighted text</mark>
14327 <p><data value="5">five</data>
14328 <time datetime="2000-01-01T00:00Z">The new millenium started</time>
14329 <mark>This highlighted text</mark></p>
14333 HTML tag with leading space is parsed as text
14337 <p>< div>foo< /div>
14342 ### Nesting tests (see bug 41545, 50604, 51081)
14345 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
14346 # Note that html2wt is considerably more difficult if we use <b> in
14347 # the test case, instead of <big>
14349 Ensure that HTML adoption agency algorithm is properly implemented.
14351 <big>X<big>Y</big>Z</big>
14353 <p><big>X<big>Y</big>Z</big>
14357 # This was bug 41545 in the PHP parser.
14358 # Note that tidy doesn't handle this correctly.
14362 <kbd>X<kbd>Y</kbd>Z</kbd>
14364 <p><kbd>X<kbd>Y</kbd>Z</kbd>
14368 # The following cases were bug 51081 in the PHP parser.
14369 # Note that there are some other nestable tags (b, i, etc) which are
14370 # not covered; see bug 51081 for discussion.
14372 # Note that tidy doesn't handle this correctly.
14376 <em>X<em>Y</em>Z</em>
14378 <p><em>X<em>Y</em>Z</em>
14382 # Note that tidy doesn't handle this correctly.
14384 Nesting of <strong>
14386 <strong>X<strong>Y</strong>Z</strong>
14388 <p><strong>X<strong>Y</strong>Z</strong>
14397 <p><q>X<q>Y</q>Z</q></p>
14400 # Note that tidy doesn't handle this correctly.
14404 <ruby>X<ruby>Y</ruby>Z</ruby>
14406 <p><ruby>X<ruby>Y</ruby>Z</ruby>
14410 # Note that tidy doesn't handle this correctly.
14414 <bdo>X<bdo>Y</bdo>Z</bdo>
14416 <p><bdo>X<bdo>Y</bdo>Z</bdo>
14428 [[Media:Foobar.jpg]]
14430 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
14435 Media link with text
14437 [[Media:Foobar.jpg|A neat file to look at]]
14439 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
14443 # FIXME: this is still bad HTML tag nesting
14444 # FIXME: doBlockLevels won't wrap this in a paragraph because it contains a div
14446 Media link with nasty text
14448 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
14450 <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>
14453 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Safe Link</a></p>
14454 <div style="display:none">" onmouseover="alert(document.cookie)" onfoo="</div>
14458 Media link to nonexistent file (bug 1702)
14460 [[Media:No such.jpg]]
14462 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
14467 Image link to nonexistent file (bug 1850 - good)
14469 [[File:No_such.jpg]]
14471 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
14474 <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>
14478 :Image link to nonexistent file (bug 1850 - bad)
14480 [[:Image:No such.jpg]]
14482 <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>
14485 <p><a rel="mw:WikiLink" href="./File:No_such.jpg" title="File:No such.jpg">Image:No such.jpg</a></p>
14491 Character reference normalization in link text (bug 1938)
14493 [[Main Page|this&that]]
14495 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
14502 Test for unicode normalization
14504 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
14508 (bug 19451) Links should refer to the normalized form.
14516 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14517 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14518 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14519 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14520 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
14525 Empty attribute crash test (bug 2067)
14527 <font color="">foo</font>
14529 <p><font color="">foo</font>
14534 Empty attribute crash test single-quotes (bug 2067)
14536 <font color=''>foo</font>
14538 <p><font color="">foo</font>
14543 Attribute test: equals, then nothing
14545 <font color=>foo</font>
14547 <p><font>foo</font>
14552 Attribute test: unquoted value
14554 <font color=x>foo</font>
14556 <p><font color="x">foo</font>
14561 Attribute test: unquoted but illegal value (hash)
14563 <font color=#x>foo</font>
14565 <p><font color="#x">foo</font>
14570 Attribute test: no value
14572 <font color>foo</font>
14574 <p><font color="color">foo</font>
14579 Bug 2095: link with three closing brackets
14583 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
14586 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a>]</p>
14590 Bug 2095: link with pipe and three closing brackets
14592 [[Main Page|link]]]
14594 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
14597 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">link</a>]</p>
14601 Bug 2095: link with pipe and three closing brackets, version 2
14603 [[Main Page|[http://example.com/]]]
14605 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
14608 <p><a rel="mw:WikiLink" href="./Main_Page" title="Main Page">[http://example.com/]</a></p>
14617 Template:Dangerous attribute
14619 " onmouseover="alert(document.cookie)
14623 Template:Dangerous style attribute
14625 border-size: expression(alert(document.cookie))
14631 <div style="float: right; {{{1}}}">Magic div</div>
14635 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
14637 <div title="{{test}}"></div>
14639 <div title="This is a test template"></div>
14643 # Parsoid has enough context to handle this case
14645 Bug 2304: HTML attribute safety (dangerous template; 2309)
14647 <div title="{{dangerous attribute}}"></div>
14649 <div title=""></div>
14652 <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>
14656 Bug 2304: HTML attribute safety (dangerous style template; 2309)
14658 <div style="{{dangerous style attribute}}"></div>
14660 <div style="/* insecure input */"></div>
14665 Bug 2304: HTML attribute safety (safe parameter; 2309)
14667 {{div style|width: 200px}}
14669 <div style="float: right; width: 200px">Magic div</div>
14674 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
14676 {{div style|width: expression(alert(document.cookie))}}
14678 <div style="/* insecure input */">Magic div</div>
14683 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
14685 {{div style|"><script>alert(document.cookie)</script>}}
14687 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
14692 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
14694 {{div style|" ><script>alert(document.cookie)</script>}}
14696 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
14701 Bug 2304: HTML attribute safety (link)
14703 <div title="[[Main Page]]"></div>
14705 <div title="[[Main Page]]"></div>
14710 Bug 2304: HTML attribute safety (italics)
14712 <div title="''foobar''"></div>
14714 <div title="''foobar''"></div>
14719 Bug 2304: HTML attribute safety (bold)
14721 <div title="'''foobar'''"></div>
14723 <div title="'''foobar'''"></div>
14729 Bug 2304: HTML attribute safety (ISBN)
14731 <div title="ISBN 1234567890"></div>
14733 <div title="ISBN 1234567890"></div>
14738 Bug 2304: HTML attribute safety (RFC)
14740 <div title="RFC 1234"></div>
14742 <div title="RFC 1234"></div>
14747 Bug 2304: HTML attribute safety (PMID)
14749 <div title="PMID 1234567890"></div>
14751 <div title="PMID 1234567890"></div>
14756 Bug 2304: HTML attribute safety (web link)
14758 <div title="http://example.com/"></div>
14760 <div title="http://example.com/"></div>
14765 Bug 2304: HTML attribute safety (named web link)
14767 <div title="[http://example.com/ link]"></div>
14769 <div title="[http://example.com/ link]"></div>
14774 Bug 3244: HTML attribute safety (extension; safe)
14776 <div style="<nowiki>background:blue</nowiki>"></div>
14778 <div style="background:blue"></div>
14783 Bug 3244: HTML attribute safety (extension; unsafe)
14785 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
14787 <div style="/* insecure input */"></div>
14791 # More MSIE fun discovered by Tom Gilder
14794 MSIE CSS safety test: spurious slash
14796 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
14798 <div style="/* insecure input */">evil</div>
14803 MSIE CSS safety test: hex code
14805 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
14807 <div style="/* insecure input */">evil</div>
14812 MSIE CSS safety test: comment in url
14814 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
14816 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
14821 MSIE CSS safety test: comment in expression
14823 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
14825 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
14830 CSS safety test (all browsers): vertical tab (bug 55332 / CVE-2013-4567)
14832 <p style="font-size: 100px; background-image:url\b(https://www.google.com/images/srpr/logo6w.png)">A</p>
14834 <p style="/* invalid control char */">A</p>
14839 MSIE 6 CSS safety test: Fullwidth (bug 55332)
14841 <p style="font-size: 100px; color: expression((title='XSSed'),'red')">A</p>
14842 <div style="top:EXPRESSION(alert())">B</div>
14844 <p style="/* insecure input */">A</p>
14845 <div style="/* insecure input */">B</div>
14850 MSIE 6 CSS safety test: IPA extensions (bug 55332)
14852 <div style="background-image:uʀʟ(javascript:alert())">A</div>
14853 <p style="font-size: 100px; color: expʀessɪoɴ((title='XSSed'),'red')">B</p>
14855 <div style="/* insecure input */">A</div>
14856 <p style="/* insecure input */">B</p>
14861 MSIE 6 CSS safety test: sup/sub script (bug 55332)
14863 <div style="background-image:url⁽javascript:alert())">A</div>
14864 <div style="background-image:url₍javascript:alert())">B</div>
14865 <p style="font-size: 100px; color: expressioⁿ((title='XSSed'),'red')">C</p>
14867 <div style="/* insecure input */">A</div>
14868 <div style="/* insecure input */">B</div>
14869 <p style="/* insecure input */">C</p>
14877 title="data:text/html,<img src=1 onerror=alert(1)>"
14878 style="-o-link:attr(title);-o-link-source:current">X</div>
14880 <div title="data:text/html,<img src=1 onerror=alert(1)>" style="/* insecure input */">X</div>
14885 MSIE 6 CSS safety test: Repetition markers (bug 55332)
14887 <p style="font-size: 100px; color: expres〱ion((title='XSSed'),'red')">A</p>
14888 <p style="font-size: 100px; color: expresゝion((title='XSSed'),'red')">B</p>
14889 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">C</p>
14890 <p style="font-size: 100px; color: expresヽion((title='XSSed'),'red')">D</p>
14891 <p style="font-size: 100px; color: expresﹽion((title='XSSed'),'red')">E</p>
14892 <p style="font-size: 100px; color: expresﹼion((title='XSSed'),'red')">F</p>
14893 <p style="font-size: 100px; color: expresーion((title='XSSed'),'red')">G</p>
14895 <p style="/* insecure input */">A</p>
14896 <p style="/* insecure input */">B</p>
14897 <p style="/* insecure input */">C</p>
14898 <p style="/* insecure input */">D</p>
14899 <p style="/* insecure input */">E</p>
14900 <p style="/* insecure input */">F</p>
14901 <p style="/* insecure input */">G</p>
14906 Table attribute legitimate extension
14909 !+ style="<nowiki>color:blue</nowiki>"| status
14914 <th style="color:blue"> status
14920 Table attribute safety
14923 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
14928 <th style="/* insecure input */"> status
14934 CSS line continuation 1
14936 <div style="background-image: u\ rl(test.jpg);"></div>
14938 <div style="/* insecure input */"></div>
14943 CSS line continuation 2
14945 <div style="background-image: u\ rl(test.jpg); "></div>
14947 <div style="/* insecure input */"></div>
14958 Expansion of multi-line templates in attribute values (bug 6255)
14960 <div style="background: {{identity|#00FF00}}">-</div>
14962 <div style="background: #00FF00">-</div>
14968 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
14970 <div style="background:
14973 <div style="background: #00FF00">-</div>
14976 <div style="background:
14981 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
14983 <div style="background: #00FF00">-</div>
14985 <div style="background: #00FF00">-</div>
14990 evil <math>-wiki-tags without Extension:Math enabled
14992 <math><img src="some evil external link"><script>some_evil_javascript();</script></math>
14994 <p><math><img src="some evil external link"><script>some_evil_javascript();</script></math></p>
14998 ### Parser hooks (see tests/parser/parserTestsParserHook.php for the <tag> extension)
15001 Parser hook: empty input
15014 Parser hook: empty input using terminated empty elements
15027 Parser hook: empty input using terminated empty elements (space before)
15040 Parser hook: basic input
15054 Parser hook: case insensitive
15068 Parser hook: case insensitive, redux
15081 Parser hook: nested tags
15085 <tag><tag></tag></tag>
15096 Parser hook: basic arguments
15098 <tag width=200 height = "100" depth = '50' square></tag>
15106 'square' => 'square',
15113 Parser hook: argument containing a forward slash (bug 5344)
15115 <tag filename='/tmp/bla'></tag>
15120 'filename' => '/tmp/bla',
15127 Parser hook: empty input using terminated empty elements (bug 2374)
15140 # </tag> should be output literally since there is no matching tag that begins it
15142 Parser hook: basic arguments using terminated empty elements (bug 2374)
15144 <tag width=200 height = "100" depth = '50' square/>
15154 'square' => 'square',
15163 ### (see tests/parser/parserTestsParserHook.php for the <statictag> extension)
15167 Parser hook: static parser hook not inside a comment
15169 <statictag>hello, world</statictag>
15170 <statictag action=flush/>
15178 Parser hook: static parser hook inside a comment
15180 <!-- <statictag>hello, world</statictag> -->
15181 <statictag action=flush/>
15187 # Nested template calls; this case was broken by Parser.php rev 1.506,
15191 Template:One-parameter
15193 (My parameter is: {{{1}}})
15197 Template:Map-one-parameter
15199 {{{{{1}}}|{{{2}}}}}
15203 Nested template calls
15205 {{Map-one-parameter|One-parameter|param}}
15207 <p>(My parameter is: param)
15216 # HTML+Tidy effectively strips out the empty tags completely
15217 # But since Parsoid doesn't it wraps the <s></s> tags in p-tags
15218 # which Tidy would have done for the PHP parser had there been content inside it.
15220 Sanitizer: Closing of open tags
15222 <s></s><table></table>
15224 <s></s><table></table>
15227 <p><s></s></p><table></table>
15231 Sanitizer: Closing of open but not closed tags
15240 Sanitizer: Closing of closed but not open tags
15249 Sanitizer: Closing of closed but not open table tags
15251 Table not started</td></tr></table>
15253 <p>Table not started</td></tr></table>
15258 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
15260 <span id="æ: v">byte</span>[[#æ: v|backlink]]
15262 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
15266 # In HTML5, the restrictions are that id must contain at least one character,
15267 # and must not contain any space characters.
15269 Sanitizer: Validating the contents of the id attribute (bug 4515)
15273 <br id="" /><br id="a space" />
15278 # In HTML5, id must be unique amongst all the ids in the element's home subtree.
15280 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
15284 <br id="foo" /><br id="foo" />
15286 Something need to be done. foo-2 ?
15290 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
15293 <meta itemprop="hello" content="world">
15294 <meta http-equiv="refresh" content="5">
15295 <meta itemprop="hello" http-equiv="refresh" content="5">
15296 <link itemprop="hello" href="{{SERVER}}">
15297 <link rel="stylesheet" href="{{SERVER}}">
15298 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
15301 <div itemscope="itemscope">
15302 <p> <meta itemprop="hello" content="world" />
15303 <meta http-equiv="refresh" content="5">
15304 <meta itemprop="hello" content="5" />
15306 <link itemprop="hello" href="http://example.org" />
15307 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
15308 <link itemprop="hello" href="http://example.org" />
15314 Language converter: output gets cut off unexpectedly (bug 5757)
15318 this bit is safe: }-
15320 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
15322 then we get cut off here: }-
15324 all additional text is vanished
15326 <p>this bit is safe: }-
15327 </p><p>but if we add a conversion instance: xxx
15328 </p><p>then we get cut off here: }-
15329 </p><p>all additional text is vanished
15334 Self closed html pairs (bug 5487)
15337 <center><font id="bug" />Centered text</center>
15338 <div><font id="bug2" />In div text</div>
15340 <center><font id="bug" />Centered text</center>
15341 <div><font id="bug2" />In div text</div>
15350 Punctuation: nbsp before exclamation
15354 <p>C'est grave !
15359 Punctuation: CSS !important (bug 11874)
15361 <div style="width:50% !important">important</div>
15363 <div style="width:50% !important">important</div>
15368 Punctuation: CSS ! important (bug 11874; with space after)
15370 <div style="width:50% ! important">important</div>
15372 <div style="width:50% ! important">important</div>
15377 HTML bullet list, closed tags (bug 5497)
15390 <ul data-parsoid='{"stx":"html"}'>
15391 <li data-parsoid='{"stx":"html"}'>One</li>
15392 <li data-parsoid='{"stx":"html"}'>Two</li>
15398 HTML bullet list, unclosed tags (bug 5497)
15410 <ul data-parsoid='{"stx":"html"}'>
15411 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>One</li>
15412 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>Two</li>
15418 HTML ordered list, closed tags (bug 5497)
15431 <ol data-parsoid='{"stx":"html"}'>
15432 <li data-parsoid='{"stx":"html"}'>One</li>
15433 <li data-parsoid='{"stx":"html"}'>Two</li>
15439 HTML ordered list, unclosed tags (bug 5497)
15452 <ol data-parsoid='{"stx":"html"}'>
15453 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>One</li>
15454 <li data-parsoid='{"stx":"html","autoInsertedEnd":true}'>Two</li>
15460 HTML nested bullet list, closed tags (bug 5497)
15485 HTML nested bullet list, open tags (bug 5497)
15522 HTML nested ordered list, closed tags (bug 5497)
15547 HTML nested ordered list, open tags (bug 5497)
15584 HTML ordered list item with parameters oddity
15586 <ol><li id="fragment">One</li>
15589 <ol><li id="fragment">One</li>
15594 # parsoid doesn't explicitly mark autonumbered links, see bug 53505
15596 bug 5918: autonumbering
15598 [http://first/] [http://second] [ftp://ftp]
15602 [mailto:enclosed@mail.tld With target]
15604 [mailto:enclosed@mail.tld]
15606 mailto:inline@mail.tld
15608 <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>
15609 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
15610 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
15611 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
15612 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
15615 <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>
15616 <p><a rel="mw:ExtLink" href="ftp://inlineftp">ftp://inlineftp</a></p>
15617 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld">With target</a></p>
15618 <p><a rel="mw:ExtLink" href="mailto:enclosed@mail.tld"></a></p>
15619 <p><a rel="mw:ExtLink" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a></p>
15624 # Security and HTML correctness
15625 # From Nick Jenkins' fuzz testing
15629 Fuzz testing: Parser13
15644 Fuzz testing: Parser14
15649 <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>
15650 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
15652 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
15658 <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>
15660 <div id="toc" class="toc">
15661 <div id="toctitle">
15665 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
15672 Fuzz testing: Parser14-table
15677 <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>
15678 <table style="__TOC__">
15683 <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>
15684 <table style="__TOC__">
15691 # Known to produce bogus xml (extra </td>)
15693 Fuzz testing: Parser16
15722 Fuzz testing: Parser21
15725 ! irc://{{ftp://a" onmouseover="alert('hello world');"
15730 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
15740 Fuzz testing: Parser22
15742 http://===r:::https://b
15746 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
15754 # Known to produce bad XML for now
15756 Fuzz testing: Parser24
15763 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
15764 <br style="onmouseover='alert(document.cookie);' " />
15766 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
15771 <u class="|">}}}} >
15772 <br style="onmouseover='alert(document.cookie);'" />
15774 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
15783 # Note: the current result listed for this is not what the original one was,
15784 # but the original bug was JavaScript injection, which is fixed in any case.
15785 # It's not clear that the original result listed was any more correct than the
15786 # current one. Original result:
15789 # <li class="||">
15790 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
15792 Fuzz testing: Parser25 (bug 6055)
15798 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
15800 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
15805 Fuzz testing: URL adjacent extension (with space, clean)
15807 http://example.com <nowiki>junk</nowiki>
15809 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
15812 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a> <span typeof="mw:Nowiki">junk</span></p>
15816 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
15818 http://example.com<nowiki>junk</nowiki>
15820 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
15823 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a><span typeof="mw:Nowiki">junk</span></p>
15827 Fuzz testing: URL adjacent extension (no space, dirty; pre)
15829 http://example.com<pre>junk</pre>
15831 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
15834 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></p>
15839 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a></p><pre data-parsoid='{"stx":"html"}'>junk</pre>
15843 Fuzz testing: image with bogus manual thumbnail
15845 [[Image:foobar.jpg|thumbnail= ]]
15847 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
15850 <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>
15854 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
15856 <pre dir=" "></pre>
15858 <pre dir=" "></pre>
15863 Parsing optional HTML elements (Bug 6171)
15868 <td> Some tabular data</td>
15869 <td> More tabular data ...
15870 <td> And yet som tabular data</td>
15876 <td> Some tabular data</td>
15877 <td> More tabular data ...
15878 </td><td> And yet som tabular data</td>
15885 Correct handling of <td>, <tr> (Bug 6171)
15890 <td> Some tabular data</td>
15891 <td> More tabular data ...</td>
15892 <td> And yet som tabular data</td>
15898 <td> Some tabular data</td>
15899 <td> More tabular data ...</td>
15900 <td> And yet som tabular data</td>
15908 Parsing crashing regression (fr:JavaScript)
15912 <p></body></x>
15917 Inline wiki vs wiki block nesting
15923 <p><b>Bold paragraph</b>
15924 </p><p>New wiki paragraph
15928 # FIXME: The current php output is documented
15929 # and desired output is the parsoid target.
15931 Inline HTML vs wiki block nesting
15937 <p><b>Bold paragraph
15938 </p><p>New wiki paragraph</b>
15941 <p><b>Bold paragraph</b>
15942 </p><p>New wiki paragraph
15946 # Original result was this:
15947 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
15949 # While that might be marginally more intuitive, maybe, the six-apostrophe
15950 # construct is clearly pathological and the result stated here (which is what
15951 # the parser actually does) is about as reasonable as anything.
15953 Mixing markup for italics and bold
15956 '''bold''''''bold''bolditalics'''''
15958 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
15966 Article for special page transclusion test
15970 Special page transclusion
15973 {{Special:Prefixindex/Xyzzyx}}
15975 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15980 Special page transclusion twice (bug 5021)
15983 {{Special:Prefixindex/Xyzzyx}}
15984 {{Special:Prefixindex/Xyzzyx}}
15986 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15987 <table class="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
15992 Transclusion of default MediaWiki message
15994 {{MediaWiki:Mainpage}}
16001 Transclusion of nonexistent MediaWiki message
16003 {{MediaWiki:Mainpagexxx}}
16005 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
16010 Transclusion of MediaWiki message with underscore
16012 {{MediaWiki:history_short}}
16019 Transclusion of MediaWiki message with space
16021 {{MediaWiki:history short}}
16028 Invalid header with following text
16038 Section extraction test (section 0)
16058 Section extraction test (section 1)
16080 Section extraction test (section 2)
16101 Section extraction test (section 3)
16121 Section extraction test (section 4)
16145 Section extraction test (section 5)
16165 Section extraction test (section 6)
16186 Section extraction test (section 7)
16206 Section extraction test (section 8)
16226 Section extraction test (section 9)
16247 Section extraction test (section 10)
16267 Section extraction test (nonexistent section 11)
16286 Section extraction test with bogus heading (section 1)
16291 ==bogus== not a legal section
16295 ==bogus== not a legal section
16299 Section extraction test with bogus heading (section 2)
16304 ==bogus== not a legal section
16311 Section extraction test with comment after heading (section 1)
16323 Section extraction test with comment after heading (section 2)
16335 Section extraction test with bogus <nowiki> heading (section 1)
16340 ==bogus== <nowiki>not a legal section</nowiki>
16344 ==bogus== <nowiki>not a legal section</nowiki>
16348 Section extraction test with bogus <nowiki> heading (section 2)
16353 ==bogus== <nowiki>not a legal section</nowiki>
16360 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
16361 # instead of respecting commented sections
16363 Section extraction prefixed by comment (section 1)
16374 Section extraction prefixed by comment (section 2)
16385 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
16386 # instead of respecting HTML-style headings
16388 Section extraction, mixed wiki and html (section 1)
16404 Section extraction, mixed wiki and html (section 2)
16420 # Formerly testing for bug 3342
16422 Section extraction, heading surrounded by <noinclude>
16426 <noinclude>==unmarked==</noinclude>
16432 # Test behavior of bug 19910
16434 Sectiion with all-equals
16439 The line above must have a trailing space
16442 But just in case it doesn't...
16446 But just in case it doesn't...
16450 Section replacement test (section 0)
16481 Section replacement test (section 1)
16510 Section replacement test (section 2)
16540 Section replacement test (section 3)
16571 Section replacement test (section 4)
16598 Section replacement test (section 5)
16629 Section replacement test (section 6)
16659 Section replacement test (section 7)
16690 Section replacement test (section 8)
16721 Section replacement test (section 9)
16750 Section replacement test (section 10)
16780 Section replacement test with initial whitespace (bug 13728)
16784 Preformatted initial line
16788 Preformatted initial line
16795 Section extraction, heading followed by pre with 20 spaces (bug 6398)
16807 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
16820 Section extraction, <pre> around bogus header (bug 10309)
16837 Section replacement, <pre> around bogus header (bug 10309)
16839 noxml replace=2,"xxx"
16860 Handling of 
 in URLs
16864 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16867 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://
16869 a</a></li></ul></li></ul>
16873 Handling of %0A in URLs
16877 <ul><li><ul><li> <a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16880 <ul><li><ul><li> <a rel="mw:ExtLink" href="irc://%0Aa">irc://%0Aa</a></li></ul></li></ul>
16884 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
16886 5 quotes, code coverage +1 line
16893 <p><b><i></i></b></p>
16896 # same html as previous, but wikitext adjusted to match parsoid html2wt
16897 # note that wt2html and html2html will put the <i> before the <b>
16899 5 quotes, code coverage +1 line w/ nowiki (1)
16901 parsoid=wt2wt,html2wt
16903 '''''<nowiki/>'''''
16908 <p><b><i></i></b></p>
16911 # same as previous, just swapping the <i> and <b>
16913 5 quotes, code coverage +1 line w/ nowiki (2)
16915 '''''<nowiki/>'''''
16920 <p><i><b></b></i></p>
16924 Special:Search page linking.
16928 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
16933 {{!}} is a magic word
16935 {{!}} is a magic word there and {{!}} is still a magic word here
16937 <p>| is a magic word there and | is still a magic word here
16940 <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>
16946 title=[[Parser test]]
16951 * {{FULLPAGENAMEE}}
16953 * {{BASEPAGENAMEE}}
16957 * {{ROOTPAGENAMEE}}
16959 * {{TALKPAGENAMEE}}
16960 * {{SUBJECTPAGENAME}}
16961 * {{SUBJECTPAGENAMEE}}
16964 * {{NAMESPACENUMBER}}
16968 * {{SUBJECTSPACEE}}
16969 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
16971 <ul><li> Parser test</li>
16972 <li> Parser_test</li>
16973 <li> Parser test</li>
16974 <li> Parser_test</li>
16975 <li> Parser test</li>
16976 <li> Parser_test</li>
16977 <li> Parser test</li>
16978 <li> Parser_test</li>
16979 <li> Parser test</li>
16980 <li> Parser_test</li>
16981 <li> Talk:Parser test</li>
16982 <li> Talk:Parser_test</li>
16983 <li> Parser test</li>
16984 <li> Parser_test</li>
16992 <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>
16995 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
17005 image4 |300px| centre
17006 image5.svg| http://///////
17011 <ul class="gallery mw-gallery-traditional">
17012 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17013 <div class="thumb" style="height: 150px;">Image1.png</div>
17014 <div class="gallerytext">
17017 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17018 <div class="thumb" style="height: 150px;">Image2.gif</div>
17019 <div class="gallerytext">
17024 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17025 <div class="thumb" style="height: 150px;">Image3</div>
17026 <div class="gallerytext">
17029 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17030 <div class="thumb" style="height: 150px;">Image4</div>
17031 <div class="gallerytext">
17036 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17037 <div class="thumb" style="height: 150px;">Image5.svg</div>
17038 <div class="gallerytext">
17039 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
17043 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17044 <div class="thumb" style="height: 150px;">* image6</div>
17045 <div class="gallerytext">
17053 Gallery (with options)
17055 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
17056 File:Nonexistent.jpg|caption
17057 File:Nonexistent.jpg
17058 image:foobar.jpg|some '''caption''' [[Main Page]]
17060 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
17063 <ul class="gallery mw-gallery-traditional" style="max-width: 226px;_width: 226px;">
17064 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
17065 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17066 <div class="thumb" style="height: 70px;">Nonexistent.jpg</div>
17067 <div class="gallerytext">
17072 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17073 <div class="thumb" style="height: 70px;">Nonexistent.jpg</div>
17074 <div class="gallerytext">
17077 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17078 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/105px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/140px-Foobar.jpg 2x" /></a></div></div>
17079 <div class="gallerytext">
17080 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
17084 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17085 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/105px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/140px-Foobar.jpg 2x" /></a></div></div>
17086 <div class="gallerytext">
17089 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
17090 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/105px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/140px-Foobar.jpg 2x" /></a></div></div>
17091 <div class="gallerytext">
17101 Gallery with link that has fragment
17104 image:foobar.jpg|link=Main_Page
17105 image:foobar.jpg|link=Main_Page#section
17106 image:foobar.jpg|link=Main Page#section|caption
17109 <ul class="gallery mw-gallery-traditional">
17110 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17111 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17112 <div class="gallerytext">
17115 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17116 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17117 <div class="gallerytext">
17120 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17121 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17122 <div class="gallerytext">
17132 Gallery with wikitext inside caption
17135 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
17136 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
17139 <ul class="gallery mw-gallery-traditional">
17140 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17141 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17142 <div class="gallerytext">
17143 <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>
17147 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17148 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17149 <div class="gallerytext">
17150 <p>This is a test template
17159 gallery (with showfilename option)
17161 <gallery showfilename>
17162 File:Nonexistent.jpg|caption
17163 File:Nonexistent.jpg
17164 image:foobar.jpg|some '''caption''' [[Main Page]]
17168 <ul class="gallery mw-gallery-traditional">
17169 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17170 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
17171 <div class="gallerytext">
17172 <p><a href="/wiki/File:Nonexistent.jpg" title="File:Nonexistent.jpg">Nonexistent.jpg</a><br />
17177 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17178 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
17179 <div class="gallerytext">
17180 <p><a href="/wiki/File:Nonexistent.jpg" title="File:Nonexistent.jpg">Nonexistent.jpg</a><br />
17184 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17185 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17186 <div class="gallerytext">
17187 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
17188 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
17192 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17193 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17194 <div class="gallerytext">
17195 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
17204 Gallery (with namespace-less filenames)
17207 File:Nonexistent.jpg
17213 <ul class="gallery mw-gallery-traditional">
17214 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17215 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
17216 <div class="gallerytext">
17219 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17220 <div class="thumb" style="height: 150px;">Nonexistent.jpg</div>
17221 <div class="gallerytext">
17224 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17225 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17226 <div class="gallerytext">
17229 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
17230 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
17231 <div class="gallerytext">
17239 HTML Hex character encoding (spells the word "JavaScript")
17241 parsoid=wt2html,wt2wt,html2html
17243 JavaScript
17245 <p>JavaScript
17250 <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>
17254 HTML Hex character encoding bogus encoding (bug 26437 regression check)
17258 <p>&#xsee;&#XSEE;
17261 <p>&#xsee;&#XSEE;</p>
17265 HTML Hex character encoding mixed case
17267 parsoid=wt2html,wt2wt,html2html
17276 <p><span typeof="mw:Entity">î</span><span typeof="mw:Entity">î</span></p>
17280 __FORCETOC__ override
17292 ISBN 978-0-1234-56 789
17294 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
17297 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789</p>
17299 <p><a href="./Special:BookSources/9780123456" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 978-0-1234-56</a><span typeof="mw:Entity" data-parsoid='{"src":"&#x20;","srcContent":" "}'> </span>789</p>
17303 ISBN followed by 5 spaces
17314 ISBN ISBN 1234567890
17316 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
17319 <p>ISBN <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a></p>
17329 <p><a href="/wiki/Special:BookSources/346204561X" class="internal mw-magiclink-isbn">ISBN 3-462-04561-X</a>
17330 <a href="/wiki/Special:BookSources/080442957X" class="internal mw-magiclink-isbn">ISBN 080442957X</a>
17331 <a href="/wiki/Special:BookSources/978080442957X" class="internal mw-magiclink-isbn">ISBN 978080442957X</a>
17334 <p><a href="./Special:BookSources/346204561X" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 3-462-04561-X</a>
17335 <a href="./Special:BookSources/080442957X" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 080442957X</a>
17336 <a href="./Special:BookSources/978080442957X" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 978080442957X</a></p>
17340 ISBN with empty prefix (parsoid test)
17344 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
17347 <p><a href="Special:BookSources/1234567890" rel="mw:ExtLink">ISBN 1234567890</a></p>
17351 Bug 22905: <abbr> followed by ISBN followed by </a>
17353 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
17355 <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>
17358 <p><abbr data-parsoid='{"stx":"html"}'>(fr)</abbr> <a href="./Special:BookSources/2753300917" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 2753300917</a> <a rel="mw:ExtLink" href="http://www.example.com">example.com</a></p>
17366 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
17371 Double RFC with a wiki link
17375 <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>
17384 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
17387 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987</p>
17391 Centre-aligned image
17393 [[Image:foobar.jpg|centre]]
17395 <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>
17402 [[Image:foobar.jpg|none]]
17404 <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>
17409 Width + Height sized image (using px) (height is ignored)
17411 [[Image:foobar.jpg|640x480px]]
17413 <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>
17418 Width-sized image (using px, no following whitespace)
17420 [[Image:foobar.jpg|640px]]
17422 <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>
17427 Width-sized image (using px, with following whitespace - test regression from r39467)
17429 [[Image:foobar.jpg|640px ]]
17431 <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>
17436 Width-sized image (using px, with preceding whitespace - test regression from r39467)
17438 [[Image:foobar.jpg| 640px]]
17440 <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>
17445 Image with page parameter
17449 [[File:LoremIpsum.djvu|page=2]]
17451 <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>
17454 <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>
17458 Another italics / bold test
17466 # FIXME: The php output seems broken. It's interleaving some open/close tags.
17472 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd></dt></dl></dd></dl></dd></dl></dd></dl></dd></dl></dd></dl>
17475 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd></dd></dl></dd></dl></dt></dl></dt></dl></dt></dl></dd></dl>
17480 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
17482 Images with the "|" character in the comment
17484 [[File:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
17486 <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>
17489 <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>
17493 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
17495 <html><script>alert(1);</script></html>
17497 <p><html><script>alert(1);</script></html>
17502 HTML with raw HTML ($wgRawHtml==true)
17506 <html><script>alert(1);</script></html>
17508 <p><script>alert(1);</script>
17513 Parents of subpages, one level up
17515 subpage title=[[Subpage test/L1/L2/L3]]
17519 <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>
17525 Parents of subpages, one level up, not named
17527 subpage title=[[Subpage test/L1/L2/L3]]
17531 <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>
17538 Parents of subpages, two levels up
17540 subpage title=[[Subpage test/L1/L2/L3]]
17546 <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
17547 </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>
17552 Parents of subpages, two levels up, without trailing slash or name.
17554 subpage title=[[Subpage test/L1/L2/L3]]
17563 Parents of subpages, two levels up, with lots of extra trailing slashes.
17565 subpage title=[[Subpage test/L1/L2/L3]]
17569 <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>
17574 Subpage test/L1/L2/L3Sibling
17580 Transclusion of a sibling page (one level up)
17582 subpage title=[[Subpage test/L1/L2/L3]]
17591 Transclusion of a child page
17593 subpage title=[[Subpage test/L1/L2]]
17602 Non-transclusion because of too many up levels
17604 subpage title=[[Subpage test/L1/L2/L3]]
17606 {{../../../../More than parent}}
17608 <p>{{../../../../More than parent}}
17613 Definition list code coverage
17619 <dl><dt> title  </dt>
17621 <dt> title </dt>
17627 <dl><dt> title <span typeof="mw:Placeholder"> </span></dt><dd> def</dd>
17628 <dt> title<span typeof="mw:Placeholder"> </span></dt><dd> def</dd>
17629 <dt>title</dt><dd> def</dd></dl>
17633 Don't fall for the self-closing div
17635 <div>hello world</div/>
17637 <div>hello world</div>
17646 <p>[[:Template:Msg]]
17655 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
17659 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
17661 Always escape literal '>' in output, not just after '<'
17675 <p>This is a test template
17676 This is a test template
17688 Inclusion of !userCanEdit() content
17692 <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>
17698 Out-of-order TOC heading levels
17707 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
17709 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
17711 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
17712 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
17715 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
17717 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
17718 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
17724 <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>
17725 <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>
17726 <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>
17727 <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>
17728 <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>
17729 <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>
17735 ISBN with a dummy number
17745 ISBN with space-delimited number
17749 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
17755 ISBN with multiple spaces, no number
17774 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
17775 </p><p>ISBN 12345678901
17781 ISBN with trailing year (bug 8110)
17783 ISBN 1-234-56789-0 - 2006
17785 ISBN 1 234 56789 0 - 2006
17787 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
17788 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
17796 {{anchorencode:foo bar©#%n}}
17798 <p>foo_bar.C2.A9.23.25n
17803 anchorencode trims spaces
17805 {{anchorencode: __pretty__please__}}
17812 anchorencode deals with links
17814 {{anchorencode: [[hello|world]] [[hi]]}}
17821 anchorencode deals with templates
17823 {{anchorencode: {{Foo}} }}
17830 anchorencode encodes like the TOC generator: (bug 18431)
17832 === _ +:.3A%3A&&]] ===
17833 {{anchorencode: _ +:.3A%3A&&]] }}
17836 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
17837 <p>.2B:.3A.253A.26.26.5D.5D
17842 Bug 6200: blockquotes and paragraph formatting
17863 Bug 8293: Use of center tag ruins paragraph formatting
17884 Parsing of overlapping (improperly nested) inline html tags
17886 <span><s>x</span></s>
17888 <p><span><s>x</span></s></span>
17891 <p><span><s>x</s></span>
17896 ### Language variants related tests
17899 Self-link in language variants
17901 title=[[Dunav]] language=sr
17903 Both [[Dunav]] and [[Дунав]] are names for this river.
17905 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
17916 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
17918 title=[[Duna]] language=sr
17920 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
17922 <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.
17927 Link to a section of a variant of this title shouldn't be parsed as self-link
17929 title=[[Duna]] language=sr
17931 [[Dуна]] is a self-link while [[Dunа#Foo]] and [[Dуна#Foo]] are not self-links.
17933 <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.
17938 Link to pages in language variants
17942 Main Page can be written as [[Маин Паге]]
17944 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
17950 Multiple links to pages in language variants
17954 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
17956 <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>.
17962 Simple template in language variants
17968 <p>This is a test template
17974 Template with explicit namespace in language variants
17980 <p>This is a test template
17986 Basic test for template parameter in language variants
17990 {{парамтест|param=foo}}
17992 <p>This is a test template with parameter foo
17998 Simple category in language variants
18002 [[Category:МедиаWики Усер'с Гуиде]]
18004 <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>
18021 Don't convert blue categorylinks to another variant (bug 33210)
18025 [[A]][[Category:分类]]
18027 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
18032 Stripping -{}- tags (language variants)
18036 Latin proverb: -{Ne nuntium necare}-
18038 <p>Latin proverb: Ne nuntium necare
18044 Prevent conversion with -{}- tags (language variants)
18046 language=sr variant=sr-ec
18048 Latinski: -{Ne nuntium necare}-
18050 <p>Латински: Ne nuntium necare
18056 Prevent conversion of text with -{}- tags (language variants)
18058 language=sr variant=sr-ec
18060 Latinski: -{Ne nuntium necare}-
18062 <p>Латински: Ne nuntium necare
18068 Prevent conversion of links with -{}- tags (language variants)
18070 language=sr variant=sr-ec
18074 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
18080 -{}- tags within headlines (within html for parserConvert())
18082 language=sr variant=sr-ec
18086 <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>
18092 Explicit definition of language variant alternatives
18094 language=zh variant=zh-tw
18096 -{zh:China;zh-tw:Taiwan}-, not China
18098 <p>Taiwan, not China
18104 Conversion around HTML tags
18106 language=sr variant=sr-ec
18108 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
18109 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
18112 <span title="ЛаCтин">ски</span>
18118 Explicit session-wise language variant mapping (A flag and - flag)
18120 language=zh variant=zh-tw
18122 Taiwan is not China.
18123 But -{A|zh:China;zh-tw:Taiwan}- is China,
18124 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
18125 and -{China}- is China.
18127 <p>Taiwan is not China.
18128 But Taiwan is Taiwan,
18129 (This should be stripped!)
18130 and China is China.
18135 Explicit session-wise language variant mapping (H flag for hide)
18137 language=zh variant=zh-tw
18139 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
18142 <p>(This should be stripped!)
18148 Adding explicit conversion rule for title (T flag)
18150 language=zh variant=zh-tw showtitle
18152 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
18155 <p>Should be stripped!
18160 Testing that changing the language variant here in the tests actually works
18162 language=zh variant=zh showtitle
18164 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
18167 <p>Should be stripped!
18172 Recursive conversion of alt and title attrs shouldn't clear converter state
18174 language=zh variant=zh-cn showtitle
18176 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
18177 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
18181 Should be stripped<span title="Exclamation">!</span>
18186 Bug 24072: more test on conversion rule for title
18188 language=zh variant=zh-tw showtitle
18190 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
18191 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
18194 <p>This should be stripped!
18195 This won't take interferes with the title rule.
18200 Partly disable title conversion if variant == main language code
18202 language=zh variant=zh title=[[ZH]] showtitle
18204 -{T|zh-cn:CN;zh-tw:TW}-
18212 Partly disable title conversion if variant == main language code, more
18214 language=zh variant=zh title=[[ZH]] showtitle
18224 Raw output of variant escape tags (R flag)
18226 language=zh variant=zh-tw
18228 Raw: -{R|zh:China;zh-tw:Taiwan}-
18230 <p>Raw: zh:China;zh-tw:Taiwan
18235 Nested using of manual convert syntax
18237 language=zh variant=zh-hk
18239 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
18241 <p>Nested: Hello Hong Kong!
18246 Proper conversion of text in external links
18248 language=sr variant=sr-ec
18250 http://www.google.com
18251 gopher://www.google.com
18252 [http://www.google.com http://www.google.com]
18253 [gopher://www.google.com gopher://www.google.com]
18254 [https://www.google.com irc://www.google.com]
18255 [ftp://www.google.com www.google.com/ftp://dir]
18256 [//www.google.com www.google.com]
18258 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
18259 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
18260 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
18261 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
18262 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
18263 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
18264 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
18269 Do not convert roman numbers to language variants
18271 language=sr variant=sr-ec
18275 <p>Фридрих IV је цар.
18280 Unclosed language converter markup "-{"
18291 Don't convert raw rule "-{R|=>}-" to "=>"
18302 Don't break link parsing if language converter markup is in the caption.
18304 language=sr variant=sr-ec
18306 [[Main Page|-{R|main page}-]]
18308 <p><a href="/wiki/Main_Page" title="Маин Паге">main page</a>
18312 # FIXME: This test is currently broken in the PHP parser (bug 52661)
18314 Don't break image parsing if language converter markup is in the caption.
18318 [[File:Foobar.jpg|-{R|caption}-]]
18320 <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>
18324 # FIXME: This test is currently broken in the PHP parser (bug 52661)
18326 Don't break list handling if language converter markup is in the item.
18328 language=zh variant=zh-cn
18330 ;-{zh-cn:AAA;zh-tw:BBB}-
18332 <dl><dt><span class="error">在手动语言转换规则中检测到错误</span></dd></dl>
18339 # FIXME: This test is currently broken in the PHP parser (bug 52661)
18341 Don't break table handling if language converter markup is in the cell.
18343 language=sr variant=sr-ec
18366 Bug 529: Uncovered bullet
18375 # Plain MediaWiki does not remove empty lists, but tidy actually does.
18376 # Templates in Wikipedia rely on this behavior, as tidy has always been
18377 # enabled there. These tests are normally run *without* tidy, so specify the
18378 # full output here.
18379 # To test realistic parsing behavior, apply a tidy-like transformation to both
18380 # the expected output and your parser's output.
18382 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
18384 ******* Foo {{bullet}}
18386 <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>
18392 Bug 529: Uncovered table already at line-start
18415 Bug 529: Uncovered bullet in parser function result
18417 * Foo {{lc:{{bullet}} }}
18425 Bug 5678: Double-parsed template argument
18427 {{lc:{{{1}}}|hello}}
18434 Bug 5678: Double-parsed template invocation
18436 {{lc:{{paramtest {{!}} param = hello }} }}
18438 <p>{{paramtest | param = hello }}
18443 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
18446 title=[[Main Page]]
18448 {{PRVNÍVELKÉ:ěščř}}
18449 {{prvnívelké:ěščř}}
18469 Morwen/13: Unclosed link followed by heading
18476 <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>
18481 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
18488 <h1><span class="mw-headline" id="heading">heading</span></h1>
18493 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
18500 <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>
18515 Paragraphs inside divs (no extra line breaks)
18527 Paragraphs inside divs (extra line break on open)
18542 Paragraphs inside divs (extra line break on close)
18557 Paragraphs inside divs (extra line break on open and close)
18574 Nesting tags, paragraphs on lines which begin with <div>
18576 <div></div><strong>A
18579 <p><strong>A</strong></p>
18580 <p><strong>B</strong></p>
18588 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
18590 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
18592 <blockquote>Line one
18594 Line two</blockquote>
18596 <blockquote>Line one
18597 Line two</blockquote>
18601 <p>Line one Line two</p>
18606 Bug 6200: paragraphs inside blockquotes (extra line break on open)
18611 Line two</blockquote>
18616 Line two</blockquote>
18621 Line two</blockquote>
18625 Bug 6200: paragraphs inside blockquotes (extra line break on close)
18627 <blockquote>Line one
18632 <blockquote>Line one
18645 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
18667 Paragraphs inside blockquotes/divs (no extra line breaks)
18669 <blockquote><div>Line one
18671 Line two</div></blockquote>
18673 <blockquote><div>Line one
18674 Line two</div></blockquote>
18679 Paragraphs inside blockquotes/divs (extra line break on open)
18684 Line two</div></blockquote>
18689 Line two</div></blockquote>
18694 Paragraphs inside blockquotes/divs (extra line break on close)
18696 <blockquote><div>Line one
18699 </div></blockquote>
18701 <blockquote><div>Line one
18704 </div></blockquote>
18709 Paragraphs inside blockquotes/divs (extra line break on open and close)
18715 </div></blockquote>
18721 </div></blockquote>
18726 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
18728 wgLinkHolderBatchSize=0
18734 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
18735 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
18736 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
18741 Free external link invading image caption
18743 [[Image:Foobar.jpg|thumb|http://x|hello]]
18745 <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>
18750 Bug 15196: localised external link numbers
18754 [http://en.wikipedia.org/]
18756 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
18759 <p><a rel="mw:ExtLink" href="http://en.wikipedia.org/"></a></p>
18763 Multibyte character in padleft
18765 {{padleft:-Hello|7|Æ}}
18772 Multibyte character in padright
18774 {{padright:Hello-|7|Æ}}
18781 formatdate parser function
18783 {{#formatdate:2009-03-24}}
18785 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
18790 formatdate parser function, with default format
18792 {{#formatdate:2009-03-24|mdy}}
18794 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
18799 Spacing of numbers in formatted dates
18801 {{#formatdate:January 15}}
18803 <p><span class="mw-formatted-date" title="01-15">January 15</span>
18808 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
18810 language=nl title=[[MediaWiki:Common.css]]
18812 {{#formatdate:2009-03-24|dmy}}
18814 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
18827 Edit comment with link
18831 I like the [[Main Page]] a lot
18833 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
18837 Edit comment with link and link text
18841 I like the [[Main Page|best pages]] a lot
18843 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
18847 Edit comment with link and link text with suffix
18851 I like the [[Main Page|best page]]s a lot
18853 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
18857 Edit comment with section link (non-local, eg in history list)
18859 comment title=[[Main Page]]
18861 /* External links */ removed bogus entries
18863 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
18867 Edit comment with section link and text before it (non-local, eg in history list)
18869 comment title=[[Main Page]]
18871 pre-comment text /* External links */ removed bogus entries
18873 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>
18877 Edit comment with section link (local, eg in diff view)
18879 comment local title=[[Main Page]]
18881 /* External links */ removed bogus entries
18883 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
18887 Edit comment with subpage link (bug 14080)
18891 title=[[Subpage test]]
18893 Poked at a [[/subpage]] here...
18895 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
18899 Edit comment with subpage link and link text (bug 14080)
18903 title=[[Subpage test]]
18905 Poked at a [[/subpage|neat little page]] here...
18907 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
18911 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
18914 title=[[Subpage test]]
18916 Poked at a [[/subpage]] here...
18918 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
18922 Edit comment with bare anchor link (local, as on diff)
18926 title=[[Main Page]]
18930 <a href="#section">#section</a>
18934 Edit comment with bare anchor link (non-local, as on history)
18937 title=[[Main Page]]
18941 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
18945 Anchor starting with underscore
18949 <p><a href="#_ref">One</a>
18954 Id starting with underscore
18956 <div id="_ref"></div>
18958 <div id="_ref"></div>
18963 Space normalisation on autocomment (bug 22784)
18966 title=[[Main Page]]
18968 /* __hello__world__ */
18970 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
18974 percent-encoding and + signs in comments (Bug 26410)
18978 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
18980 <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>
18983 # Parsoid doesn't support this yet: see bug 73581
18984 # but it *should* omit the 'src' attribute if the image is bad.
18985 # PHP side of tests was disabled in
18986 # mediawiki/core:6bd31e7d95161a6e88fa86df60871051da997c3c
18987 # because of issues in the PHP parserTests infrastructure
18988 # (but the output below is indeed what the PHP side emits)
18990 Bad images - basic functionality
18993 !! DISABLED/html/php
18995 <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>
18999 Bad images - bug 16039: text after bad image disappears
19004 !! DISABLED/html/php
19010 <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>
19015 Verify that displaytitle works (bug #22501) no displaytitle
19019 wgAllowDisplayTitle=true
19020 wgRestrictDisplayTitle=false
19022 this is not the the title
19025 <p>this is not the the title
19030 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
19035 wgAllowDisplayTitle=true
19036 wgRestrictDisplayTitle=false
19038 this is not the the title
19039 {{DISPLAYTITLE:whatever}}
19042 <p>this is not the the title
19047 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
19052 wgAllowDisplayTitle=true
19053 wgRestrictDisplayTitle=true
19055 this is not the the title
19056 {{DISPLAYTITLE:whatever}}
19059 <p>this is not the the title
19064 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
19069 wgAllowDisplayTitle=true
19070 wgRestrictDisplayTitle=true
19072 this is not the the title
19073 {{DISPLAYTITLE:screen}}
19076 <p>this is not the the title
19081 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
19086 wgAllowDisplayTitle=false
19088 this is not the the title
19089 {{DISPLAYTITLE:screen}}
19092 <p>this is not the the title
19093 <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>
19098 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
19103 wgAllowDisplayTitle=false
19105 this is not the the title
19108 <p>this is not the the title
19113 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
19118 wgAllowDisplayTitle=true
19119 wgRestrictDisplayTitle=true
19121 this is not the the title
19122 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
19124 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
19125 <p>this is not the the title
19130 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
19135 wgAllowDisplayTitle=true
19136 wgRestrictDisplayTitle=true
19138 this is not the the title
19139 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
19141 <span style="color: red;">s</span>creen
19142 <p>this is not the the title
19147 preload: check <noinclude> and <includeonly>
19151 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
19157 preload: check <onlyinclude>
19161 Goodbye <onlyinclude>Hello world</onlyinclude>
19167 preload: can pass tags through if we want to
19171 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
19173 <includeonly>Hello world</includeonly>
19177 preload: check that it doesn't try to do tricks
19181 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
19183 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
19187 Play a bit with r67090 and bug 3158
19189 <div style="width:50% !important"> </div>
19190 <div style="width:50% !important"> </div>
19191 <div style="width:50% !important"> </div>
19192 <div style="border : solid;"> </div>
19194 <div style="width:50% !important"> </div>
19195 <div style="width:50% !important"> </div>
19196 <div style="width:50% !important"> </div>
19197 <div style="border : solid;"> </div>
19200 <div style="width:50% !important" data-parsoid='{"stx":"html"}'><span typeof="mw:Entity" data-parsoid='{"srcContent":" "}'> </span></div>
19201 <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='{"srcContent":" "}'> </span></div>
19202 <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='{"srcContent":" "}'> </span></div>
19203 <div style="border : solid;" data-parsoid='{"stx":"html"}'><span typeof="mw:Entity" data-parsoid='{"srcContent":" "}'> </span></div>
19208 HTML5 data attributes
19210 <span data-foo="bar">Baz</span>
19211 <p data-abc-def_hij="">Quuz</p>
19213 <p><span data-foo="bar">Baz</span>
19215 <p data-abc-def_hij="">Quuz</p>
19220 percent-encoding and + signs in internal links (Bug 26410)
19222 [[User:+%]] [[Page+title%]]
19223 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
19224 [[%]] [[+]] [[File:%+abc%39|foo|[[bar]]]]
19225 [[%33%45]] [[%33%45+]]
19227 <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>
19228 <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>
19229 <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>
19230 <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>
19233 <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>
19237 Special characters in embedded file links (bug 27679)
19239 [[File:Contains & ampersand.jpg]]
19240 [[File:Does not exist.jpg|Title with & ampersand]]
19242 <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>
19243 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
19246 <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>
19247 <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>
19251 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
19253 Text's been normalized?
19255 <p>Text's been normalized?
19260 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
19262 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
19264 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
19269 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
19271 [http://www.example.org/ ideograms]
19273 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
19278 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
19280 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
19282 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
19306 Bug 31098 Template which includes system messages which includes the template
19310 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
19311 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
19316 Bug31490 Turkish: ucfirst 'blah'
19327 Bug31490 Turkish: ucfirst 'ix'
19338 Bug31490 Turkish: lcfirst 'BLAH'
19349 Bug31490 Turkish: ucfırst (with a dotless i)
19355 <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>
19360 Bug31490 ucfırst (with a dotless i) with English language
19366 <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>
19371 Bug 26375: TOC with italics
19373 title=[[Main Page]]
19376 == ''Lost'' episodes ==
19378 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19380 <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>
19384 <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>
19389 Bug 26375: TOC with bold
19391 title=[[Main Page]]
19394 == '''should be bold''' then normal text ==
19396 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19398 <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>
19402 <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>
19407 Bug 33845: Headings become cursive in TOC when they contain an image
19409 title=[[Main Page]]
19412 == Image [[Image:foobar.jpg]] ==
19414 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19416 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
19420 <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>
19425 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
19427 title=[[Main Page]]
19430 == <blockquote>Quote</blockquote> ==
19432 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19434 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
19438 <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>
19442 <div id="toc" class="toc">
19443 <div id="toctitle">
19447 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
19451 <h2><span class="mw-headline" id="Quote"></span></h2>
19453 <p><span class="mw-headline" id="Quote">Quote</span></p>
19455 <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>
19459 Unclosed tags in TOC
19461 title=[[Main Page]]
19465 <small>Hanc marginis exiguitas non caperet.</small>
19468 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19470 <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>
19474 <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>
19475 <p><small>Hanc marginis exiguitas non caperet.</small>
19481 Multiple tags in TOC
19484 == <i>Foo</i> <b>Bar</b> ==
19486 == <i>Foo</i> <blockquote>Bar</blockquote> ==
19488 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19490 <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>
19491 <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>
19495 <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>
19496 <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>
19500 <div id="toc" class="toc">
19501 <div id="toctitle">
19505 <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>
19506 <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>
19510 <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>
19511 <h2><span class="mw-headline" id="Foo_Bar_2"><i>Foo</i></span></h2>
19513 <p><span class="mw-headline" id="Foo_Bar_2">Bar</span></p>
19515 <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>
19519 Tags with parameters in TOC
19522 == <sup class="in-h2">Hello</sup> ==
19524 == <sup class="a > b">Evilbye</sup> ==
19526 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19528 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
19529 <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>
19533 <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>
19534 <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>
19539 span tags with directionality in TOC
19542 == <span dir="ltr">C++</span> ==
19544 == <span dir="rtl">זבנג!</span> ==
19546 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
19548 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
19550 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
19552 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19554 <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>
19555 <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>
19556 <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>
19557 <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>
19558 <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>
19562 <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>
19563 <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>
19564 <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>
19565 <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>
19566 <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>
19571 Bug 72884: bdi element in ToC
19574 == <bdi>test</bdi> ==
19576 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19578 <li class="toclevel-1 tocsection-1"><a href="#test"><span class="tocnumber">1</span> <span class="toctext"><bdi>test</bdi></span></a></li>
19582 <h2><span class="mw-headline" id="test"><bdi>test</bdi></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: test">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19586 # Note that the html output does not have the <p></p>, but the
19587 # html+tidy output *does*. This is because the empty <p></p> is
19588 # removed by the sanitizer, but only when tidy is *not* enabled (!).
19590 Empty <p> tag in TOC, removed by Sanitizer (T92892)
19595 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
19597 <li class="toclevel-1 tocsection-1"><a href="#x"><span class="tocnumber">1</span> <span class="toctext">x</span></a></li>
19601 <h2><span class="mw-headline" id="x">x</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: x">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19605 <div id="toc" class="toc">
19606 <div id="toctitle">
19610 <li class="toclevel-1 tocsection-1"><a href="#x"><span class="tocnumber">1</span> <span class="toctext">x</span></a></li>
19614 <h2><span class="mw-headline" id="x">x</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: x">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
19620 == {{int:headline_sample}} ==
19624 Bug 32057: Title needed when expanding <h> nodes.
19626 title=[[Main Page]]
19630 <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>
19635 Strip marker in urlencode
19637 {{urlencode:x<nowiki/>y}}
19638 {{urlencode:x<nowiki/>y|wiki}}
19639 {{urlencode:x<nowiki/>y|path}}
19666 Strip marker in formatNum
19668 {{formatnum:1<nowiki/>2}}
19669 {{formatnum:1<nowiki/>2|R}}
19677 Check noCommafy in formatNum
19681 {{formatnum:123456.78}}
19682 {{formatnum:123456.78|NOSEP}}
19690 Wrong option for formatNum (bug 56199)
19692 {{formatnum:1,234.56|Random}}
19693 {{formatnum:1,234.56|EVERYTHING}}
19694 {{formatnum:1234.56|any argument that has the string 'NOSEP'}}
19703 Strip marker in grammar
19707 {{grammar:elative|foo<nowiki/>bar}}
19714 Strip marker in padleft
19716 {{padleft:|2|x<nowiki/>y}}
19723 Strip marker in padright
19725 {{padright:|2|x<nowiki/>y}}
19732 Strip marker in anchorencode
19734 {{anchorencode:x<nowiki/>y}}
19741 nowiki inside link inside heading (bug 18295)
19743 ==[[foo|x<nowiki>y</nowiki>z]]==
19745 <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>
19750 new support for bdi element (bug 31817)
19752 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
19754 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
19759 Ignore pipe between table row attributes
19763 |- id=foo | style='color: red'
19771 <tr id="foo" style="color: red">
19778 Gallery override link with WikiLink (bug 34852)
19781 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
19784 <ul class="gallery mw-gallery-traditional">
19785 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19786 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
19787 <div class="gallerytext">
19797 Gallery override link with absolute external link (bug 34852)
19800 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
19803 <ul class="gallery mw-gallery-traditional">
19804 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19805 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
19806 <div class="gallerytext">
19816 Gallery override link with malicious javascript (bug 34852)
19819 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
19822 <ul class="gallery mw-gallery-traditional">
19823 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19824 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
19825 <div class="gallerytext">
19835 Gallery with invalid title as link (bug 43964)
19838 File:foobar.jpg|link=<
19841 <ul class="gallery mw-gallery-traditional">
19842 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
19843 <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" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/240px-Foobar.jpg 2x" /></a></div></div>
19844 <div class="gallerytext">
19852 Language parser function
19861 Padleft and padright as substr
19863 {{padleft:|3|abcde}}
19864 {{padright:|3|abcde}}
19872 Special parser function
19874 {{#special:RandomPage}}
19875 {{#special:BaDtItLe}}
19876 {{#special:Foobar}}
19885 Bug 34939 - Case insensitive link parsing ([HttP://])
19887 [HttP://MediaWiki.Org/]
19889 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
19892 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/"></a></p>
19896 Bug 34939 - Case insensitive link parsing ([HttP:// title])
19898 [HttP://MediaWiki.Org/ MediaWiki]
19900 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
19905 Bug 34939 - Case insensitive link parsing (HttP://)
19907 HttP://MediaWiki.Org/
19909 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
19912 <p><a rel="mw:ExtLink" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a></p>
19930 <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>
19931 <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>
19932 <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>
19933 <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>
19934 <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>
19940 ### Parsoid-specific tests
19941 ### Parsoid-PHP parser incompatibilities
19944 1. SOL-sensitive wikitext tokens as template-args
19946 parsoid=wt2html,wt2wt
19952 <span about="#mwt1" typeof="mw:Transclusion">
19953 </span><ul about="#mwt1"><li>a</li>
19955 <span about="#mwt2" typeof="mw:Transclusion">
19956 </span><ol about="#mwt2"><li>a</li>
19958 <span about="#mwt3" typeof="mw:Transclusion">
19959 </span><dl about="#mwt3"><dd>a</dd>
19963 #### -----------------------------------------------------------------
19964 #### Parsoid-specific functionality tests
19965 #### -----------------------------------------------------------------
19967 # Bug 63642/66749: Formatting elt fixup around images is cleaned up.
19968 # We know wt2wt will fail, but we expect selser to pass.
19969 # Due to the nature of our testing, wt2wt and selser tests will enter the
19970 # blacklist and we'll catch selser regressions based on changes to the
19971 # blacklist entries for selser tests.
19973 1. Bad treebuilder fixup of formatting elt is cleaned up
19975 parsoid=wt2html,wt2wt
19980 [[Image:Foobar.jpg|right|Test]]
19987 <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>
19994 2. Bad treebuilder fixup of formatting elt is cleaned up
19996 parsoid=wt2html,wt2wt
19998 '''foo[[File:Foobar.jpg|thumb|caption]]bar'''
20000 <small>[[Image:Foobar.jpg|right|300px]]</small>
20003 <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>
20005 <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>
20008 #### ----------------------------------------------------------------
20009 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
20010 #### tags. Parsoid's output for these tags differs from that of the
20012 #### ----------------------------------------------------------------
20015 Ref: 1. ref-location should be replaced with an index span
20020 B <ref name="x">foo</ref>
20024 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
20025 B <span about="#mwt4" class="reference" id="cite_ref-x_2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-x-2"},"attrs":{"name":"x"}}'><a href="#cite_note-x-2">[2]</a></span>
20026 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>
20027 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'>
20028 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20029 <li about="#cite_note-x-2" id="cite_note-x-2"><span rel="mw:referencedBy"><a href="#cite_ref-x_2-0">↑</a></span> <span id="mw-reference-text-cite_note-x-2" class="mw-reference-text">foo</span></li>
20030 <li about="#cite_note-y-3" id="cite_note-y-3"><span rel="mw:referencedBy"><a href="#cite_ref-y_3-0">↑</a></span> <span id="mw-reference-text-cite_note-y-3" class="mw-reference-text"></span></li>
20035 Ref: 2. ref-tags with identical names should all get the same index
20039 A <ref name="x">foo</ref>
20043 <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":{"id":"mw-reference-text-cite_note-x-1"},"attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span>
20044 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>
20045 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20046 <li about="#cite_note-x-1" id="cite_note-x-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-x_1-0">1.0</a> <a href="#cite_ref-x_1-1">1.1</a></span> <span id="mw-reference-text-cite_note-x-1" class="mw-reference-text">foo</span></li>
20051 Ref: 3. spaces in ref-names should be ignored
20055 A <ref name="x">foo</ref>
20056 B <ref name=" x " />
20060 <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":{"id":"mw-reference-text-cite_note-x-1"},"attrs":{"name":"x"}}'><a href="#cite_note-x-1">[1]</a></span>
20061 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>
20062 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>
20063 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'>
20064 <li about="#cite_note-x-1" id="cite_note-x-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-x_1-0">1.0</a> <a href="#cite_ref-x_1-1">1.1</a> <a href="#cite_ref-x_1-2">1.2</a></span> <span id="mw-reference-text-cite_note-x-1" class="mw-reference-text">foo</span></li>
20068 # NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
20070 Ref: 4. 'constructor' should be accepted as a valid ref-name
20074 A <ref name="constructor">foo</ref>
20077 <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":{"id":"mw-reference-text-cite_note-constructor-1"},"attrs":{"name":"constructor"}}'><a href="#cite_note-constructor-1">[1]</a></span></p>
20078 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20079 <li about="#cite_note-constructor-1" id="cite_note-constructor-1"><span rel="mw:referencedBy"><a href="#cite_ref-constructor_1-0">↑</a></span> <span id="mw-reference-text-cite_note-constructor-1" class="mw-reference-text">foo</span></li>
20084 Ref: 5. body should accept generic wikitext
20089 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
20094 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20096 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
20097 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">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>
20103 Ref: 6. indent-pres should not be output in ref-body
20115 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20117 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20118 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo
20126 Ref: 7. No p-wrapping in ref-body
20145 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20147 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20148 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo
20163 Ref: 8. transclusion wikitext has lower precedence
20167 A <ref> foo {{echo|</ref> B C}}
20171 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
20172 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20173 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo <span typeof="mw:Nowiki" data-parsoid='{"src":"{{","dsr":[12,14,0,0]}'>{{</span>echo|</span></li>
20178 Ref: 9. unclosed comments should not leak out of ref-body
20182 A <ref> foo <!--</ref> B C
20185 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C</p>
20186 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20187 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo <!----></span></li>
20192 Ref: 10. Unclosed HTML tags should not leak out of ref-body
20196 A <ref> <b> foo </ref> B C
20200 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B C</p>
20203 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20204 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text"><b data-parsoid='{"stx":"html","autoInsertedEnd":true}'> foo </b></span></li>
20209 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
20217 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B
20218 C <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{}}'><a href="#cite_note-2">[2]</a></span> D</p>
20219 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20220 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20221 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar</span></li>
20226 Ref: 12. ref-tags act as trailing newline migration barrier
20230 <!--the newline at the end of this line moves out of the p-tag-->a
20232 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
20238 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
20241 <p>b<!--the newline at the end of this line stays inside the p-tag--> <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{}}'><a href="#cite_note-1">[1]</a></span>
20242 <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{}}'><a href="#cite_note-2">[2]</a></span></p>
20245 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20246 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text"></span></li>
20247 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text"></span></li></ol>
20251 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
20260 <p><span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> A
20261 <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{}}'><a href="#cite_note-2">[2]</a></span> B</p>
20262 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20263 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20264 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar
20270 Ref: 14. A nested ref-tag should be emitted as plain text
20274 <ref>foo <ref>bar</ref> baz</ref>
20278 <p><span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
20280 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
20281 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo <ref>bar</ref> baz</span></li>
20286 Ref: 15. ref-tags with identical names should get identical indexes
20290 A1 <ref name="a">foo</ref> A2 <ref name="a" />
20291 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
20295 <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":{"id":"mw-reference-text-cite_note-a-1"},"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>
20296 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":{"id":"mw-reference-text-cite_note-b-2"},"attrs":{"name":"b"}}'><a href="#cite_note-b-2">[2]</a></span></p>
20298 <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> <span id="mw-reference-text-cite_note-a-1" class="mw-reference-text">foo</span></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> <span id="mw-reference-text-cite_note-b-2" class="mw-reference-text">bar</span></li>
20302 ## We don't bother wt2wt-ing non-standard whitespace
20304 Ref: 16. Tokenizer should accept non-standard whitespace in <ref> and </ref> tags
20312 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20313 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20314 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li></ol>
20318 Ref: 17. Generate valid HTML5 id/about attributes
20322 <ref name="a b">foo</ref>
20326 <p><span class="reference" id="cite_ref-a_b_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-a_b-1"},"attrs":{"name":"a b"}}'><a href="#cite_note-a_b-1">[1]</a></span>
20329 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20330 <li about="#cite_note-a_b-1" id="cite_note-a_b-1"><span rel="mw:referencedBy"><a href="#cite_ref-a_b_1-0">↑</a></span> <span id="mw-reference-text-cite_note-a_b-1" class="mw-reference-text">foo</span></li>
20335 Ref: 18. T58916: Extension attributes should be parsed as plain text
20339 <ref name="{{echo|a}}">foo</ref>
20343 <p><span class="reference" id="cite_ref-.7B.7Becho.7Ca.7D.7D_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-.7B.7Becho.7Ca.7D.7D-1"},"attrs":{"name":"{{echo|a}}"}}'><a href="#cite_note-.7B.7Becho.7Ca.7D.7D-1">[1]</a></span>
20346 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20347 <li about="#cite_note-.7B.7Becho.7Ca.7D.7D-1" id="cite_note-.7B.7Becho.7Ca.7D.7D-1"><span rel="mw:referencedBy"><a href="#cite_ref-.7B.7Becho.7Ca.7D.7D_1-0">↑</a></span> <span id="mw-reference-text-cite_note-.7B.7Becho.7Ca.7D.7D-1" class="mw-reference-text">foo</span></li>
20352 Ref: 19. ref-tags with identical name encodings should get identical indexes
20356 1 <ref name="a & b">foo</ref> 2 <ref name="a & b" />
20360 <p>1 <span about="#mwt3" class="reference" id="cite_ref-a_.26_b_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-a_.26_b-1"},"attrs":{"name":"a & b"}}'><a href="#cite_note-a_.26_b-1">[1]</a></span> 2 <span about="#mwt4" class="reference" id="cite_ref-a_.26_b_1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"a &amp; b"}}'><a href="#cite_note-a_.26_b-1">[1]</a></span>
20362 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20363 <li about="#cite_note-a_.26_b-1" id="cite_note-a_.26_b-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-a_.26_b_1-0">1.0</a> <a href="#cite_ref-a_.26_b_1-1">1.1</a></span> <span id="mw-reference-text-cite_note-a_.26_b-1" class="mw-reference-text">foo</span></li>
20368 Ref: 20. ref-tags with identical names but different content should keep it
20372 A <ref name="foo">Foo one</ref>
20373 B <ref name="foo">Foo two</ref>
20374 C <ref name="foo" />
20378 <p>A <span about="#mwt2" class="reference" id="cite_ref-foo_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-foo-1"},"attrs":{"name":"foo"}}'><a href="#cite_note-foo-1">[1]</a></span>
20379 B <span about="#mwt4" class="reference" id="cite_ref-foo_1-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"html":"Foo two"},"attrs":{"name":"foo"}}'><a href="#cite_note-foo-1">[1]</a></span>
20380 C <span about="#mwt6" class="reference" id="cite_ref-foo_1-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","attrs":{"name":"foo"}}'><a href="#cite_note-foo-1">[1]</a></span></p>
20382 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-foo-1" id="cite_note-foo-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-foo_1-0">1.0</a> <a href="#cite_ref-foo_1-1">1.1</a> <a href="#cite_ref-foo_1-2">1.2</a></span> <span id="mw-reference-text-cite_note-foo-1" class="mw-reference-text">Foo one</span></li>
20387 References: 1. references tag without any refs should be handled properly
20393 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
20397 References: 2. references tag with group only outputs references from that group
20401 A <ref group="a">foo</ref>
20402 B <ref group="b">bar</ref>
20405 <references group="a" />
20407 <references group="b" />
20409 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{"group":"a"}}'><a href="#cite_note-1">[a 1]</a></span>
20410 B <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{"group":"b"}}'><a href="#cite_note-2">[b 1]</a></span>
20411 C <span class="reference" id="cite_ref-3" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-3"},"attrs":{}}'><a href="#cite_note-3">[1]</a></span></p>
20413 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{"group":"a"}}'>
20414 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20416 <ol class="references" typeof="mw:Extension/references" about="#mwt10" data-mw='{"name":"references","attrs":{}}'>
20417 <li about="#cite_note-3" id="cite_note-3"><span rel="mw:referencedBy"><a href="#cite_ref-3">↑</a></span> <span id="mw-reference-text-cite_note-3" class="mw-reference-text">baz</span></li>
20419 <ol class="references" typeof="mw:Extension/references" about="#mwt12" data-mw='{"name":"references","attrs":{"group":"b"}}'>
20420 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar</span></li>
20425 References: 3. ref list should be cleared after processing references
20437 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20439 <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">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20442 <p>B <span about="#mwt6" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{}}'><a href="#cite_note-2">[1]</a></span></p>
20444 <ol class="references" typeof="mw:Extension/references" about="#mwt8" data-mw='{"name":"references","attrs":{}}'>
20445 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar</span></li>
20450 References: 4. only referenced group should be cleared after processing references
20454 A <ref group="a">afoo</ref>
20457 <references group="a" />
20463 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{"group":"a"}}'><a href="#cite_note-1">[a 1]</a></span>
20464 B <span about="#mwt4" class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{}}'><a href="#cite_note-2">[1]</a></span></p>
20466 <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">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">afoo</span></li>
20469 <p>C <span about="#mwt8" class="reference" id="cite_ref-3" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-3"},"attrs":{}}'><a href="#cite_note-3">[2]</a></span></p>
20471 <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">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bfoo</span></li><li about="#cite_note-3" id="cite_note-3"><span rel="mw:referencedBy"><a href="#cite_ref-3">↑</a></span> <span id="mw-reference-text-cite_note-3" class="mw-reference-text">cfoo</span></li>
20476 References: 5. ref tags in references should be processed while ignoring all other content
20481 B <ref name="b">bar</ref>
20484 <ref name="a">foo</ref>
20485 This should just get lost.
20488 <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>
20489 B <span about="#mwt4" class="reference" id="cite_ref-b_2-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-b-2"},"attrs":{"name":"b"}}'><a href="#cite_note-b-2">[2]</a></span></p>
20492 <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='{\"dsr\":[59,82,14,6]}' data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-a-1\"},\"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> <span id="mw-reference-text-cite_note-a-1" class="mw-reference-text">foo</span></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> <span id="mw-reference-text-cite_note-b-2" class="mw-reference-text">bar</span></li>
20497 References: 6. <references /> from a transclusion
20501 <ref>Foo</ref> {{echo|<references />}}
20503 <p><span about="#mwt3" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"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">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">Foo</span></li>
20508 References: 7. Multiple references tags (one without and one with nested refs) should be correctly handled
20512 A <ref>foo bar for a</ref>
20513 B <ref group="X" name="b" />
20517 <references group="X">
20518 <ref name="b">foo</ref>
20521 <p>A <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
20522 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>
20525 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{}}'>
20526 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo bar for a</span></li>
20529 <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='{\"dsr\":[96,119,14,6]}' data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-b-2\"},\"attrs\":{\"name\":\"b\"}}'><a href=\"#cite_note-b-2\">[X 1]</a></span>\n"},"attrs":{"group":"X"}}'>
20530 <li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b_2-0">↑</a></span> <span id="mw-reference-text-cite_note-b-2" class="mw-reference-text">foo</span></li>
20535 References: 8. T88019: Remove <meta>s from templates inside <ref> that's itself inside a template
20539 X{{echo|<ref>foo {{echo|<b>bar</b>}} and {{echo|baz}} boo</ref>}}
20542 <p>X<span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Transclusion mw:Extension/ref" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<ref>foo {{echo|<b>bar</b>}} and {{echo|baz}} boo</ref>"}},"i":0}}]}'><a href="#cite_note-1">[1]</a></span></p>
20543 <ol class="references" typeof="mw:Extension/references" about="#mwt7" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo <b data-parsoid='{"stx":"html"}'>bar</b> and baz boo</span></li>
20547 # This test only works in wt2html now as the <references /> are always generated
20548 # unless selser is active. Once T72722 is fixed, we should add a changes test
20549 # here to ensure that unrelated changes don't add the new <references /> in
20552 References: 9. Generate missing references list at the end
20557 B <ref group="inexistent">bar</ref>
20559 <p>A <span class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span> B <span class="reference" id="cite_ref-2" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-2"},"attrs":{"group":"inexistent"}}'><a href="#cite_note-2">[inexistent 1]</a></span></p>
20560 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
20561 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li>
20563 <ol class="references" typeof="mw:Extension/references" about="#mwt6" data-mw='{"name":"references","attrs":{"group":"inexistent"}}'>
20564 <li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2">↑</a></span> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">bar</span></li>
20569 Entities in ref name
20573 <ref name="test & me">hi</ref>
20576 <p><span about="#mwt2" class="reference" id="cite_ref-test_.26_me_1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-test_.26_me-1"},"attrs":{"name":"test &amp; me"}}'><a href="#cite_note-test_.26_me-1">[1]</a></span></p>
20577 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20578 <li about="#cite_note-test_.26_me-1" id="cite_note-test_.26_me-1"><span rel="mw:referencedBy"><a href="#cite_ref-test_.26_me_1-0">↑</a></span> <span id="mw-reference-text-cite_note-test_.26_me-1" class="mw-reference-text">hi</span></li>
20582 # This test is wt2html only because we're permitting the serializer to produce
20583 # dirty diffs, normalizing the unclosed references to the self-closed version.
20585 Generate references for unclosed references tag
20593 <p>a<span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
20594 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
20595 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">foo</span></li></ol>
20599 New reference serializes on its own line
20601 parsoid=wt2wt,html2wt
20606 foo<ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
20609 #### ----------------------------------------------------------------
20610 #### Parsoid-only testing of Parsoid's impl of LST
20611 #### Not implemented yet, see
20612 #### https://www.mediawiki.org/wiki/Parsoid/HTML_based_LST
20613 #### ----------------------------------------------------------------
20616 LST Sections: 1. Simple section start and end
20618 <section begin="2011-05-16" />
20619 <section end="2014-04-10 (MW 1.23wmf22)" />
20621 <p><meta typeof="mw:Extension/LabeledSectionTransclusion/begin" content="2011-05-16"/>
20622 <meta typeof="mw:Extension/LabeledSectionTransclusion/end" content="2014-04-10 (MW 1.23wmf22)"/></p>
20625 #--------- Test stripping of empty nodes in template content ----------
20627 Empty LI and TR nodes should be stripped from template content
20632 <ul about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyLITest","href":"./Template:EmptyLITest"},"params":{},"i":0}}]}'>
20636 <table about="#mwt2" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyTRTest","href":"./Template:EmptyTRTest"},"params":{},"i":0}}]}'>
20649 Empty LI and TR nodes should not be stripped from top-level content
20676 Empty TR nodes should not be stripped if they have any attributes set
20678 {{EmptyTRWithHTMLAttrTest}}
20680 <table about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"EmptyTRWithHTMLAttrTest","href":"./Template:EmptyTRWithHTMLAttrTest"},"params":{},"i":0}}]}'>
20681 <tr align="center"></tr>
20682 <tr><td>foo</td></tr>
20683 <tr align="center"></tr>
20684 <tr><td>bar</td></tr>
20688 #### ----------------------------------------------------------------
20689 #### The following section of tests are primarily to test
20690 #### wikitext escaping capabilities of Parsoid. Given that
20691 #### escaping can be done any number of ways, the wikitext (input)
20692 #### is always adjusted to reflect how Parsoid adds nowiki
20695 #### We are marking several tests as parsoid-only since the
20696 #### HTML in the result section is different from what the
20697 #### PHP parser generates for it.
20698 #### ----------------------------------------------------------------
20701 #### --------------- Headings ---------------
20703 #### 1. Nested inside html <h1>=foo=</h1>
20704 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
20705 #### 3. Nested inside html with wikitext split by html tags
20706 #### 4. No escape needed
20707 #### 5. Empty headings <h1></h1>
20708 #### 6. Heading chars in SOL context
20709 #### ----------------------------------------
20711 Headings: 0. Unnested
20715 <nowiki>=foo=</nowiki>
20717 <nowiki> =foo= </nowiki>
20719 <nowiki>=foo=</nowiki>
20721 =foo''a''<nowiki>=</nowiki>
20723 <p><span typeof="mw:Nowiki">=foo=</span></p>
20725 <p><span typeof="mw:Nowiki"> =foo= </span>
20727 <span typeof="mw:Nowiki">=foo=</span></p>
20729 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
20732 # New headings and existing headings are handled differently
20734 Headings: 1. Nested inside html
20742 <h1 data-parsoid=''>=foo=</h1>
20743 <h2 data-parsoid=''>=foo=</h2>
20744 <h3 data-parsoid=''>=foo=</h3>
20745 <h4 data-parsoid=''>=foo=</h4>
20746 <h5 data-parsoid=''>=foo=</h5>
20747 <h6 data-parsoid=''>=foo=</h6>
20755 =<nowiki>=foo=</nowiki>=
20756 ==<nowiki>=foo=</nowiki>==
20757 ===<nowiki>=foo=</nowiki>===
20758 ====<nowiki>=foo=</nowiki>====
20759 =====<nowiki>=foo=</nowiki>=====
20760 ======<nowiki>=foo=</nowiki>======
20765 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
20774 <nowiki>*</nowiki>bar
20780 <nowiki>=bar=</nowiki>
20784 Headings: 3. Nested inside html with wikitext split by html tags
20786 parsoid=html2wt,wt2wt
20788 = ='''bold'''<nowiki>foo=</nowiki> =
20790 <h1>=<b>bold</b>foo=</h1>
20794 Headings: 4a. No escaping needed (testing just h1 and h2)
20819 <h1><i>=</i>foo=</h1>
20823 Headings: 4b. No escaping needed (inside p-tags)
20838 Headings: 5. Empty headings
20850 =====<nowiki/>=====
20852 ======<nowiki/>======
20863 Headings: 6a. Heading chars in SOL context (with trailing spaces)
20867 <nowiki>=a=</nowiki>
20869 <nowiki>=a=</nowiki>
20871 <nowiki>=a=</nowiki>
20873 <nowiki>=a=</nowiki>
20882 Headings: 6b. Heading chars in SOL context (with trailing newlines)
20910 Headings: 6c. Heading chars in SOL context (leading newline break)
20915 <nowiki>=b=</nowiki>
20922 Headings: 6d. Heading chars in SOL context (with interspersed comments)
20926 <!--c0--><nowiki>=a=</nowiki>
20928 <!--c1--><nowiki>=a=</nowiki> <!--c2--> <!--c3-->
20930 <p><!--c0-->=a=</p>
20931 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
20935 Headings: 6d. Heading chars in SOL context (No escaping needed)
20945 Headings: 7. Insert a newline between new content and headings
20951 <h2 data-parsoid='{"dsr":[0,5,2,2]}'>A</h2>
20952 <p data-parsoid='{"dsr":[6,7,0,0]}'>a</p>
20962 #### --------------- Lists ---------------
20963 #### 0. Outside nests (*foo, etc.)
20964 #### 1. Nested inside html <ul><li>*foo</li></ul>
20965 #### 2. Inside definition lists
20966 #### 3. Only bullets at start should be escaped
20967 #### 4. No escapes needed
20968 #### 5. No unnecessary escapes
20969 #### 6. Escape bullets in SOL position
20970 #### 7. Escape bullets in a multi-line context
20971 #### ----------------------------------------
20974 Lists: 0. Outside nests
20976 <nowiki>*</nowiki>foo
20978 <nowiki>#</nowiki>foo
20980 <nowiki>;Foo:</nowiki>bar
20989 Lists: 1. Nested inside html
20991 *<nowiki>*foo</nowiki>
20993 *<nowiki>#foo</nowiki>
20995 *<nowiki>:foo</nowiki>
20997 *<nowiki>;foo</nowiki>
20999 #<nowiki>*foo</nowiki>
21001 #<nowiki>#foo</nowiki>
21003 #<nowiki>:foo</nowiki>
21005 #<nowiki>;foo</nowiki>
21007 <ul><li>*foo</li></ul>
21008 <ul><li>#foo</li></ul>
21009 <ul><li>:foo</li></ul>
21010 <ul><li>;foo</li></ul>
21011 <ol><li>*foo</li></ol>
21012 <ol><li>#foo</li></ol>
21013 <ol><li>:foo</li></ol>
21014 <ol><li>;foo</li></ol>
21019 Lists: 2. Inside definition lists
21021 ;<nowiki>;foo</nowiki>
21023 ;<nowiki>:foo</nowiki>
21025 ;<nowiki>:foo</nowiki>
21028 :<nowiki>:foo</nowiki>
21030 <dl><dt>;foo</dt></dl>
21031 <dl><dt>:foo</dt></dl>
21034 <dl><dd>:foo</dd></dl>
21039 Lists: 3. Only bullets at start of text should be escaped
21041 *<nowiki>*foo*bar</nowiki>
21043 *<nowiki>*foo</nowiki>''it''*bar
21045 <ul><li>*foo*bar</li></ul>
21046 <ul><li>*foo<i>it</i>*bar</li></ul>
21051 Lists: 4. No escapes needed
21072 <li><a rel="mw:WikiLink" href="Foo" title="Foo">Foo</a>: bar
21076 <li><a rel="mw:WikiLink" href="Foo" title="Foo">Foo</a>*bar
21082 Lists: 5. No unnecessary escapes
21084 * bar <span><nowiki>[[foo]]</nowiki></span>
21086 * =bar <span><nowiki>[[foo]]</nowiki></span>
21088 * [[bar <span><nowiki>[[foo]]</nowiki></span>
21090 * ]]bar <span><nowiki>[[foo]]</nowiki></span>
21092 * =bar <span>foo]]</span>=
21098 <ul><li> bar <span>[[foo]]</span></li></ul>
21099 <ul><li> =bar <span>[[foo]]</span></li></ul>
21100 <ul><li> [[bar <span>[[foo]]</span></li></ul>
21101 <ul><li> ]]bar <span>[[foo]]</span></li></ul>
21102 <ul><li> =bar <span>foo]]</span>=</li></ul>
21103 <ul><li> <s></s>: a</li></ul>
21104 <ul><li> <i>* foo</i></li></ul>
21109 Lists: 6. Escape bullets in SOL position
21113 <p><!--cmt-->*foo</p>
21115 <!--cmt--><nowiki>*</nowiki>foo
21119 Lists: 7. Escape bullets in a multi-line context
21122 <nowiki>*</nowiki>b
21130 Lists: 8. Escape colons only if not present in tags
21134 <dl><dt>a:b<i>c:d</i></dt></dl>
21136 ; <nowiki>a:b</nowiki>''c:d''
21139 #### --------------- HRs ---------------
21140 #### 1. Single line
21141 #### -----------------------------------
21144 HRs: 1. Single line
21146 ----<nowiki>----</nowiki>
21158 #### --------------- Tables ---------------
21159 #### 1a. Simple example
21160 #### 1b. No escaping needed (!foo)
21161 #### 1c. No escaping needed (|foo)
21162 #### 1d. No escaping needed (|}foo)
21164 #### 2a. Nested in td (<td>foo|bar</td>)
21165 #### 2b. Nested in td (<td>foo||bar</td>)
21166 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
21168 #### 3a. Nested in th (<th>foo!bar</th>)
21169 #### 3b. Nested in th (<th>foo!!bar</th>)
21170 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
21174 #### 4c. No escaping needed
21175 #### --------------------------------------
21178 Tables: 1a. Simple example
21189 Tables: 1b. No escaping needed
21198 Tables: 1c. No escaping needed
21207 Tables: 1d. No escaping needed
21216 Tables: 2a. Nested in td
21221 <td>foo|bar</td></tr>
21222 <tr><td>x<div>a|b</div></td>
21226 |<nowiki>foo|bar</nowiki>
21228 |x<div><nowiki>a|b</nowiki></div>
21244 Tables: 2b. Nested in td
21250 <td>a<i>b||c</i></td>
21251 <td>a<i><div>b||c</div></i></td>
21252 </tr></tbody></table>
21255 |<nowiki>foo||bar</nowiki>
21256 |a''<nowiki>b||c</nowiki>''
21257 |a''<div><nowiki>b||c</nowiki></div>''
21266 <td>a<i><div>b||c</div></i>
21272 Tables: 2c. Nested in td -- no escaping needed
21288 Tables: 3a. Nested in th
21304 Tables: 3b. Nested in th
21309 <tr><th>foo!!bar</th>
21310 <th><i>foo|bar</i></th>
21311 <th><i>foo!!bar</i></th>
21312 <th><i><span>foo!!bar</span></i></th>
21313 </tr></tbody></table>
21316 !<nowiki>foo!!bar</nowiki>
21317 !''<nowiki>foo|bar</nowiki>''
21318 !''<nowiki>foo!!bar</nowiki>''
21319 !''<span><nowiki>foo!!bar</nowiki></span>''
21328 <th><i>foo!!bar</i>
21330 <th><i><span>foo!!bar</span></i>
21336 Tables: 3c. Nested in th
21341 <tr><th>foo||bar</th>
21342 <th><span typeof="mw:Nowiki">foo||bar</span></th>
21343 </tr></tbody></table>
21346 !<nowiki>foo||bar</nowiki>
21347 !<nowiki>foo||bar</nowiki>
21360 Tables: 4a. Escape -
21379 |<nowiki>-bar</nowiki>
21384 Tables: 4b. Escape +
21403 |<nowiki>+bar</nowiki>
21408 Tables: 4c. No escaping needed
21451 <tr><td>foo-bar</td><td>foo+bar</td></tr>
21452 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
21458 <div>a|b</div></td>
21463 Tables: 4d. No escaping needed
21473 <td><a href="/wiki/Foo" title="Foo">Foo</a>-bar
21482 <tbody><tr><td><a rel="mw:WikiLink" href="./Foo" title="Foo">Foo</a>-bar</td>
21483 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>+1</td>
21484 <td data-parsoid='{"startTagSrc":"|","attrSepSrc":"|"}'>-2</td></tr>
21489 Tables: Digest broken attributes on table and tr tag
21505 #### --------------- Links ----------------
21506 #### 1. Quote marks in link text
21507 #### 2. Wikilinks: Escapes needed
21508 #### 3. Wikilinks: No escapes needed
21509 #### 4. Extlinks: Escapes needed
21510 #### 5. Extlinks: No escapes needed
21511 #### --------------------------------------
21513 Links 1. WikiLinks: No escapes needed
21517 [[Foo|x [Foobar] x]]
21519 <p><a href="/wiki/Foo" title="Foo">Foo<i>boo</i></a>
21520 <a href="/wiki/Foo" title="Foo">[Foobar]</a>
21521 <a href="/wiki/Foo" title="Foo">x [Foobar] x</a>
21524 <p><a rel="mw:WikiLink" href="Foo" title="Foo">Foo<i>boo</i></a>
21525 <a rel="mw:WikiLink" href="Foo" title="Foo">[Foobar]</a>
21526 <a rel="mw:WikiLink" href="Foo" title="Foo">x [Foobar] x</a></p>
21530 Links 2. WikiLinks: Escapes needed
21534 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
21535 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
21536 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
21537 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
21538 <a href="Foo" rel="mw:WikiLink">|Bar</a>
21539 <a href="Foo" rel="mw:WikiLink">]]bar</a>
21540 <a href="Foo" rel="mw:WikiLink">[[bar</a>
21541 <a href="Foo" rel="mw:WikiLink">x [[ y</a>
21542 <a href="Foo" rel="mw:WikiLink">x ]] y</a>
21543 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
21545 [[Foo|<nowiki>Foobar]</nowiki>]]
21546 [[Foo|x <nowiki>[http://google.com g]</nowiki> x]]
21547 [[Foo|<nowiki>[[Bar]]</nowiki>]]
21548 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
21549 [[Foo|<nowiki>|Bar</nowiki>]]
21550 [[Foo|<nowiki>]]bar</nowiki>]]
21551 [[Foo|<nowiki>[[bar</nowiki>]]
21552 [[Foo|<nowiki>x [[ y</nowiki>]]
21553 [[Foo|<nowiki>x ]] y</nowiki>]]
21554 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
21556 <p><a href="/wiki/Foo" title="Foo">Foobar]</a>
21557 <a href="/wiki/Foo" title="Foo">x [http://google.com g] x</a>
21558 <a href="/wiki/Foo" title="Foo">[[Bar]]</a>
21559 <a href="/wiki/Foo" title="Foo">x [[Bar]] x</a>
21560 <a href="/wiki/Foo" title="Foo">|Bar</a>
21561 <a href="/wiki/Foo" title="Foo">]]bar</a>
21562 <a href="/wiki/Foo" title="Foo">[[bar</a>
21563 <a href="/wiki/Foo" title="Foo">x [[ y</a>
21564 <a href="/wiki/Foo" title="Foo">x ]] y</a>
21565 <a href="/wiki/Foo" title="Foo">x ]] y [[ z</a>
21570 Links 3. WikiLinks: No escapes needed
21575 <p><a href="/wiki/Foo" title="Foo">[Foobar</a>
21576 <a href="/wiki/Foo" title="Foo">foo|bar</a>
21579 <p><a rel="mw:WikiLink" href="Foo">[Foobar</a>
21580 <a rel="mw:WikiLink" href="Foo" title="Foo">foo|bar</a></p>
21584 Links 4. ExtLinks: Escapes needed
21588 <p><a rel="mw:ExtLink" href="http://google.com">[google]</a>
21589 <a rel="mw:ExtLink" href="http://google.com">google]</a></p>
21590 <p>[http://google.com]</p>
21591 <p>[http://google.com google]</p>
21593 [http://google.com <nowiki>[google]</nowiki>]
21594 [http://google.com <nowiki>google]</nowiki>]
21596 <nowiki>[http://google.com]</nowiki>
21598 <nowiki>[http://google.com google]</nowiki>
21601 <p><a rel="nofollow" class="external text" href="http://google.com">[google]</a>
21602 <a rel="nofollow" class="external text" href="http://google.com">google]</a>
21603 </p><p>[http://google.com]
21604 </p><p>[http://google.com google]
21609 Links 5. ExtLinks: No escapes needed
21611 [http://google.com [google]
21613 <p><a rel="nofollow" class="external text" href="http://google.com">[google</a>
21616 <p><a rel="mw:ExtLink" href="http://google.com">[google</a></p>
21620 Links 6. Add <nowiki/>s between text-nodes and url-links when required (bug 64300)
21622 <p>x<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>y
21623 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>?x
21624 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>&x
21625 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>'x
21626 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,x
21627 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.x
21628 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
21629 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>:x
21630 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>;x
21631 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>!x
21632 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>=x
21633 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>(x)
21634 <a rel="mw:ExtLink" href="http://example.com(x" data-parsoid='{"stx":"url"}'>http://example.com(x</a>)
21637 x<nowiki/>http://example.com<nowiki/>y
21638 http://example.com<nowiki/>?x
21639 http://example.com<nowiki/>&x
21640 http://example.com<nowiki/>'x
21641 http://example.com<nowiki/>,x
21642 http://example.com<nowiki/>.x
21643 http://example.com<nowiki/>;x
21644 http://example.com<nowiki/>:x
21645 http://example.com<nowiki/>;x
21646 http://example.com<nowiki/>!x
21647 http://example.com<nowiki/>=x
21648 http://example.com<nowiki/>(x)
21649 http://example.com(x<nowiki/>)
21653 Links 7a. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
21656 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>
21658 "<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>"
21659 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>)
21660 (<a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>) foo
21661 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>,
21662 <a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>, foo
21668 "http://example.com"
21669 (http://example.com)
21670 (http://example.com) foo
21671 http://example.com,
21672 http://example.com, foo
21675 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
21677 "<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>"
21678 (<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>)
21679 (<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>) foo
21680 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>,
21681 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>, foo
21686 Links 7b. Don't add spurious <nowiki/>s between text-nodes and url-links (bug 64300)
21688 <p><a rel="mw:ExtLink" href="http://example.com" data-parsoid='{"stx":"url"}'>http://example.com</a>.,;:!?\
21689 -<a rel="mw:ExtLink" href="http://example.com">http://example.com</a>:</p>
21691 http://example.com.,;:!?\
21692 -http://example.com:
21694 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>.,;:!?\
21695 -<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>:
21700 Links 8. Add <nowiki/>s between text-nodes and RFC-links when required (bug 64300)
21702 <p><a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>4
21703 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y
21704 X<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>y</p>
21708 X<nowiki/>RFC 123<nowiki/>y
21712 Links 9. Don't add spurious <nowiki/>s between text-nodes and RFC-links (bug 64300)
21714 <p><a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>?foo
21715 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>&foo
21716 -<a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>RFC 123</a>-
21723 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc123">RFC 123</a>?foo
21724 <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc123">RFC 123</a>&foo
21725 -<a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc123">RFC 123</a>-
21730 Links 10. Add <nowiki/>s between text-nodes and PMID-links when required (bug 64300)
21732 <p><a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>4
21733 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
21734 X<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>y
21738 X<nowiki/>PMID 123<nowiki/>y
21742 Links 11. Don't add spurious <nowiki/>s between text-nodes and PMID-links (bug 64300)
21744 <p><a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>?foo
21745 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>&foo
21746 -<a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>PMID 123</a>-
21753 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract">PMID 123</a>?foo
21754 <a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract">PMID 123</a>&foo
21755 -<a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract">PMID 123</a>-
21760 Links 12. Add <nowiki/>s between text-nodes and ISBN-links when required (bug 64300)
21762 <p><a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>1
21763 <a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>x
21764 a<a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>b
21767 ISBN 1234567890<nowiki/>1
21768 ISBN 1234567890<nowiki/>x
21769 a<nowiki/>ISBN 1234567890<nowiki/>b
21773 Links 13. Don't add spurious <nowiki/>s between text-nodes and ISBN-links (bug 64300)
21775 <p>-<a href="./Special:BookSources/1234567890" rel="mw:ExtLink" data-parsoid='{"stx":"magiclink"}'>ISBN 1234567890</a>'s
21779 <p>-<a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>'s
21784 Links 14. Protect link-like plain text. (Parsoid bug T78425)
21788 <p>this is not a link: http://example.com
21791 this is not a link: <nowiki>http://example.com</nowiki>
21795 Links 15. Link trails can't become link prefixes.
21799 [[Söfnuður]]-[[00]]
21801 <p><a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">Söfnuður-</a><a href="/wiki/00" title="00">00</a>
21804 <p><a rel="mw:WikiLink" href="Söfnuður" title="Söfnuður" data-parsoid='{"stx":"simple","tail":"-"}'>Söfnuður-</a><a rel="mw:WikiLink" href="00" title="00">00</a></p>
21807 #### --------------- Quotes ---------------
21808 #### 1. Quotes inside <b> and <i>
21809 #### 2. Link fragments separated by <i> and <b> tags
21810 #### 3. Link fragments inside <i> and <b>
21811 #### 4. No escaping needed
21812 #### --------------------------------------
21814 1a. Quotes inside <b> and <i>
21816 parsoid=html2wt,wt2wt
21819 ''<nowiki>''foo''</nowiki>''
21820 ''<nowiki>'''foo'''</nowiki>''
21822 '''<nowiki/>'foo''''
21823 '''<nowiki>''foo''</nowiki>'''
21824 '''<nowiki>'''foo'''</nowiki>'''
21825 '''foo'<nowiki/>''bar'<nowiki/>''baz'''
21826 '''foo'''<nowiki/>'s
21832 '''foo'''<nowiki/>'
21833 ''''foo'''<nowiki/>'
21834 ''fools'<span> errand</span>''
21835 ''<span>fool</span>'s errand''
21836 '<nowiki/>''foo'' bar '''baz''
21837 a|!*#-:;+-~[]{}b'''x''
21846 <b>foo'<i>bar'</i>baz</b>
21855 <i>fools'<span> errand</span></i>
21856 <i><span>fool</span>'s errand</i>
21857 '<i>foo</i> bar '<i>baz</i>
21858 a|!*#-:;+-~[]{}b'<i>x</i>
21863 1b. Quotes inside <b> and <i> with other tags on same line
21865 parsoid=html2wt,wt2wt
21867 '''a'' foo ''[[bar]]''
21868 ''a''' foo ''[[bar]]''
21869 ''a''' foo '''{{echo|[[bar]]}}'''
21870 [[foo]] x'''[[bar]]''
21871 '''foo'' <ref>test</ref>
21872 '''foo'' <div title="name">test</div>
21873 '''foo'' and <br> bar
21876 '<i>a</i> foo <i><a rel="mw:WikiLink" href="Bar" title="Bar">bar</a></i>
21877 <i>a'</i> foo <i><a rel="mw:WikiLink" href="Bar" title="Bar">bar</a></i>
21878 <i>a'</i> foo <b><a rel="mw:WikiLink" href="Bar" title="Bar" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[[bar]]"}},"i":0}}]}'>bar</a></b>
21879 <a rel="mw:WikiLink" href="Foo" title="Foo">foo</a> x'<i><a href="Bar" rel="mw:WikiLink" title="Bar">bar</a></i>
21880 '<i>foo</i> <span class="reference" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span>
21881 '<i>foo</i> <div title="name">test</div>
21882 '<i>foo</i> and <br data-parsoid='{"stx":"html","noClose":true}'/> bar
21883 <ol class="references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'>
21884 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text" data-parsoid="{}">test</span></li>
21889 2. Link fragments separated by <i> and <b> tags
21891 [[''foo''<nowiki>hello]]</nowiki>
21893 [['''foo'''<nowiki>hello]]</nowiki>
21895 <p>[[<i>foo</i>hello]]
21896 </p><p>[[<b>foo</b>hello]]
21900 # FIXME: Escaping one or both of [[ and ]] is also acceptable --
21901 # this is one of the shortcomings of this format
21903 3. Link fragments inside <i> and <b>
21905 ''[[foo''<nowiki>]]</nowiki>
21907 '''[[foo'''<nowiki>]]</nowiki>
21910 </p><p><b>[[foo</b>]]
21915 4. No escaping needed
21917 '<span>''bar''</span>'
21918 '<span>'''bar'''</span>'
21921 <p>'<span><i>bar</i></span>'
21922 '<span><b>bar</b></span>'
21927 #### ----------- Paragraphs ---------------
21928 #### 1. No unnecessary escapes
21929 #### --------------------------------------
21932 1. No unnecessary escapes
21934 bar <span><nowiki>[[foo]]</nowiki></span>
21936 =bar <span><nowiki>[[foo]]</nowiki></span>
21938 [[bar <span><nowiki>[[foo]]</nowiki></span>
21940 ]]bar <span><nowiki>[[foo]]</nowiki></span>
21942 =bar <span>foo]]</span><nowiki>=</nowiki>
21944 <p>bar <span>[[foo]]</span>
21945 </p><p>=bar <span>[[foo]]</span>
21946 </p><p>[[bar <span>[[foo]]</span>
21947 </p><p>]]bar <span>[[foo]]</span>
21948 </p><p>=bar <span>foo]]</span>=
21952 #### ----------------------- PRE --------------------------
21953 #### 1. Leading whitespace in SOL context should be escaped
21954 #### ------------------------------------------------------
21956 1. Leading whitespace in SOL context should be escaped
21960 <nowiki> </nowiki>a
21962 <nowiki> </nowiki> a
21964 <nowiki> </nowiki>a(tab)
21966 <nowiki> </nowiki> a
21968 <nowiki> </nowiki> a
21971 <nowiki> </nowiki>b
21974 <nowiki> </nowiki>b
21977 <nowiki> </nowiki> b
21983 <p><!--cmt--> a</p>
21993 2. Leading whitespace in non-indent-pre contexts should not be escaped
22001 <p>foo <span about="#mwt2" class="reference" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="#cite_note-1">[1]</a></span></p>
22002 <ol class="references" typeof="mw:Extension/references" about="#mwt4" data-mw='{"name":"references","attrs":{}}'>
22003 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1">↑</a></span> <span id="mw-reference-text-cite_note-1" class="mw-reference-text"><i data-parsoid='{"dsr":[9,14,2,2]}'>a</i>
22009 3. Leading whitespace in indent-pre suppressing contexts should not be escaped
22028 4. Leading whitespace in indent-pre suppressing contexts should not be escaped
22032 [[File:Foobar.jpg|thumb|caption]]
22035 <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>
22039 5. Nowiki escaping should account for indent-pres
22048 #### --------------- Behavior Switches --------------------
22050 1. Valid behavior switches should be escaped
22057 <nowiki>__TOC__</nowiki>
22058 ''<nowiki>__TOC__</nowiki>''
22062 2. Invalid behavior switches should not be escaped
22073 #### --------------- HTML tags ---------------
22076 #### 3. multi-line html tag
22077 #### 4. extension tags
22078 #### -----------------------------------------
22084 <a href="http://google.com">google</a>
22086 <a href="http://google.com">google</a>
22092 * <nowiki><div>foo</div></nowiki>
22093 * <nowiki><div style="color:red">foo</div></nowiki>
22094 * <nowiki><td></nowiki>
22096 <ul><li> <div>foo</div></li>
22097 <li> <div style="color:red">foo</div></li>
22098 <li> <td></li></ul>
22103 3. multi-line html tag
22118 <nowiki><ref>foo</ref></nowiki>
22120 <nowiki><ref>bar</nowiki>
22122 baz<nowiki></ref></nowiki>
22124 <p><ref>foo</ref>
22125 </p><p><ref>bar
22126 </p><p>baz</ref>
22130 #### --------------- Others ---------------
22134 <nowiki>foo</nowiki>
22136 <p><nowiki>foo</nowiki>
22140 ## The quote-char in the input is necessary for triggering the bug
22142 (Bug 52035) Nowiki-escaping should not get tripped by " :" in text
22144 parsoid=wt2wt,html2wt
22153 Tag-like HTML structures are passed through as text
22175 </p><p>1<d e>f
22180 HTML tag with necessary entities in attributes
22182 <span title="&amp;">foo</span>
22184 <p><span title="&amp;">foo</span>
22189 HTML tag with 'unnecessary' entity encoding in attributes
22191 <span title="&">foo</span>
22193 <p><span title="&">foo</span>
22198 HTML tag with broken attribute value quoting
22200 <span title="Hello world>Foo</span>
22202 <p><span>Foo</span>
22205 <p><span title="Hello world">Foo</span>
22210 Parsoid-only: HTML tag with broken attribute value quoting
22214 <span title="Hello world>Foo</span>
22216 <p><span title="Hello world">Foo</span>
22221 Table with broken attribute value quoting
22224 | title="Hello world|Foo
22235 <td title="Hello world">Foo
22241 Table with broken attribute value quoting on consecutive lines
22244 | title="Hello world|Foo
22245 | style="color:red|Bar
22258 <td title="Hello world">Foo
22259 </td><td style="color: red">Bar
22260 </td></tr></tbody></table>
22265 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
22275 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
22285 Accept empty td cell attribute
22288 | align="center" | foo || |
22293 <td align="center"> foo </td>
22300 Non-empty attributes in th-cells
22303 ! Foo !! style="color: red" | Bar
22309 <th style="color: red"> Bar
22315 Accept empty attributes in th-cells
22330 Empty table rows go away
22351 ### Parsoid-centric tests for testing RTing of inter-element separators
22352 ### Edge cases not tested by existing parser tests and specific to
22353 ### Parsoid-specific serialization strategies.
22357 RT-ed inter-element separators should be valid separators
22369 # Parsoid-only since PHP parser relies on Tidy for correct output
22371 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
22385 <tbody><tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'><small data-parsoid='{"stx":"html","autoInsertedEnd":true}'>foo
22386 <p>bar</p></small></td></tr>
22390 <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>
22395 Empty TD followed by TD with tpl-generated attribute
22400 |{{echo|style='color:red'}}|foo
22414 Indented table with an empty td
22432 ## We have some newline diffs RT-ing this edge case
22433 ## and it is not important enough -- we seem to be emitting
22434 ## at most 2 newlines after a </tr> and this is unrelated to
22435 ## the issue from T85627 that this is testing.
22437 Indented table with blank lines in between (T85627)
22456 Indented block & table
22470 <div data-parsoid='{"stx":"html"}'>foo</div>
22472 <tr data-parsoid='{"autoInsertedEnd":true,"autoInsertedStart":true}'><td data-parsoid='{"autoInsertedEnd":true}'>foo</td></tr>
22477 Indent and comment before table row
22492 <!--hi--><tbody><tr data-parsoid='{"startTagSrc":"|-","autoInsertedEnd":true}'>
22493 <td data-parsoid='{"autoInsertedEnd":true}'> there</td></tr>
22497 # Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext
22499 Empty TR followed by a template-generated TR
22505 {{echo|<tr><td>foo</td></tr>}}
22511 <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}}]}'>
22516 ## PHP and parsoid output differ for this, and since this is primarily
22517 ## for testing Parsoid's serializer, marking this Parsoid only
22519 Empty TR followed by mixed-ws-comment line should RT correctly
22535 <!--c--> </tr><!--d-->
22541 Multi-line image caption generated by templates with/without trailing newlines
22543 [[File:Foobar.jpg|thumb|300x300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
22544 [[File:Foobar.jpg|thumb|300x300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
22546 <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>
22547 <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>
22551 New element inserted (without intervening newlines) after an old sol-transparent node should serialize correctly
22555 <meta typeof="mw:Includes/IncludeOnly" data-parsoid='{"src":"<includeonly>foo</includeonly>"}'/><meta typeof="mw:Includes/IncludeOnly/End" data-parsoid='{"src":""}'/><p>new para</p>
22557 <link rel="mw:PageProp/Category" href="./Category:Foo" data-parsoid=''/><h1>new heading</h1>
22559 <includeonly>foo</includeonly>
22567 ## PHP emits broken html for this, and since this is primarily
22568 ## a Parsoid serializer test, marking this Parsoid only
22570 Improperly nested inline or quotes tags with whitespace in between
22574 <span> <s>x</span> </s>
22577 <p><span> <s>x</s></span><s> </s>
22578 <b> <i>x</i></b><i> </i>
22583 Encapsulate protected attributes from wt
22587 <div typeof="mw:placeholder stuff" data-parsoid="weird" data-parsoid-other="no" about="time" rel="mw:true">foo</div>
22589 <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>
22593 ## Currently the p-wrapper is fragile in how it adds / removes transformations.
22594 ## Having nested or stray pre tags results in the attempt to add duplicates,
22595 ## causing an assertion fail. This test tries to prevent that situation.
22597 Ensure ParagraphWrapper can deal with stray closing pre tags
22607 1. Ensure fostered text content is wrapped in element nodes
22611 <table>hi</table><table>ho</table>
22620 2. Ensure fostered text content is wrapped in element nodes (traps regressions around fostered marker on the element getting lost)
22622 parsoid=wt2html,wt2wt
22631 <tbody><tr><td> a</td></tr>
22636 Encapsulation properly handles null DSR information from foster box
22638 parsoid=wt2html,wt2wt
22640 {{echo|<table>foo<tr><td>bar</td></tr></table>}}
22642 <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>
22646 1. Encapsulate foster-parented transclusion content
22648 parsoid=wt2wt,wt2html
22650 <table>{{echo|foo<tr><td>bar</td></tr>}}</table>
22652 <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>
22662 2. Encapsulate foster-parented transclusion content
22664 parsoid=wt2wt,wt2html
22666 <table><div>{{echo|foo}}</div><tr><td>bar</td></tr></table>
22668 <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>
22679 3. Encapsulate foster-parented transclusion content
22681 parsoid=wt2wt,wt2html
22683 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
22685 <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>"]}">
22698 4. Encapsulate foster-parented transclusion content
22700 parsoid=wt2wt,wt2html
22702 <table><div><p>{{echo|foo</p></div><tr><td>}}bar</td></tr></table>
22704 <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>"]}">
22717 5. Encapsulate foster-parented transclusion content
22719 parsoid=wt2wt,wt2html
22721 <table><tr><td><div><p>{{echo|foo</p></div></td>foo}}</tr></table>
22723 <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>
22738 6. Encapsulate foster-parented transclusion content
22740 parsoid=wt2wt,wt2html
22742 <table><tr><td><div><p>{{echo|foo</p></div></td>foo</tr></table>}}<p>ok</p>
22744 <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>
22760 7. Encapsulate foster-parented transclusion content
22762 parsoid=wt2wt,wt2html
22764 <table>{{echo|<p>foo</p>}}<td>bar</td></table>
22766 <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>
22777 8. Encapsulate foster-parented transclusion content
22779 parsoid=wt2wt,wt2html
22782 }}{|{{echo|style='color:red'}}
22787 <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>
22797 9. Encapsulate foster-parented transclusion content
22799 parsoid=wt2wt,wt2html
22801 <table>{{echo|hi</table>hello}}
22803 <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>
22807 Table in fosterable position
22809 parsoid=wt2html,wt2wt
22818 <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">
22820 <table about="#mwt1" data-parsoid='{"autoInsertedEnd":true}'></table>
22826 # Parsoid only for bug 64747
22828 Properly encapsulate empty-content transclusions in fosterable positions
22836 <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":["","","",""]}]]}'>
22842 Support <object> element with .data attribute
22846 <object data="test.swf"></object>
22848 <object data="test.swf"></object>
22852 Don't block XML namespace declaration
22854 <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">MediaWiki</span>
22856 <p><span>MediaWiki</span>
22859 <p><span xmlns:dct="http://purl.org/dc/terms/" data-x-property="dct:title" data-parsoid='{"stx":"html"}'>MediaWiki</span></p>
22862 # -----------------------------------------------------------------
22863 # The following section of tests are primarily to spec requirements
22864 # around serialization of new/edited content.
22866 # All these tests are marked Parsoid html2wt and html2html only
22867 # ----------------------------------------------------------------
22869 # 'mi' is a localinterwiki prefix as well as a language
22871 Serialize interwiki links pointing to the current wiki as plain wiki links (bug 65869)
22875 <p><a rel="mw:ExtLink" href="http://mi.wikipedia.org/wiki/Foo">Foo</a></p>
22881 New wiki links (href variations)
22885 <a rel="mw:WikiLink" href="./Foo_bar">Foo_bar</a>
22886 <a rel="mw:WikiLink" href="Foo_bar">Foo_bar</a>
22887 <a rel="mw:WikiLink" href="Foo bar">Foo_bar</a>
22888 <a rel="mw:WikiLink" href="./Toxine_bact%C3%A9rienne">Toxine bactérienne</a>
22893 [[Toxine bactérienne]]
22897 New wiki links (content string variations)
22901 <a rel="mw:WikiLink" href="./Foo_bar">Foo_bar</a>
22902 <a rel="mw:WikiLink" href="./Foo_bar">Foo bar</a>
22903 <a rel="mw:WikiLink" href="./Foo_bar">./Foo_bar</a>
22907 [[Foo_bar|./Foo_bar]]
22911 New category links (href variations)
22915 <link rel="mw:PageProp/Category" href="./Category:Toxine_bactérienne" />
22916 <link rel="mw:PageProp/Category" href="./Category:Toxine_bact%C3%A9rienne" />
22917 <link rel="mw:PageProp/Category" href="Category:Toxine_bact%C3%A9rienne" />
22919 [[Category:Toxine bactérienne]]
22920 [[Category:Toxine bactérienne]]
22921 [[Category:Toxine bactérienne]]
22925 New sol transparent links don't need indent-pre nowiki protection
22930 <link rel="mw:PageProp/redirect" href="./Main_Page">
22931 <!-- this is good --> <link rel="mw:PageProp/Category" href="./Category:Good" />
22932 <!-- this is great --> <link rel="mw:PageProp/Category" href="./Kategorie:Great" />
22934 #WEITERLEITUNG [[Main Page]]
22935 <!-- this is good --> [[Category:Good]]
22936 <!-- this is great --> [[Kategorie:Great]]
22940 New interlanguage links (href variations)
22944 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine bactérienne" />
22945 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine_bactérienne" />
22946 <link rel="mw:PageProp/Language" href="http://es.wikipedia.org/wiki/Toxine_bact%C3%A9rienne" />
22948 [[es:Toxine bactérienne]]
22949 [[es:Toxine_bactérienne]]
22950 [[es:Toxine_bactérienne]]
22954 Image: Modifying size of an image (1)
22957 "modes": ["wt2wt"],
22959 ["img[height]", "attr", "height", "22"],
22960 ["img[width]", "attr", "width", "200"]
22964 [[Image:Foobar.jpg|230x230px]]
22966 [[Image:Foobar.jpg|200x200px]]
22970 Image: Modifying size of an image (2)
22973 "modes": ["wt2wt"],
22975 ["img[height]", "attr", "height", "100"],
22976 ["img[width]", "attr", "width", "500"]
22980 [[Image:Foobar.jpg|230x230px]]
22982 [[Image:Foobar.jpg|500x500px]]
22985 # Change in size is ignored so long as class='mw-default-size'
22987 Image: Modifying size of an image (3)
22990 "modes": ["wt2wt"],
22992 ["figure[class]", "removeClass", "mw-default-size"],
22993 ["figure img", "attr", "height", "19"],
22994 ["figure img", "attr", "width", "170"]
22998 [[Image:Foobar.jpg|thumb]]
23000 [[Image:Foobar.jpg|thumb|170x170px]]
23004 Image: Modifying alignment of an image (bug 48665)
23007 "modes": ["wt2wt"],
23009 ["figure[class]", "removeClass", "mw-halign-right"],
23010 ["figure[class]", "addClass", "mw-halign-left"]
23014 [[Image:Foobar.jpg|thumb|caption|right]]
23016 [[Image:Foobar.jpg|thumb|caption|left]]
23020 Image: Modifying mw-default-size of an frameless image (bug 62805)
23023 "modes": ["wt2wt"],
23025 ["figure.mw-default-size", "removeClass", "mw-default-size"]
23029 [[Image:Foobar.jpg|frameless|right]]
23031 [[Image:Foobar.jpg|frameless|right|220x220px]]
23035 Image: Modifying valign of an image (bug 49221)
23038 "modes": ["wt2wt"],
23040 ["*[typeof=\"mw:Image\"]", "removeClass", "mw-valign-middle"],
23041 ["*[typeof=\"mw:Image\"]", "addClass", "mw-valign-text-top"]
23045 [[File:Foobar.jpg|20px|middle]]
23047 [[File:Foobar.jpg|20px|text-top]]
23051 Image: Modifying alt attribute of an image (bug 56400)
23054 "modes": ["wt2wt"],
23056 ["img[alt]", "attr", "alt", "some alternate edited text"]
23060 [[File:Foobar.jpg|thumb|some caption|alt=some alternate text]]
23062 [[File:Foobar.jpg|thumb|some caption|alt=some alternate edited text]]
23066 Image: Modifying caption of an image
23069 "modes": ["wt2wt"],
23071 ["figcaption", "text", "new caption"]
23075 [[Image:Foobar.jpg|thumb|original caption]]
23077 [[Image:Foobar.jpg|thumb|new caption]]
23081 Image: empty alt attribute (bug 48924)
23085 [[File:Foobar.jpg|thumb|alt=|bar]]
23087 <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>
23091 #Image: new attributes should be serialized in wiki's language for RTL languages (bug 51852)
23096 #<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>
23098 #[[Imagen:Foobar.jpg|derecha|miniaturadeimagen]]
23102 Image: Block level image should have \n before and after
23105 [[File:Foobar.jpg|right|thumb|150x150px]]
23109 <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>
23114 Image: New block level image should have \n before and after (existing content)
23117 [[File:Foobar.jpg|right|thumb|150x150px]]
23121 <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>
23126 Image: upright option (parsoid)
23130 [[File:Foobar.jpg|thumb|upright|caption]]
23131 [[File:Foobar.jpg|thumb|upright=0.5|caption]]
23132 [[File:Foobar.jpg|thumb|500x500px|upright=0.5|caption]]
23134 <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>
23135 <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>
23136 <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>
23140 Image: upright option is ignored on inline and frame images (parsoid)
23144 [[File:Foobar.jpg|500x500px|upright=0.5|caption]]
23146 <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>
23150 Image: from basic HTML (1)
23154 <span typeof="mw:Image">
23155 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
23158 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
23162 Image: from basic HTML (2)
23166 <img src="File:Foobar.jpg" width=100 height=100 alt="Alt">
23168 [[File:Foobar.jpg|link=|alt=Alt|100x100px]]
23172 Image: from basic HTML (3)
23176 <a href="Main"><img src="File:Foobar.jpg" width=100 height=100 alt="Alt"></a>
23178 [[File:Foobar.jpg|link=Main|alt=Alt|100x100px]]
23182 Image: from basic HTML (4)
23186 <img src="File:Foobar.jpg">
23188 [[File:Foobar.jpg|link=]]
23192 Lists: Serialize correctly even when list content is wrapped in p-tags (like VE does)
23197 <li><p>foo</p></li>
23204 Lists: Serialize correctly even when list tags has unneeded whitespace between tags
23208 <ul> <li>foo</li></ul>
23214 Don't strip leading whitespace when handling indent-pre suppressing tags
23219 <tr><td> indented row</td></tr>
23222 <b>This is very bold of you!</b>
23225 indented cell (no pre-wrapping!)
23235 '''This is very bold of you!'''
23239 indented cell (no pre-wrapping!)
23247 Nowiki-wrap leading whitespace when handling indent-pre inducing tags
23252 <nowiki> </nowiki><span>bar</span>
23255 <nowiki> </nowiki></span>bar2
23258 <nowiki> </nowiki><span>bar</span>
23261 <nowiki> </nowiki><span>foo</span>
23279 Lists: Add space after bullets
23286 <li><span> baz</span></li>
23291 * <span> baz</span>
23295 Lists: Dont insert newlines in a serialized list item.
23299 <ul><li>a<br>b</li><li>c</li></ul>
23306 Headings: Add space before/after == (Bug 51744)
23313 <h2><span> baz</span></h2>
23321 == <span> baz</span> ==
23325 Headings: Force metas to serialize before/after
23329 <h2>hello there<link href="Category:A1" rel="mw:PageProp/Category" /></h2>
23330 <h2><link href="Category:A2" rel="mw:PageProp/Category" />hi pal</h2>
23332 <h2><!--foo--> <link href="Category:A3" rel="mw:PageProp/Category" /> how goes it</h2>
23340 <!--foo--> [[Category:A3]]
23345 Parsoid: Serialize positional parameters with = in them as named parameter
23349 <p about="#mwt1" typeof="mw:Transclusion"
23350 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}}]}'>foo</p>
23352 <p about="#mwt1" typeof="mw:Transclusion"
23353 data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}, "2":{"wt":"bar"}},"i":0}}]}'>foo</p>
23355 <!--Orig params with data-parsoid has heuristics for handling = chars-->
23356 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
23357 <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>
23361 {{echo|1 = f=oo|2 = bar}}
23363 <!--Orig params with data-parsoid has heuristics for handling = chars-->
23364 <!--FIXME: But maybe the heuristic needs fixing to apply to new params as well-->
23365 {{echo|<nowiki>f=oo</nowiki>|bar}}
23369 Parsoid: Serialize positional parameters with = in extlink as named parameter
23373 <p><a rel="mw:ExtLink" href="http://stuff?is=ok" about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://stuff?is=ok"}},"i":0}}]}'>http://stuff?is=ok</a></p>
23375 {{echo|1 = http://stuff?is=ok}}
23379 Parsoid: Correctly serialize block-node children when they are a combination of text and p-nodes
23383 <div>a<p>b</p></div>
23404 Substrings resembling wikitext in hrefs should not get nowiki escapes
23408 <a rel="mw:WikiLink" href="./Foo''bar''baz">Foo''bar''baz</a>
23414 Enforce single-line context in the serializer
23429 #-----------------------------
23430 # I/B quote minimization tests
23431 #-----------------------------
23434 1. I/B quote minimization: wikitext-only tags should be combined
23438 <p><i>A</i><i>B</i></p>
23439 <p><b>A</b><b>B</b></p>
23440 <p><i>A</i><b><i>B</i></b></p>
23441 <p><b>A</b><i><b>B</b></i></p>
23442 <p><b>A</b><i><b>B</b><b>C</b></i><b>D</b></p>
23443 <p><i><b>A</b></i><i><b>B</b></i></p>
23444 <p><i><b>A</b></i><b><i>B</i></b></p>
23445 <p><b><i>A</i></b><i><b>B</b></i></p>
23465 2. I/B quote minimization: wikitext and html tags should not be combined
23469 <p><i>A</i><i data-parsoid='{"stx":"html"}'>B</i></p>
23470 <p><i>A</i><b><i data-parsoid='{"stx":"html"}'>B</i></b></p>
23474 ''A''<nowiki/>'''<i>B</i>'''
23478 3. I/B quote minimization: templated content stops minimization
23482 <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>
23483 <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>
23485 ''A''{{echo|''B''}}
23487 ''A''{{echo|'''''B'''''}}
23491 4. I/B quote minimization: new content should be mimimized with adjacent old content
23495 <p><i>A</i><i>B</i></p>
23496 <p><b>A</b><b>B</b></p>
23497 <p><i>A</i><b><i>B</i></b></p>
23507 5a. Merge adjacent quote nodes if they've been edited
23510 "modes": ["wt2wt"],
23512 ["p", "contents", "remove", ":contains('b')"]
23522 5b. Merge adjacent quote nodes if they've been edited
23525 "modes": ["wt2wt"],
23531 ''a''<span id="x">b</span>''c''
23536 #------------------------------------
23537 # End of I/B quote minimization tests
23538 #------------------------------------
23541 Bug 54262: New entities
23547 <span typeof="mw:Entity"> </span>
23550 ## Note that there is no wikitext output for 'unknownproperty' ##
23551 ## Unknown magic words are silently dropped ##
23558 <meta property='mw:PageProp/toc' />
23559 <meta property='mw:PageProp/notoc' />
23560 <meta property='mw:PageProp/forcetoc' />
23561 <meta property='mw:PageProp/index' />
23562 <meta property='mw:PageProp/noindex' />
23563 <meta property='mw:PageProp/nogallery' />
23564 <meta property='mw:PageProp/noeditsection' />
23565 <meta property='mw:PageProp/notitleconvert' />
23566 <meta property='mw:PageProp/nocontentconvert' />
23567 <meta property='mw:PageProp/unknownproperty' />
23577 __NOCONTENTCONVERT__
23581 Consecutive <pre>s should not get merged
23583 parsoid=html2wt,html2html
23585 <pre>a</pre><pre>b</pre>
23613 Edited ISBN links not serializable as ISBN links should serialize as wikilinks
23617 <a rel="mw:ExtLink" href="./Special:BookSources/1234567890">ISBN 1234567895</a>
23619 [[Special:BookSources/1234567890|ISBN 1234567895]]
23623 Edited RFC links not serializable as RFC links should serialize as extlinks
23627 <a href="//tools.ietf.org/html/rfc123" rel="mw:ExtLink">New RFC</a>
23629 [//tools.ietf.org/html/rfc123 New RFC]
23633 Edited PMID links not serializable as PMID links should serialize as extlinks
23637 <a href="//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract" rel="mw:ExtLink">New PMID</a>
23639 [//www.ncbi.nlm.nih.gov/pubmed/123?dopt=Abstract New PMID]
23643 WTS of autolinks with trailing/surrounding context
23647 <p><a href="http://cscott.net">http://cscott.net</a><b>foo</b></p>
23648 <p><a href="http://cscott.net">http://cscott.net</a><b data-parsoid='{"stx":"html"}'>foo</b></p>
23649 <p><b><a href="http://cscott.net">http://cscott.net</a></b></p>
23650 <p><b><a href="http://cscott.net">http://cscott.net</a> </b></p>
23651 <p><b><a href="http://cscott.net">http://cscott.net</a>x</b></p>
23652 <p><a href="http://cscott.net">http://cscott.net</a>x</p>
23654 http://cscott.net<nowiki/>'''foo'''
23656 http://cscott.net<b>foo</b>
23658 '''http://cscott.net<nowiki/>'''
23660 '''http://cscott.net '''
23662 '''http://cscott.net<nowiki/>x'''
23664 http://cscott.net<nowiki/>x
23668 WTS of autolinks with nowikis (round-trip)
23670 x<nowiki/>http://cscott.net<nowiki/>x
23672 <p>x<a rel="mw:ExtLink" href="http://cscott.net">http://cscott.net</a>x</p>
23675 # this is the "easy" test because it leaves in place all the
23676 # data-parsoid information indicating this is an autolink
23678 WTS of autolinks with escapes (editing)
23681 "modes": ["wt2wt"],
23683 [ "meta", "remove" ]
23687 x<nowiki/>http://cscott.net<nowiki/>x
23689 x<nowiki/>http://cscott.net<nowiki/>x
23693 Edited Redirect link should emit a non-piped wikitext link
23697 <link rel="mw:PageProp/redirect" href="Bar" data-parsoid='{"a":{"href":"./Foo"},"sa":{"href":"Foo"}}'>
23703 T75121: Infer extension name from typeOf if data-mw is not present
23707 <div typeOf="mw:Extension/foo"></div>
23712 # Note that the <p> wrapping isn't present in PHP parser output
23713 # The important thing for this test is that P-wrapping doesn't
23714 # interfere with the <nowiki> protection for leading - in <td>
23715 # (which isn't necessary for <th>).
23717 T88318: p-wrapped dash in table.
23719 parsoid=html2wt,wt2wt
23722 <tr><th><p>-</p></th><th><p>- </p></th></tr>
23723 <tr><td><p>-</p></td><td><p>- </p></td></tr>
23724 <tr><td><small>-</small></td><td><br/><p>-</p></td><td><br/>-</td></tr>
23731 |<nowiki>-</nowiki>
23732 |<nowiki>- </nowiki>
23751 <td><small>-</small></td>
23762 # -----------------------------------------------------------------
23763 # End of section for Parsoid-only html2wt tests for serialization
23765 # -----------------------------------------------------------------
23772 Try for 100% code coverage