1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # You can also set the following parser properties via test options:
31 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
32 # wgLinkHolderBatchSize, wgRawHtml
34 # For testing purposes, temporary articles can created:
35 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
36 # where '/' denotes a newline.
38 # This is the standard article assumed to exist.
63 MediaWiki:bad image list
65 * [[File:Bad.jpg]] except [[Nasty page]]
99 Template:echo_with_span
105 Template:echo_with_div
117 Template:table_attribs
120 |</noinclude>style="color: red"| Foo
126 {{table_attribs}} || Bar || Baz
148 This is a simple paragraph.
150 <p>This is a simple paragraph.
155 Paragraphs with extra newline spacing
178 Paragraphs with newline spacing with comment lines in between
186 <!--foo--><!--More than 1 comment disables stripping of this line!-->
243 Paragraphs with newline spacing with non-empty white-space lines in between
270 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
278 <!--foo--><!--More than 1 comment disables stripping of this line!-->
317 Extra newlines: More paragraphs with indented comment
332 Extra newlines followed by heading
347 <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>
348 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
351 <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>
356 Extra newlines between heading and content are swallowed
364 <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>
365 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
372 http://fr.wikipedia.org/wiki/🍺
373 <!-- EasterEgg we love beer, better be able be able to link to it -->
375 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
395 * plain''italic''plain
396 * plain''italic''plain''italic''plain
397 * plain'''bold'''plain
398 * plain'''bold'''plain'''bold'''plain
399 * plain''italic''plain'''bold'''plain
400 * plain'''bold'''plain''italic''plain
401 * plain''italic'''bold-italic'''italic''plain
402 * plain'''bold''bold-italic''bold'''plain
403 * plain'''''bold-italic'''italic''plain
404 * plain'''''bold-italic''bold'''plain
405 * plain''italic'''bold-italic'''''plain
406 * plain'''bold''bold-italic'''''plain
407 * plain l'''italic''plain
408 * plain l''''bold''' plain
411 </li><li> plain<i>italic</i>plain
412 </li><li> plain<i>italic</i>plain<i>italic</i>plain
413 </li><li> plain<b>bold</b>plain
414 </li><li> plain<b>bold</b>plain<b>bold</b>plain
415 </li><li> plain<i>italic</i>plain<b>bold</b>plain
416 </li><li> plain<b>bold</b>plain<i>italic</i>plain
417 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
418 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
419 </li><li> plain<i><b>bold-italic</b>italic</i>plain
420 </li><li> plain<b><i>bold-italic</i>bold</b>plain
421 </li><li> plain<i>italic<b>bold-italic</b></i>plain
422 </li><li> plain<b>bold<i>bold-italic</i></b>plain
423 </li><li> plain l'<i>italic</i>plain
424 </li><li> plain l'<b>bold</b> plain
429 # this example taken from the simple/Moon article
431 Italics and possessives
433 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
435 <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
440 ### 2-quote opening sequence tests
443 Italics and bold: 2-quote opening sequence: (2,2)
453 Italics and bold: 2-quote opening sequence: (2,3)
463 Italics and bold: 2-quote opening sequence: (2,4)
473 Italics and bold: 2-quote opening sequence: (2,5) (php)
482 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
484 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
496 ### 3-quote opening sequence tests
500 Italics and bold: 3-quote opening sequence: (3,2)
510 Italics and bold: 3-quote opening sequence: (3,3)
520 Italics and bold: 3-quote opening sequence: (3,4)
530 Italics and bold: 3-quote opening sequence: (3,5) (php)
539 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
541 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
553 ### 4-quote opening sequence tests
557 Italics and bold: 4-quote opening sequence: (4,2)
567 Italics and bold: 4-quote opening sequence: (4,3)
577 Italics and bold: 4-quote opening sequence: (4,4)
587 Italics and bold: 4-quote opening sequence: (4,5) (php)
596 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
598 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
604 <p>'<b>foo<i></i></b>
610 ### 5-quote opening sequence tests
614 Italics and bold: 5-quote opening sequence: (5,2) (php)
623 # Parsoid reverses the nesting order, compared to the PHP parser
625 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
637 Italics and bold: 5-quote opening sequence: (5,3)
647 Italics and bold: 5-quote opening sequence: (5,4)
651 <p><i><b>foo'</b></i>
657 Italics and bold: 5-quote opening sequence: (5,5)
666 ### multiple quote sequences in a line
669 Italics and bold: multiple quote sequences: (2,4,2)
673 <p><i>foo'<b>bar</b></i>
679 Italics and bold: multiple quote sequences: (2,4,3)
683 <p><i>foo'<b>bar</b></i>
689 Italics and bold: multiple quote sequences: (2,4,4)
693 <p><i>foo'<b>bar'</b></i>
699 Italics and bold: multiple quote sequences: (3,4,2) (php)
708 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
710 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
716 <p><b>foo'</b>bar<i></i>
722 Italics and bold: multiple quote sequences: (3,4,3) (php)
731 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
733 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
739 <p><b>foo'</b>bar<b></b>
744 ### other quote tests
747 Italics and bold: other quote tests: (2,3,5)
749 ''this is about '''foo's family'''''
751 <p><i>this is about <b>foo's family</b></i>
757 Italics and bold: other quote tests: (2,(3,3),2)
759 ''this is about '''foo's''' family''
761 <p><i>this is about <b>foo's</b> family</i>
767 Italics and bold: other quote tests: (3,2,3,2)
769 '''this is about ''foo'''s family''
771 <p><b>this is about <i>foo</i></b><i>s family</i>
776 # The Parsoid team believes the PHP parser's output on this test is wrong.
777 # It only checks for convert-to-bold-on-single-character-word when the word
778 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
779 # This means that the bold token in position 2 (0-indexed) gets converted by
780 # parsoid, but doesn't get changed by the PHP parser.
782 Italics and bold: other quote tests: (3,2,3,3) (php)
786 '''this is about ''foo'''s family'''
788 <p>'<i>this is about </i>foo<b>s family</b>
791 # This is the output the Parsoid team believes to be correct.
793 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
797 '''this is about ''foo'''s family'''
799 <p><b>this is about <i>foo'</i>s family</b>
805 Italics and bold: other quote tests: (3,(2,2),3)
807 '''this is about ''foo's'' family'''
809 <p><b>this is about <i>foo's</i> family</b>
815 Italicized possessive
817 The ''[[Main Page]]'''s talk page.
819 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
824 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
825 (Requires tidy for PHP parser output to be fixed up)
827 parsoid=wt2html,wt2wt
835 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
836 <td><i>a</i></td><td><i>b</i></td></tr>
845 Non-html5 tags should be accepted
847 <center>''foo''</center>
850 <strike>''foo''</strike>
853 <center><i>foo</i></center>
854 <p><big><i>foo</i></big>
855 <font><i>foo</i></font>
856 <strike><i>foo</i></strike>
862 ### <nowiki> test cases
866 <nowiki> unordered list
868 <nowiki>* This is not an unordered list item.</nowiki>
870 <p>* This is not an unordered list item.
877 <nowiki>Lorem ipsum dolor
898 :There is not nowiki.
899 :There is <nowiki>nowiki</nowiki>.
901 #There is not nowiki.
902 #There is <nowiki>nowiki</nowiki>.
904 *There is not nowiki.
905 *There is <nowiki>nowiki</nowiki>.
907 <dl><dd>There is not nowiki.
908 </dd><dd>There is nowiki.
910 <ol><li>There is not nowiki.
911 </li><li>There is nowiki.
913 <ul><li>There is not nowiki.
914 </li><li>There is nowiki.
920 Entities inside <nowiki>
922 <nowiki><</nowiki>
929 Entities inside template parameters
935 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
943 Comments and Indent-Pre
945 <!-- comment 1 --> asdf
947 <!-- comment 1 --> asdf
950 <!-- comment 1 --> asdf
951 <!-- comment 2 -->xyz
953 <!-- comment 1 --> asdf
954 <!-- comment 2 --> xyz
1010 asdf<!-- comment 1 -->jkl
1020 <!-- foo --> b <!-- bar -->
1034 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1040 Comment semantics and delimiters
1042 <!-- --><!----><!-----><!------>
1048 Comment semantics and delimiters, redux
1050 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1051 -- foo -- funky huh? ... -->
1057 Comment semantics and delimiters: directors cut
1059 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1060 everything starting with < followed by !-- until the first -- and > we see,
1061 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1069 Comment semantics: nesting
1071 <!--<!-- no, we're not going to do anything fancy here -->-->
1078 Comment semantics: unclosed comment at end
1080 <!--This comment will run out to the end of the document
1086 Comment in template title
1095 Comment on its own line post-expand
1107 Comment on its own line post-expand with non-significant whitespace
1119 ### paragraph wrapping tests
1133 Block tag on one line
1145 Block tag on both lines
1157 Multiple lines without block tags
1175 Empty lines between lines with block tags
1205 ### Preformatted text
1214 And a [[Main Page|link]]
1220 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1225 Ident preformatting with inline content
1236 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1253 Regression with preformatted in <center>
1266 # Expected output in the following test is not really expected (there should be
1267 # <pre> in the output) -- it's only testing for well-formedness.
1269 Bug 6200: Preformatted in <blockquote>
1282 <pre> with attributes (bug 3202)
1284 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1286 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1291 <pre> with width attribute (bug 3202)
1293 <pre width="8">Narrow screen goodies</pre>
1295 <pre width="8">Narrow screen goodies</pre>
1300 <pre> with forbidden attribute (bug 3202)
1302 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1304 <pre width="8">Narrow screen goodies</pre>
1309 Entities inside <pre>
1318 <pre> with forbidden attribute values (bug 3202)
1320 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1322 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1327 <nowiki> inside <pre> (bug 13238)
1335 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1343 <pre><nowiki>Foo</nowiki></pre>
1348 <nowiki> and <pre> preference (first one wins)
1379 </pre> inside nowiki
1381 <nowiki></pre></nowiki>
1388 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1396 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1406 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1418 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1439 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1443 {{echo| foo}}{{echo| bar}}
1448 {{echo|<!--cmt--> foo}}
1450 <!--cmt-->{{echo| foo}}
1452 {{echo|{{echo| }}bar}}
1470 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1507 Templates: Single-line variant of parameter whitespace stripping test
1513 {{echo|{{echo| a}}}}
1515 {{echo|1={{echo| a}}}}
1528 Templates: Strip whitespace from named parameters, but not positional ones
1556 Templates: Dont strip whitespace from whitespace/comment-only arguments
1560 {{echo| <!--cmt--> }}
1567 Templates: Parsoid parameter escaping test 1
1571 {{echo|[foo]|{{echo|[bar]}}}}
1573 <p about="#mwt1" typeof="mw:Transclusion"
1574 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1578 Parsoid: Pipes in external links in template parameter
1582 {{echo|[{{echo|http://example.com}} link]}}
1584 <p><a rel="mw:ExtLink" href="http://example.com" about="#mwt31" typeof="mw:Transclusion" data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[{{echo|http://example.com}} link]"}},"i":0}">link</a></p>
1588 Parsoid: pipe in transclusion parameter
1592 {{echo|http://foo.com/a|b}}
1594 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1595 typeof="mw:Transclusion"
1596 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"http://foo.com/a|b"}},"i":0}'>http://foo.com/a|b</a></p>
1600 Parsoid: Pipe in external link target and content in template parameter
1602 parsoid=html2wt,wt2wt
1604 {{echo|[http://foo.com/a|b a|b]}}
1606 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1607 typeof="mw:Transclusion"
1608 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1609 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1613 Templates: Dont escape already nowiki-escaped text in template parameters
1615 parsoid=html2wt,wt2wt
1617 {{echo|foo<nowiki>|</nowiki>bar}}
1618 {{echo|<nowiki><div></nowiki>}}
1619 {{echo|<nowiki></nowiki>}}
1621 <p><span about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"foo<nowiki>|</nowiki>bar"}},"i":0}'}'>foo</span><span typeof="mw:Nowiki" about="#mwt1">|</span><span about="#mwt1">bar</span>
1622 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt2" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki>&lt;div&gt;</nowiki>"}},"i":0}'><span typeof="mw:Entity"><</span>div<span typeof="mw:Entity">></span></span>
1623 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1628 ### Parsoid-centric tests for testing RT edge cases for pre
1632 1a. Indent-Pre and Comments
1645 1b. Indent-Pre and Comments
1658 1c. Indent-Pre and Comments
1671 2a. Indent-Pre and tables
1692 2b. Indent-Pre and tables
1708 2c. Indent-Pre and tables (bug 42252)
1725 3a. Indent-Pre and block tags (single-line html)
1733 <pre><span> foo </span>
1738 3b. Indent-Pre and block tags (pre-content on separate line)
1790 4. Multiple spaces at start-of-line
1809 5. White-space in indent-pre
1810 NOTE: the white-space char on 2nd line is significant
1823 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1827 HTML-pre: 1. embedded newlines
1863 HTML-pre: 2: indented text
1876 HTML-pre: 3: other wikitext
1897 ### Definition lists
1904 <dl><dt> name </dt><dd> Definition
1910 Definition list for indentation only
1914 <dl><dd> Indented text
1920 Definition list with no space
1924 <dl><dt>name</dt><dd>Definition
1930 Definition list with URL link
1932 ; http://example.com/ : definition
1934 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1940 Definition list with bracketed URL link
1942 ;[http://www.example.com/ Example]:Something about it
1944 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1950 Definition list with wikilink containing colon
1952 ; [[Help:FAQ]]: The least-read page on Wikipedia
1954 <dl><dt> <a href="/index.php?title=Help:FAQ&action=edit&redlink=1" class="new" title="Help:FAQ (page does not exist)">Help:FAQ</a></dt><dd> The least-read page on Wikipedia
1959 # At Brion's and JeLuF's insistence... :)
1961 Definition list with news link containing colon
1963 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1965 <dl><dt> <a rel="nofollow" class="external free" href="news:alt.wikipedia.rox">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup!
1971 Malformed definition list with colon
1973 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1975 <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
1981 Definition lists: colon in external link text
1983 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1985 <dl><dt> <a rel="nofollow" class="external text" href="http://www.wikipedia2.org/">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up
1991 Definition lists: colon in HTML attribute
1993 ;<b style="display: inline">bold</b>
1995 <dl><dt><b style="display: inline">bold</b>
2001 Definition lists: self-closed tag
2003 ;one<br/>two : two-line fun
2005 <dl><dt>one<br />two </dt><dd> two-line fun
2011 Bug 11748: Literal closing tags
2015 <dd>test test test test test</dd>
2017 <dd>test test test test test</dd>
2022 <dd>test test test test test</dd>
2024 <dd>test test test test test</dd>
2030 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2033 ; term : description
2039 <dl><dt> term </dt><dd> description
2050 Definition list with empty definition and following paragraph
2055 <dl><dt> term</dt><dd>
2062 Nested definition lists using html syntax
2079 Definition Lists: No nesting: Multiple dd's
2093 Definition Lists: Indentation: Regular
2109 Definition Lists: Indentation: Missing 1st level
2123 Definition Lists: Indentation: Multi-level indent
2127 <dl><dd><dl><dd><dl><dd>i3
2135 Definition Lists: Hacky use to indent tables
2142 should be left alone
2144 <dl><dd><dl><dd><table>
2149 </td></tr></table></dd></dl></dd></dl>
2151 should be left alone
2154 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2155 ## as an empty dt item. It also ignores all but the last ";" when followed
2156 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2157 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2160 ## Ex: ";;t2 ::d2" is transformed into:
2172 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2173 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2184 ## All Parsoid only definition list tests have this difference.
2186 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2187 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2190 Table / list interaction: indented table with lists in table contents
2212 </td></tr></table></dd></dl>
2217 Table / list interaction: lists nested in tables nested in indented lists
2242 </td></tr></table></dd></dl>
2250 Definition Lists: Nesting: Multi-level (Parsoid only)
2280 Definition Lists: Nesting: Test 2 (Parsoid only)
2300 Definition Lists: Nesting: Test 3 (Parsoid only)
2328 Definition Lists: Nesting: Test 4
2333 <dl><dd><dl><dd><dl><dt>t3
2342 ## The Parsoid team believes the following three test exposes a
2343 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2344 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2346 Definition Lists: Mixed Lists: Test 1 (php)
2354 <dl><dd><dl><dt><ul><li> foo
2364 Definition Lists: Mixed Lists: Test 1 (parsoid)
2372 <dl><dd><dl><dt><ul><li> foo
2373 </li></ul></dt><dd><ul><li> bar
2374 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2378 Definition Lists: Mixed Lists: Test 2
2392 Definition Lists: Mixed Lists: Test 3
2397 <ul><li><dl><dd><dl><dd><dl><dd> d1
2408 Definition Lists: Mixed Lists: Test 4
2413 <ul><li><dl><dt>d1 </dt><dd>d2
2414 </dd><dt>d3 </dt><dd>d4
2422 Definition Lists: Mixed Lists: Test 5
2437 Definition Lists: Mixed Lists: Test 6
2442 <ol><li><ul><li><dl><dd>d1
2454 Definition Lists: Mixed Lists: Test 7
2468 Definition Lists: Mixed Lists: Test 8
2484 Definition Lists: Mixed Lists: Test 9
2488 <ul><li><dl><dt>foo </dt><dd>bar
2496 Definition Lists: Mixed Lists: Test 10
2500 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2507 # The Parsoid team disagrees with the PHP parser's seemingly-random
2508 # rules regarding dd/dt on the next two tests. Parsoid is more
2509 # consistent, and recognizes the shared nesting and keeps the
2510 # still-open tags around until the nesting is complete.
2513 Definition Lists: Mixed Lists: Test 11 (php)
2520 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2525 <dl><dt>boo </dt><dd>baz
2534 Definition Lists: Mixed Lists: Test 11 (parsoid)
2556 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2557 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2558 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2559 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2564 Definition Lists: Weird Ones: Test 1 (php)
2568 *#;*::;; foo : bar (who uses this?)
2570 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2582 Definition Lists: Weird Ones: Test 1 (parsoid)
2586 *#;*::;; foo : bar (who uses this?)
2603 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2604 <dd data-parsoid='{"stx":"row"}'> bar (who uses this?)</dd></dl></dt></dl></dd></dl></dd></dl></li></ul></dt></dl></li></ol></li></ul>
2611 External links: non-bracketed
2613 Non-bracketed: http://example.com
2615 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2620 External links: numbered
2622 Numbered: [http://example.com]
2623 Numbered: [http://example.net]
2624 Numbered: [http://example.com]
2626 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2627 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2628 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2633 External links: specified text
2635 Specified text: [http://example.com link]
2637 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2642 External links: trail
2644 Linktrails should not work for external links: [http://example.com link]s
2646 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2651 External links: dollar sign in URL
2653 http://example.com/1$2345
2655 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2660 External links: dollar sign in URL (named)
2662 [http://example.com/1$2345]
2664 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2669 External links: open square bracket forbidden in URL (bug 4377)
2671 http://example.com/1[2345
2673 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2678 External links: open square bracket forbidden in URL (named) (bug 4377)
2680 [http://example.com/1[2345]
2682 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2687 External links: nowiki in URL link text (bug 6230)
2689 [http://example.com/ <nowiki>''example site''</nowiki>]
2691 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2696 External links: newline forbidden in text (bug 6230 regression check)
2698 [http://example.com/ first
2701 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2707 External links: Pipe char between url and text
2709 [http://example.com | link]
2711 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2716 External links: protocol-relative URL in brackets
2718 [//example.com/ Test]
2720 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2725 External links: protocol-relative URL in brackets without text
2729 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2734 External links: protocol-relative URL in free text is left alone
2738 <p>//example.com/Foo
2743 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2745 foo//example.com/Foo
2747 <p>foo//example.com/Foo
2754 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2756 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2761 External image from https
2763 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2765 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2770 External image (when not allowed)
2772 wgAllowExternalImages=0
2774 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2776 <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>
2781 Link to non-http image, no img tag
2783 Link to non-http image, no img tag: ftp://example.com/test.jpg
2785 <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>
2790 External links: terminating separator
2792 Terminating separator: http://example.com/thing,
2794 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2799 External links: intervening separator
2801 Intervening separator: http://example.com/1,2,3
2803 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2808 External links: old bug with URL in query
2810 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2812 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2817 External links: old URL-in-URL bug, mixed protocols
2819 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2821 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2826 External links: URL in text
2828 URL in text: [http://example.com http://example.com]
2830 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2835 External links: Clickable images
2837 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2839 <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>
2844 External links: raw ampersand
2846 Old & use: http://x&y
2848 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2853 External links: encoded ampersand
2855 Old & use: http://x&y
2857 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2862 External links: encoded equals (bug 6102)
2864 http://example.com/?foo=bar
2866 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2871 External links: [raw ampersand]
2873 Old & use: [http://x&y]
2875 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2880 External links: [encoded ampersand]
2882 Old & use: [http://x&y]
2884 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2889 External links: [encoded equals] (bug 6102)
2891 [http://example.com/?foo=bar]
2893 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2898 External links: [IDN ignored character reference in hostname; strip it right off]
2900 [http://e‌xample.com/]
2902 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2906 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2907 # Where an external link could easily circumvent the sanitization of the text of
2908 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2909 # test demands a higher standard. That's a bit strange.
2913 # http://example.com -> [http://example.com|http://example.com]
2914 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2916 # The first example is sanitized, but the second is not. Any security benefits
2917 # from this production are trivial to circumvent. Either remove this test and
2918 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2919 # the test accordingly.
2924 External links: IDN ignored character reference in hostname; strip it right off
2926 http://e‌xample.com/
2928 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2933 External links: www.jpeg.org (bug 554)
2937 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2942 External links: URL within URL (original bug 2)
2944 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2946 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2951 BUG 361: URL inside bracketed URL
2953 [http://www.example.com/foo http://www.example.com/bar]
2955 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2960 BUG 361: URL within URL, not bracketed
2962 http://www.example.com/foo?=http://www.example.com/bar
2964 <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>
2969 BUG 289: ">"-token in URL-tail
2971 http://www.example.com/<hello>
2973 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2978 BUG 289: literal ">"-token in URL-tail
2980 http://www.example.com/<b>html</b>
2982 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2987 BUG 289: ">"-token in bracketed URL
2989 [http://www.example.com/<hello> stuff]
2991 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
2996 BUG 289: literal ">"-token in bracketed URL
2998 [http://www.example.com/<b>html</b> stuff]
3000 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3005 BUG 289: literal double quote at end of URL
3007 http://www.example.com/"hello"
3009 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3014 BUG 289: literal double quote in bracketed URL
3016 [http://www.example.com/"hello" stuff]
3018 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3023 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3025 [http://www.example.com test]
3027 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3032 External links: link text with spaces
3034 [http://www.example.com a b c]
3035 [http://www.example.com ''a'' ''b'']
3037 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3038 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3043 External links: wiki links within external link (Bug 3695)
3045 [http://example.com [[wikilink]] embedded in ext link]
3047 <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>
3052 BUG 787: Links with one slash after the url protocol are invalid
3056 [http:/example.com title]
3058 <p>http:/example.com
3059 </p><p>[http:/example.com title]
3064 Bracketed external links with template-generated invalid target
3066 [{{echo|http:/example.com}} title]
3068 <p>[http:/example.com title]
3073 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3075 ''[http://example.com text'']
3076 [http://example.com '''text]'''
3077 ''Something [http://example.com in italic'']
3078 ''Something [http://example.com mixed''''', even bold]'''
3079 '''''Now [http://example.com both''''']
3081 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3082 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3083 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3084 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3085 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3091 Bug 4781: %26 in URL
3093 http://www.example.com/?title=AT%26T
3095 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3099 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3100 # % is actually legal in HTML5. Any change in output would need testing though.
3102 Bug 4781, 5267: %25 in URL
3104 http://www.example.com/?title=100%25_Bran
3106 <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>
3111 Bug 4781, 5267: %28, %29 in URL
3113 http://www.example.com/?title=Ben-Hur_%281959_film%29
3115 <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>
3121 Bug 4781: %26 in autonumber URL
3123 [http://www.example.com/?title=AT%26T]
3125 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3130 Bug 4781, 5267: %26 in autonumber URL
3132 [http://www.example.com/?title=100%25_Bran]
3134 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3139 Bug 4781, 5267: %28, %29 in autonumber URL
3141 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3143 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3149 Bug 4781: %26 in bracketed URL
3151 [http://www.example.com/?title=AT%26T link]
3153 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3158 Bug 4781, 5267: %26 in bracketed URL
3160 [http://www.example.com/?title=100%25_Bran link]
3162 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3167 Bug 4781, 5267: %28, %29 in bracketed URL
3169 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3171 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3176 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3178 Some [http://example.com/ pretty ''italics'' and stuff]!
3180 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3185 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3187 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3189 <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>
3194 External link containing double-single-quotes with no space separating the url from text in italics
3196 [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]].]
3198 <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>
3203 External link with comments in link text
3205 [http://www.google.com Google <!-- comment -->]
3207 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3212 URL-encoding in URL functions (single parameter)
3214 {{localurl:Some page|amp=&}}
3216 <p>/index.php?title=Some_page&amp=&
3221 URL-encoding in URL functions (multiple parameters)
3223 {{localurl:Some page|q=?&=&}}
3225 <p>/index.php?title=Some_page&q=?&amp=&
3232 http://example.com/index.php?foozoid%5B%5D=bar
3234 http://example.com/index.php?foozoid[]=bar
3236 <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>
3237 </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>
3242 IPv6 urls (bug 21261)
3246 http://[2404:130:0:1000::187:2]/index.php
3248 <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>
3253 Non-extlinks in brackets
3262 [{{echo|foo}} ''bar'']
3263 [{{echo|foo}}l's] errand
3264 [{{echo|foo}}l's errand]
3266 [url=http://example.com]
3279 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3284 Parsoid: Percent encoding in external links
3288 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3290 <p><a rel="mw:ExtLink"
3291 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3295 Parsoid: use url link syntax for links where the content is equal the link
3302 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3312 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3314 Normal text. '''''Bold italic text.''''' Normal text.
3316 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3317 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3323 Unclosed and unmatched quotes (php)
3327 '''''Bold italic text '''with bold deactivated''' in between.'''''
3329 '''''Bold italic text ''with italic deactivated'' in between.'''''
3333 ..spanning two paragraphs (should not work).'''
3335 '''Bold tag left open
3337 ''Italic tag left open
3341 <!-- Unmatching number of opening, closing tags: -->
3342 '''This year''''s election ''should'' beat '''last year''''s.
3344 ''Tom'''s car is bigger than ''Susan'''s.
3346 Plain ''italic'''s plain
3348 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3349 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3350 </p><p><b>Bold text..</b>
3351 </p><p>..spanning two paragraphs (should not work).
3352 </p><p><b>Bold tag left open</b>
3353 </p><p><i>Italic tag left open</i>
3355 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3356 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3357 </p><p>Plain <i>italic'</i>s plain
3360 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3361 # parser strips. The wikitext contains just the first half of the bold
3362 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3363 # differently than the PHP parser.)
3365 Unclosed and unmatched quotes (parsoid)
3369 '''''Bold italic text '''with bold deactivated''' in between.'''''
3371 '''''Bold italic text ''with italic deactivated'' in between.'''''
3375 ..spanning two paragraphs (should not work).'''
3377 '''Bold tag left open
3379 ''Italic tag left open
3383 <!-- Unmatching number of opening, closing tags: -->
3384 '''This year''''s election ''should'' beat '''last year''''s.
3386 ''Tom'''s car is bigger than ''Susan'''s.
3388 Plain ''italic'''s plain
3390 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3391 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3392 </p><p><b>Bold text..</b>
3393 </p><p>..spanning two paragraphs (should not work).<b></b>
3394 </p><p><b>Bold tag left open</b>
3395 </p><p><i>Italic tag left open</i>
3397 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3398 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3399 </p><p>Plain <i>italic'</i>s plain
3406 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3409 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3410 # is the bare minimum required by the spec, see:
3411 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3413 A table with no data. (php)
3420 # Parsoid team replies: empty table tags are legal in HTML5
3422 A table with no data. (parsoid)
3431 # A table with nothing but a caption is invalid XHTML, we might want to render
3432 # this as <p>caption</p>
3434 A table with nothing but a caption (php)
3444 </caption><tr><td></td></tr></table>
3447 # Parsoid team replies: table with only a caption is legal in HTML5
3449 A table with nothing but a caption (parsoid)
3457 <table><caption> caption</caption></table>
3461 A table with caption with default-spaced attributes and a table row
3464 |+ style="color: red;" | caption1
3470 <caption style="color: red;"> caption1
3479 A table with captions with non-default spaced attributes and a table row
3482 |+style="color: red;"|caption2
3483 |+ style="color: red;"| caption3
3489 <caption style="color: red;">caption2
3491 <caption style="color: red;"> caption3
3500 Table td-cell syntax variations
3504 | foo bar foo || baz
3505 | style='color:red;' | baz
3506 | style='color:red;' || baz
3513 <td> foo bar foo </td>
3516 <td style="color:red;"> baz
3518 <td> style='color:red;' </td>
3546 Simple table but with multiple dashes for row wikitext
3564 Multiplication table
3566 {| border="1" cellpadding="2"
3567 |+Multiplication table
3569 ! × !! 1 !! 2 !! 3
3587 <table border="1" cellpadding="2">
3588 <caption>Multiplication table
3635 Accept "||" in table headings
3650 Accept "||" in indented table headings
3660 </th></tr></table></dd></dl>
3665 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3682 Accept "| !" at start of line in tables (ignore !-attribute)
3686 | !style="color:red" | bar
3698 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 +/-
3702 |style='color:red;'|+1
3703 |style='color:blue;'|-1
3715 <td style="color:red;">+1
3717 <td style="color:blue;">-1
3741 |rowspan=2| Cell 2, row 1 (and 2)
3752 <td rowspan="2"> Cell 2, row 1 (and 2)
3770 {| bgcolor=#ABCDEF border=2
3775 |the original table again
3783 <table bgcolor="#ABCDEF" border="2">
3791 <td>the original table again
3797 Invalid attributes in table cell (bug 1830)
3812 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3815 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3819 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3820 <td>]" onmouseover="alert(document.cookie)">test
3829 Indented table markup mixed with indented pre content (proposed in bug 6200)
3834 Text that should be rendered preformatted
3842 <pre>Text that should be rendered preformatted
3851 Template-generated table cell attributes and cell content
3859 <td style="color: red"> Foo
3865 Template-generated table cell attributes and cell content (2)
3868 |align=center {{table_attribs}}
3873 <td align="center" style="color: red"> Foo
3879 Template-generated table cell attributes and cell content (3)
3882 |align=center {{table_cells}}
3887 <td align="center" style="color: red"> Foo </td>
3895 Table with row followed by newlines and table heading
3913 Table with empty line following the start tag
3930 # FIXME: Preserve the attribute properly (with an empty string as value) in
3931 # the PHP parser. Parsoid implements the behavior below.
3933 Table attributes with empty value
3945 </td></tr></tbody></table>
3950 Wikitext table with a lot of comments
3973 Wikitext table with double-line table cell
3990 Table cell with a single comment
4006 # The expected HTML structure in this test is debatable. The PHP parser does
4007 # not parse this kind of table at all. The main focus for Parsoid is on
4008 # round-tripping, so this output is ok for now. TODO: revisit!
4010 Wikitext table with html-syntax row (Parsoid)
4022 <td>foo</td></tr></tbody></table>
4026 Implicit <td> after a |-
4027 (PHP parser relies on Tidy to add the missing <td> tags)
4029 parsoid=wt2html,wt2wt
4042 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4043 (PHP parser relies on Tidy to add the missing <td> tags)
4045 parsoid=wt2html,wt2wt
4057 <tr><td><pre>a</pre></td></tr>
4058 <tr><td> b</td></tr>
4064 Lists should be recognized in an implicit <td> context
4065 (PHP parser relies on Tidy to add the missing <td> tags)
4067 parsoid=wt2html,wt2wt
4076 <td><ul><li>a</li></ul></td>
4085 Plain link, capitalized
4089 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4094 Plain link, uncapitalized
4098 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4105 [[Main Page|The Main Page]]
4107 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4112 Piped link with comment in link text
4114 [[Main Page|The Main<!--front--> Page]]
4116 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4125 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4130 Broken link with fragment
4132 [[Zigzagzogzagzig#zug]]
4134 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4139 Special page link with fragment
4141 [[Special:Version#anchor]]
4143 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4148 Nonexistent special page link with fragment
4150 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4152 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4159 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4161 <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>
4168 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4170 <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>!!!
4181 Bug 43661: Piped links with identical prefixes
4183 [[prefixed article|prefixed articles with spaces]]
4185 [[prefixed article|prefixed articlesaoeu]]
4187 [[Main Page|Main Page test]]
4189 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4190 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4191 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4197 Link with HTML entity in suffix / tail
4199 [[Main Page]]", [[Main Page]]a
4201 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4206 Link with 3 brackets
4215 Piped link with 3 brackets
4217 [[[main page|the main page]]]
4219 <p>[[[main page|the main page]]]
4224 Link with multiple pipes
4226 [[Main Page|The|Main|Page]]
4228 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4235 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4237 <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>
4242 Piped link to namespace
4244 [[Meta:Disclaimers|The disclaimers]]
4246 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4253 [[Usually caused by a typo (oops}]]
4255 <p>[[Usually caused by a typo (oops}]]
4260 Link containing % (not as a hex sequence)
4264 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
4269 Link containing % as a single hex sequence interpreted to char
4273 <p><a href="/index.php?title=7%25_Solution&action=edit&redlink=1" class="new" title="7% Solution (page does not exist)">7% Solution</a>
4278 Link containing % as a double hex sequence interpreted to hex sequence
4282 <p>[[7%2525 Solution]]
4287 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4288 Example for such a section: == < ==
4290 [[%23%3c]][[%23%3e]]
4292 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4297 Link containing "<#" and ">#" as a hex sequences
4299 [[%3c%23]][[%3e%23]]
4301 <p>[[%3c%23]][[%3e%23]]
4306 Link containing an equals sign
4308 [[Special:BookSources/isbn=4-00-026157-6]]
4310 <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>
4317 Just a test of an article title containing a tilde.
4320 # note that links containing signatures, like [[Foo~~~~]], are
4321 # massaged by the pre-save transform (PST) and so the tildes are never
4322 # seen by the parser.
4324 Link containing a tilde
4328 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4333 Link containing double-single-quotes '' (bug 4598)
4335 [[Lista d''e paise d''o munno]]
4337 <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>
4342 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4344 Some [[Link|pretty ''italics'' and stuff]]!
4346 <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>!
4351 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4353 ''Some [[Link|pretty ''italics'' and stuff]]!
4355 <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>
4360 Link with double quotes in title part (literal) and alternate part (interpreted)
4362 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4366 [[''Pentecoste''|Pentecoste]]
4368 [[''Pentecoste''|''Pentecoste'']]
4370 <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>
4371 </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>
4372 </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>
4373 </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>
4378 Broken image links with HTML captions (bug 39700)
4380 [[File:Nonexistent|<script></script>]]
4381 [[File:Nonexistent|100px|<script></script>]]
4382 [[File:Nonexistent|<]]
4383 [[File:Nonexistent|a<i>b</i>c]]
4385 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4386 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4387 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4388 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4395 [[http://www.example.com]]
4397 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4402 Plain link to URL with link text
4404 [[http://www.example.com Link text]]
4406 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4411 Plain link to protocol-relative URL
4413 [[//www.example.com]]
4415 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4420 Plain link to protocol-relative URL with link text
4422 [[//www.example.com Link text]]
4424 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4429 Plain link to page with question mark in title
4435 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4436 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4441 # I'm fairly sure the expected result here is wrong.
4442 # We want these to be URL links, not pseudo-pages with URLs for titles....
4443 # However the current output is also pretty screwy.
4446 # I'm changing it to match the current output--it arguably makes more
4447 # sense in the light of the test above. Old expected result was:
4448 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4450 # But I think this test is bordering on "garbage in, garbage out" anyway.
4455 Piped link to URL: [[http://www.example.com|an example URL]]
4457 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4462 BUG 2: [[page|http://url/]] should link to page, not http://url/
4464 [[Main Page|http://url/]]
4466 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4471 BUG 337: Escaped self-links should be bold
4475 [[Bug462]] [[Bug462]]
4477 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4482 Self-link to section should not be bold
4486 [[Main Page#section]]
4488 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4499 Self-link to numeric title
4505 <p><strong class="selflink">0</strong>
4510 Link to numeric-equivalent title
4516 <p><a href="/wiki/00" title="00">00</a>
4521 <nowiki> inside a link
4523 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4525 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4530 Non-breaking spaces in title
4532 [[ Main Page ]]
4534 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4539 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4545 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4550 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4556 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4561 Internal link with en linktrail: no apostrophes (bug 27473)
4567 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4572 Internal link with ca linktrail with apostrophes (bug 27473)
4578 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4583 Internal link with kaa linktrail with apostrophes (bug 27473)
4589 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4600 Internal link with is link prefix
4604 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4606 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4617 Internal link with is link trail and link prefix
4621 [[mótmælendatrú|xxx]]ar
4623 mótmælenda[[söfnuður]]
4624 mótmælenda[[söfnuður|söfnuðir]]
4625 mótmælenda[[söfnuður|söfnuðir]]xxx
4627 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4628 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4629 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4630 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4631 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4636 Parsoid link trail escaping
4638 parsoid=html2wt,html2html
4642 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4646 Parsoid link prefix escaping
4649 parsoid=html2wt,html2html
4651 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4653 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4657 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4665 [http://wp.org ''foo'']
4667 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4668 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4669 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4670 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4675 ### Interwiki links (see maintenance/interwiki.sql)
4679 Inline interwiki link
4681 [[MeatBall:SoftSecurity]]
4683 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4688 Inline interwiki link with empty title (bug 2372)
4692 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4697 Interwiki link encoding conversion (bug 1636)
4699 *[[Wikipedia:ro:Olteniţa]]
4700 *[[Wikipedia:ro:Olteniţa]]
4702 <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>
4703 </li><li><a href="http://en.wikipedia.org/wiki/ro:Olteni%C5%A3a" class="extiw" title="wikipedia:ro:Olteniţa">Wikipedia:ro:Olteniţa</a>
4709 Interwiki link with fragment (bug 2130)
4711 [[MeatBall:SoftSecurity#foo]]
4713 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4728 Double interlanguage link
4739 Interlanguage link, with prefix links
4751 Double interlanguage link, with prefix links (bug 8897)
4764 Parsoid-specific test: Wikilinks with should RT properly
4770 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4775 Parsoid: handle constructor well
4783 <p data-parsoid="{"dsr":[0,15,0,0]}"><a rel="mw:WikiLink" href="./Constructor" data-parsoid="{"stx":"simple","a":{"href":"./Constructor"},"sa":{"href":"constructor"},"dsr":[0,15,2,2]}">constructor</a></p>
4786 <p data-parsoid="{"dsr":[17,36,0,0]}"><a rel="mw:WikiLink" href="./Foo" data-parsoid="{"stx":"simple","a":{"href":"./Foo"},"sa":{"href":"constructor:foo"},"dsr":[17,36,2,2]}">constructor:foo</a></p>
4790 ## Redirects, Parsoid-only
4793 Simple redirect to page
4797 #REDIRECT [[Main Page]]
4799 <link rel="mw:PageProp/redirect" href="./Main_Page">
4803 Redirect to category
4807 #REDIRECT [[Category:Foo]]
4809 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4813 Redirect to category page
4815 parsoid=wt2html,html2html
4817 #REDIRECT [[:Category:Foo]]
4819 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4823 Redirect to image page
4827 #REDIRECT [[File:Wiki.png]]
4829 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4833 Redirect to language
4837 #REDIRECT [[en:File:Wiki.png]]
4839 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4843 Redirect to interwiki
4847 #REDIRECT [[meatball:File:Wiki.png]]
4849 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4866 Broken br tag sanitization
4876 # TODO: Fix html2html mode (bug 51055)!
4878 Parsoid: Broken br tag recognition
4888 Incorrecly removing closing slashes from correctly formed XHTML
4890 <br style="clear:both;" />
4892 <p><br style="clear:both;" />
4897 Failing to transform badly formed HTML into correct XHTML
4899 <br style="clear: left;">
4900 <br style="clear: right;">
4901 <br style="clear: both;">
4903 <p><br style="clear: left;" />
4904 <br style="clear: right;" />
4905 <br style="clear: both;" />
4910 Handling html with a div self-closing tag
4919 <p><div title />
4923 <p><div title=bar />
4924 <div title=bar/>
4926 <div title="bar/"></div>
4932 Handling html with a br self-closing tag
4941 <p><br title="title" />
4942 <br title="title" />
4951 Horizontal ruler (should it add that extra space?)
4965 Horizontal ruler -- 4+ dashes render hr
4974 Horizontal ruler -- eats additional dashes on the same line
4983 Horizontal ruler -- does not collapse dashes on consecutive lines
4994 Horizontal ruler -- <4 dashes render as plain text
5003 Horizontal ruler -- Supports content following dashes on same line
5012 ### Block-level elements
5035 <ol><li>Numbered list
5052 ***#Number on level 4
5054 **#Number on level 3
5055 **#Number on level 3
5059 #** Level 3, but ordered
5062 <ol><li> with numbers
5064 <ul><li> and bullets
5066 <ol><li> and numbers
5068 </li><li>bullets again
5069 <ul><li>bullet level 2
5070 <ul><li>bullet level 3
5071 <ol><li>Number on level 4
5074 </li><li>bullet level 2
5075 <ol><li>Number on level 3
5076 </li><li>Number on level 3
5079 <ol><li>number level 2
5082 <ul><li><ul><li> Level 3
5086 <ol><li><ul><li><ul><li> Level 3, but ordered
5120 Nested lists 3 (first element empty)
5133 Nested lists 4 (first element empty)
5146 Nested lists 5 (both elements empty)
5159 Nested lists 6 (both elements empty)
5172 Nested lists 7 (skip initial nesting levels)
5176 <ul><li><ul><li><ul><li> foo
5184 Nested lists 8 (multiple nesting transitions)
5192 <ul><li><ul><li> bar
5202 1. Lists with start-of-line-transparent tokens before bullets: Comments
5216 2. Lists with start-of-line-transparent tokens before bullets: Template close
5228 List items are not parsed correctly following a <pre> block (bug 785)
5234 <ul><li> <pre>foo</pre>
5235 </li><li> <pre>bar</pre>
5242 List items from template
5253 * notSOL{{inner list}}
5272 List interrupted by empty line or heading
5282 <ul><li><ul><li> bar
5285 <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>
5286 <ul><li> Another list item
5292 Multiple list tags generated by templates
5307 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5310 <!--This line will NOT split the list-->
5312 <!--This line will NOT split the list either-->
5314 <!--foo--> <!--This line with more than 1 comment will split the list-->
5328 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5330 parsoid=wt2html,wt2wt
5334 * {{echo|<li>templated li-hack}}
5335 * <!--foo--> <li> unsupported li-hack with preceding comments
5338 <li><li>not a li-hack
5344 <li about="#mwt1" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<li>templated li-hack"}}}'>templated li-hack</li>
5345 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5348 <li></li><li>not a li-hack
5354 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5365 <ol><li> foo<ol><li> bar</li></ol></li></ol><ul><li> foo<ul><li> bar</li></ul></li></ul><dl><dd> foo<dl><dd> bar</dd></dl></dd></dl>
5368 # ------------------------------------------------------------------------
5369 # The next set of tests are about Parsoid's ability to handle badly nested
5370 # tags (parse, minimize scope of fixup, and roundtrip back)
5371 # ------------------------------------------------------------------------
5374 Unbalanced closing block tags break a list
5375 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5385 </li></ul></div><div>
5391 Unbalanced closing non-block tags don't break a list
5392 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5402 <ul><li>a<span></span>
5408 Unclosed formatting tags that straddle lists are closed and reopened
5409 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5417 </li><li> <s> b </s>
5422 List embedded in a non-block tag
5423 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5431 <p><small></small></p>
5437 <p><small></small></p>
5445 Magic Word: {{CURRENTDAY}}
5454 Magic Word: {{CURRENTDAY2}}
5463 Magic Word: {{CURRENTDAYNAME}}
5472 Magic Word: {{CURRENTDOW}}
5481 Magic Word: {{CURRENTMONTH}}
5490 Magic Word: {{CURRENTMONTHABBREV}}
5492 {{CURRENTMONTHABBREV}}
5499 Magic Word: {{CURRENTMONTHNAME}}
5501 {{CURRENTMONTHNAME}}
5508 Magic Word: {{CURRENTMONTHNAMEGEN}}
5510 {{CURRENTMONTHNAMEGEN}}
5517 Magic Word: {{CURRENTTIME}}
5526 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5535 Magic Word: {{CURRENTYEAR}}
5544 Magic Word: {{FULLPAGENAME}}
5546 title=[[User:Ævar Arnfjörð Bjarmason]]
5550 <p>User:Ævar Arnfjörð Bjarmason
5555 Magic Word: {{FULLPAGENAMEE}}
5557 title=[[User:Ævar Arnfjörð Bjarmason]]
5561 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5566 Magic Word: {{NAMESPACE}}
5568 title=[[User:Ævar Arnfjörð Bjarmason]]
5577 Magic Word: {{NAMESPACEE}}
5579 title=[[User:Ævar Arnfjörð Bjarmason]]
5588 Magic Word: {{NAMESPACENUMBER}}
5590 title=[[User:Ævar Arnfjörð Bjarmason]]
5599 Magic Word: {{NUMBEROFFILES}}
5608 Magic Word: {{PAGENAME}}
5610 title=[[User:Ævar Arnfjörð Bjarmason]]
5614 <p>Ævar Arnfjörð Bjarmason
5619 Magic Word: {{PAGENAME}} with metacharacters
5621 title=[['foo & bar = baz']]
5625 <p><i>'foo & bar = baz'</i>
5630 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5632 title=[[*RFC 1234 http://example.com/]]
5636 <p>*RFC 1234 http://example.com/
5641 Magic Word: {{PAGENAMEE}}
5643 title=[[User:Ævar Arnfjörð Bjarmason]]
5647 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5652 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5654 title=[[*RFC 1234 http://example.com/]]
5658 <p>*RFC_1234_http://example.com/
5663 Magic Word: {{REVISIONID}}
5672 Magic Word: {{SCRIPTPATH}}
5681 Magic Word: {{SERVER}}
5685 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5690 Magic Word: {{SERVERNAME}}
5699 Magic Word: {{SITENAME}}
5708 Case-sensitive magic words, when cased differently, should just be template transclusions
5715 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5716 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5717 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5718 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5723 Case-insensitive magic words should still work with weird casing.
5733 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5738 Namespace 1 {{ns:1}}
5747 Namespace 1 {{ns:01}}
5756 Namespace 0 {{ns:0}} (bug 4783)
5764 Namespace 0 {{ns:00}} (bug 4783)
5772 Namespace -1 {{ns:-1}}
5781 Namespace User {{ns:User}}
5790 Namespace User talk {{ns:User_talk}}
5799 Namespace User talk {{ns:uSeR tAlK}}
5808 Namespace File {{ns:File}}
5817 Namespace File {{ns:Image}}
5826 Namespace (lang=de) Benutzer {{ns:User}}
5837 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5843 <p>Benutzer Diskussion
5851 {{urlencode:hi world?!}}
5852 {{urlencode:hi world?!|WIKI}}
5853 {{urlencode:hi world?!|PATH}}
5854 {{urlencode:hi world?!|QUERY}}
5867 Magic links: internal link to RFC (bug 479)
5871 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5876 Magic links: RFC (bug 479)
5880 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5885 Magic links: ISBN (bug 1937)
5889 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5894 Magic links: PMID incorrectly converts space to underscore
5898 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5907 Nonexistent template
5909 {{thistemplatedoesnotexist}}
5911 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5916 Template with invalid target containing tags
5918 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5920 <p>{{a<b>b</b>|foo|a=b|a = b}}
5925 Template with invalid target containing unclosed tag
5927 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5929 <p>{{a<b>|foo|a=b|a = b}}</b>
5936 This is a test template
5944 <p>This is a test template
5949 Template with explicit namespace
5953 <p>This is a test template
5961 This is a test template with parameter {{{param}}}
5967 {{paramtest|param=foo}}
5969 <p>This is a test template with parameter foo
5974 Template:paramtestnum
5980 Template unnamed parameter
5982 {{paramtestnum|Main Page|the main page}}
5984 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5989 Template:templatesimple
5995 Template:templateredirect
5997 #redirect [[Template:templatesimple]]
6001 Template:templateasargtestnum
6007 Template:templateasargtest
6009 {{template{{{templ}}}}}
6013 Template:templateasargtest2
6019 Template with template name as unnamed argument
6021 {{templateasargtestnum|templatesimple}}
6028 Template with template name as argument
6030 {{templateasargtest|templ=simple}}
6037 Template with template name as argument (2)
6039 {{templateasargtest2|templ=templatesimple}}
6046 Template:templateasargtestdefault
6048 {{{{{templ|templatesimple}}}}}
6058 Template with default value
6060 {{templateasargtestdefault}}
6067 Template with default value (value set)
6069 {{templateasargtestdefault|templ=templa}}
6078 {{templateredirect}}
6085 Template with argument in separate line
6087 {{ templateasargtest |
6095 Template with complex template as argument
6098 param ={{ templateasargtest |
6101 <p>This is a test template with parameter (test)
6106 Template with thumb image (with link in description)
6109 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6111 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>
6116 Template:complextemplate
6118 {{{1}}} {{paramtest|
6119 param ={{{param}}}}}
6123 Template with complex arguments
6126 param ={{ templateasargtest |
6127 templ = simple }}|[[Template:complextemplate|link]]}}
6129 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6134 BUG 553: link with two variables in a piped link
6137 |[[{{{1}}}|{{{2}}}]]
6142 <td>[[{{{1}}}|{{{2}}}]]
6148 Magic variable as template parameter
6150 {{paramtest|param={{SITENAME}}}}
6152 <p>This is a test template with parameter MediaWiki
6159 [[{{{param}}}|link]]
6163 Template parameter as link source
6165 {{linktest|param=Main Page}}
6167 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6172 Template-generated attribute string (k='v')
6174 <span {{attr_str|id|v1}}>bar</span>
6176 <p><span id="v1">bar</span>
6183 including another template, {{paramtest|param={{{arg}}}}}
6187 Template passing argument to another template
6189 {{paramtest2|arg='hmm'}}
6191 <p>including another template, This is a test template with parameter 'hmm'
6202 Template as link source
6206 [[{{linktest2}}|Main Page]]
6208 [[{{linktest2}}]]Page
6210 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6211 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6212 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6230 Template infinite loop
6234 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6239 Template from main namespace
6258 BUG 529: Template with table, not included at beginning of line
6277 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6297 BUG 41: Template parameters shown as broken links
6306 Template with targets containing wikilinks
6310 {{[[{{echo|foo}}]]}}
6312 {{{{echo|[[foo}}]]}}
6314 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6315 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6323 ''None'' of '''this''' should be
6325 but rather passed unmodified
6329 # hmm, fix this or just deprecate msgnw and document its behavior?
6335 {{msgnw:MSGNW test}}
6337 <p>''None'' of '''this''' should be
6339 but rather passed unmodified
6347 {{int:youhavenewmessages|lots of money|not!}}
6349 <p>You have lots of money (not!).
6356 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6360 <includeonly> and <noinclude> being included
6371 <onlyinclude>Foo</onlyinclude>bar
6375 <onlyinclude> being included
6387 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6391 <onlyinclude> and <includeonly> being included
6400 <includeonly> and <noinclude> on a page
6402 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6409 Un-closed <noinclude>
6416 <onlyinclude> on a page
6418 <onlyinclude>Foo</onlyinclude>bar
6425 Un-closed <onlyinclude>
6432 Self-closed noinclude, includeonly, onlyinclude tags
6443 Unbalanced includeonly and noinclude tags
6447 |b</noinclude></noinclude>
6448 |c</noinclude></includeonly>
6449 |d</includeonly></includeonly>
6458 <td>c</includeonly>
6460 <td>d</includeonly></includeonly>
6466 Template:Includeonly section
6469 ==Includeonly section==
6475 Bug 6563: Edit link generation for section shown by <includeonly>
6477 {{includeonly section}}
6479 <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>
6480 <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>
6484 # Uses same input as the contents of [[Template:Includeonly section]]
6486 Bug 6563: Section extraction for section shown by <includeonly>
6491 ==Includeonly section==
6499 Bug 6563: Edit link generation for section suppressed by <includeonly>
6502 ==Includeonly section==
6506 <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>
6511 Bug 6563: Section extraction for section suppressed by <includeonly>
6516 ==Includeonly section==
6524 Un-closed <includeonly>
6531 ### <includeonly> and <noinclude> in attributes
6534 0. includeonly around the entire attribute
6536 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6538 <p><span id="v2">bar</span>
6543 1. includeonly in html attr key
6545 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6547 <p><span id="foo">bar</span>
6552 2. includeonly in html attr value
6554 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6555 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6557 <p><span id="v1">bar</span>
6558 <span id="v1">bar</span>
6563 3. includeonly in part of an attr value
6565 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6567 <p><span style="color:red;">bar</span>
6572 ### Testing parsing of templates where a template arg
6573 ### has the same name as the template itself.
6583 Templates: Template Name/Arg clash: 1. Use of positional param
6592 Templates: Template Name/Arg clash: 2. Use of named param
6601 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6610 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6614 Templates: 1. Simple use
6623 Templates: 2. Inside a block tag
6625 <div>{{echo|Foo}}</div>
6632 Templates: P-wrapping: 1a. Templates on consecutive lines
6643 Templates: P-wrapping: 1b. Templates on consecutive lines
6657 Templates: P-wrapping: 1c. Templates on consecutive lines
6660 {{echo|bar}} <div>baz</div>
6669 Templates: P-wrapping: 1d. Template preceded by comment-only line
6671 parsoid=wt2html,wt2wt
6677 <p typeof="mw:Transclusion">Bar
6682 Templates: Inline Text: 1. Multiple tmeplate uses
6684 {{echo|Foo}}bar{{echo|baz}}
6691 Templates: Inline Text: 2. Back-to-back template uses
6693 {{echo|Foo}}{{echo|bar}}
6700 Templates: Block Tags: 1. Multiple template uses
6702 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6704 <div>Foo</div><div>bar</div><div>baz</div>
6709 Templates: Block Tags: 2. Back-to-back template uses
6711 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6713 <div>Foo</div><div>bar</div>
6718 Templates: Links: 1. Simple example
6720 {{echo|[[Foo|bar]]}}
6722 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6727 Templates: Links: 2. Generation of link href
6729 [[{{echo|Foo}}|bar]]
6731 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6736 Templates: Links: 3. Generation of part of a link href
6738 [[Fo{{echo|o}}|bar]]
6742 [[Foo{{echo|bar}}baz]]
6744 [[Foo{{echo|bar}}|bar]]
6746 [[:Foo{{echo|bar}}]]
6748 [[:Foo{{echo|bar}}|bar]]
6750 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6751 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6752 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6753 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6754 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6755 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6760 Templates: Links: 4. Multiple templates generating link href
6762 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6764 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6769 Templates: Links: 5. Generation of link text
6771 [[Foo|{{echo|bar}}]]
6773 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6778 Templates: Links: 5. Nested templates (only outermost template should be marked)
6780 {{echo|[[{{echo|Foo}}|bar]]}}
6782 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6787 Templates: HTML Tag: 1. Generation of HTML attr. key
6789 <div {{echo|style}}="color:red;">foo</div>
6791 <div style="color:red;">foo</div>
6796 Templates: HTML Tag: 2. Generation of HTML attr. value
6798 <div style={{echo|'color:red;'}}>foo</div>
6800 <div style="color:red;">foo</div>
6805 Templates: HTML Tag: 3. Generation of HTML attr key and value
6807 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6809 <div style="color:red;">foo</div>
6814 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6816 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6818 <div title="This is a long title with just one piece templated">foo</div>
6823 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6825 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6827 <div title="This is a long title with just one piece templated">foo</div>
6832 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6834 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6836 <div title="This is a long title with just one piece templated">foo</div>
6841 Templates: HTML Tag: 7. Generation of partial attribute key string
6843 <div st{{echo|yle}}="color:red;">foo</div>
6845 <div style="color:red;">foo</div>
6850 Templates: HTML Tables: 1. Generating start of a HTML table
6852 {{echo|<table><tr><td>foo</td>}}</tr></table>
6854 <table><tr><td>foo</td></tr></table>
6859 Templates: HTML Tables: 2a. Generating middle of a HTML table
6861 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6863 <table><tr><td>foo</td></tr></table>
6868 Templates: HTML Tables: 2b. Generating middle of a HTML table
6870 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6872 <table><tr><td>foo</td></tr></table>
6877 Templates: HTML Tables: 3. Generating end of a HTML table
6879 <table><tr>{{echo|<td>foo</td></tr></table>}}
6881 <table><tr><td>foo</td></tr></table>
6886 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6888 {{echo|<table>}}<tr><td>foo</td></tr></table>
6890 <table><tr><td>foo</td></tr></table>
6895 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6897 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6899 <table><tr><td>foo</td></tr></table>
6904 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6906 <table><tr>{{echo|<td>}}foo</td></tr></table>
6908 <table><tr><td>foo</td></tr></table>
6913 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6915 <table><tr><td>foo{{echo|</td>}}</tr></table>
6917 <table><tr><td>foo</td></tr></table>
6922 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6924 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6926 <table><tr><td>foo</td></tr></table>
6931 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6933 <table><tr><td>foo</td></tr>{{echo|</table>}}
6935 <table><tr><td>foo</td></tr></table>
6940 Templates: HTML Tables: 5. Proper fostering of categories from inside
6942 parsoid=wt2html,wt2wt
6944 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6945 <!--Two categories (Bug 50330)-->
6946 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6948 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6949 <!--Two categories (Bug 50330)-->
6950 <link rel="mw:WikiLink/Category" href="./Category:Bar1"><link rel="mw:WikiLink/Category" href="./Category:Bar2"><table><tbody><tr><td>foo</td></tr></tbody></table>
6954 Templates: Wiki Tables: 1a. Fostering of entire template content
6962 <tr><td></td></tr></table>
6967 Templates: Wiki Tables: 1b. Fostering of entire template content
6980 <tr><td></td></tr></table>
6985 Templates: Wiki Tables: 2. Fostering of partial template content
6995 <tr><td></td></tr></table>
7000 Templates: Wiki Tables: 3. td-content via multiple templates
7003 {{echo|{{pipe}}a}}{{echo|b}}
7014 Templates: Wiki Tables: 4. Templated tags, no content
7020 <tr><td></td></tr></table>
7025 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7039 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7053 Templates: Lists: Multi-line list-items via templates
7055 *{{echo|a {{nonexistent|
7057 *{{echo|b {{nonexistent|
7060 <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>
7061 </li><li>b <a href="/index.php?title=Template:Nonexistent&action=edit&redlink=1" class="new" title="Template:Nonexistent (page does not exist)">Template:Nonexistent</a>
7067 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7069 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7071 <p><i>ab</i>c<i>d</i>e
7076 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7077 (PHP parser generates misnested html)
7079 parsoid=wt2html,wt2wt
7081 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7083 <p><span typeof="mw:Transclusion"><i>a</i></span><i typeof="mw:Transclusion"><span>b</span></i><span>c</span><i>d</i><span>e</span></p>
7087 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7088 (PHP parser generates misnested html)
7090 parsoid=wt2html,wt2wt
7092 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7094 <div typeof="mw:Transclusion"><i>a</i></div>
7095 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7096 <div typeof="mw:Transclusion">e</div>
7100 Templates: Ugly nesting: 4. Divs opened/closed across templates
7102 a<div>b{{echo|c</div>d}}e
7109 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7115 |{{echo|foo</table>}}
7119 <table typeof="mw:Transclusion">
7122 <td>foo</td></tr></tbody></table><span>bar</span>
7126 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7136 <td>1. {{echo|foo </table>}}</td>
7138 <td>2. {{echo|baz </table>}}</td>
7151 <table about="#mwt1" typeof="mw:Transclusion">
7156 <td >1. foo </td></tr></tbody></table></td>
7158 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7159 </span><span about="#mwt1">
7161 abc</span><span about="#mwt1">
7162 </span><span about="#mwt1">
7163 </span><span about="#mwt1">
7164 </span><span about="#mwt1">
7165 </span><span about="#mwt1">
7167 xyz</span><span about="#mwt1">
7168 </span><span about="#mwt1">
7173 Templates: Ugly templates: 3. newline-only template parameter
7182 # This looks like a bug: a single newline triggers p/br for some reason.
7184 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7195 Parser Functions: 1. Simple example
7204 Parser Functions: 2. Nested use (only outermost should be marked up)
7213 ### Pre-save transform tests
7216 pre-save transform: subst:
7222 This is a test template
7226 pre-save transform: normal template
7236 pre-save transform: nonexistent template
7240 {{thistemplatedoesnotexist}}
7242 {{thistemplatedoesnotexist}}
7247 pre-save transform: subst magic variables
7256 # This is bug 89, which I fixed. -- wtm
7258 pre-save transform: subst: templates with parameters
7262 {{subst:paramtest|param="something else"}}
7264 This is a test template with parameter "something else"
7270 <nowiki>'''not wiki'''</nowiki>
7274 pre-save transform: nowiki in subst (bug 1188)
7278 {{subst:nowikitest}}
7280 <nowiki>'''not wiki'''</nowiki>
7285 Template:commenttest
7287 This template has <!-- a comment --> in it.
7291 pre-save transform: comment in subst (bug 1936)
7295 {{subst:commenttest}}
7297 This template has <!-- a comment --> in it.
7301 pre-save transform: unclosed tag
7305 <nowiki>'''not wiki'''
7307 <nowiki>'''not wiki'''
7311 pre-save transform: mixed tag case
7315 <NOwiki>'''not wiki'''</noWIKI>
7317 <NOwiki>'''not wiki'''</noWIKI>
7321 pre-save transform: unclosed comment in <nowiki>
7325 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7327 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7330 # Leading @ in this template definition works around a limitation
7331 # in parsoid's parserTests which otherwise strips the <span> from the
7332 # result (confusing it for a template wrapper)
7336 @<span onmouseover="alert('crap')">Oh no</span>
7340 (confirming safety of fix for subst bug 1936)
7342 {{Template:dangerous}}
7344 <p>@<span>Oh no</span>
7349 pre-save transform: comment containing gallery (bug 5024)
7353 <!-- <gallery>data</gallery> -->
7355 <!-- <gallery>data</gallery> -->
7359 pre-save transform: comment containing extension
7363 <!-- <tag>data</tag> -->
7365 <!-- <tag>data</tag> -->
7369 pre-save transform: comment containing nowiki
7373 <!-- <nowiki>data</nowiki> -->
7375 <!-- <nowiki>data</nowiki> -->
7379 pre-save transform: <noinclude> in subst (bug 3298)
7389 pre-save transform: <onlyinclude> in subst (bug 3298)
7401 {{<includeonly>subst:</includeonly>Includes}}
7405 Template:SafeSubstTest
7407 {{<includeonly>safesubst:</includeonly>Includes}}
7411 bug 22297: safesubst: works during PST
7415 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7421 bug 22297: safesubst: works during normal parse
7430 subst: does not work during normal parse
7434 <p>{{subst:Includes}}
7439 pre-save transform: context links ("pipe trick")
7443 [[Article (context)|]]
7446 [[Bar:Article (context)|]]
7447 [[:Bar:Article (context)|]]
7449 [[|Article (context)]]
7453 [[Article (context)|Article]]
7454 [[Bar:Article|Article]]
7455 [[:Bar:Article|Article]]
7456 [[Bar:Article (context)|Article]]
7457 [[:Bar:Article (context)|Article]]
7459 [[Article (context)]]
7460 [[Bar:X (Y) Z|X (Y) Z]]
7461 [[:Bar:X (Y) Z|X (Y) Z]]
7465 pre-save transform: context links ("pipe trick") with interwiki prefix
7469 [[interwiki:Article|]]
7470 [[:interwiki:Article|]]
7471 [[interwiki:Bar:Article|]]
7472 [[:interwiki:Bar:Article|]]
7474 [[interwiki:Article|Article]]
7475 [[:interwiki:Article|Article]]
7476 [[interwiki:Bar:Article|Bar:Article]]
7477 [[:interwiki:Bar:Article|Bar:Article]]
7481 pre-save transform: context links ("pipe trick") with parens in title
7483 pst title=[[Somearticle (context)]]
7487 [[Article (context)|Article]]
7491 pre-save transform: context links ("pipe trick") with comma in title
7493 pst title=[[Someplace, Somewhere]]
7496 [[Otherplace, Elsewhere|]]
7497 [[Otherplace, Elsewhere, Anywhere|]]
7499 [[Otherplace, Somewhere|Otherplace]]
7500 [[Otherplace, Elsewhere|Otherplace]]
7501 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7505 pre-save transform: context links ("pipe trick") with parens and comma
7507 pst title=[[Someplace (IGNORED), Somewhere]]
7510 [[Otherplace (place), Elsewhere|]]
7512 [[Otherplace, Somewhere|Otherplace]]
7513 [[Otherplace (place), Elsewhere|Otherplace]]
7517 pre-save transform: context links ("pipe trick") with comma and parens
7519 pst title=[[Who, me? (context)]]
7522 [[Me, Myself, and I (1937 song)|]]
7524 [[Yes, you. (context)|Yes, you.]]
7525 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7529 pre-save transform: context links ("pipe trick") with namespace
7531 pst title=[[Ns:Somearticle]]
7535 [[Ns:Article|Article]]
7539 pre-save transform: context links ("pipe trick") with namespace and parens
7541 pst title=[[Ns:Somearticle (context)]]
7545 [[Ns:Article (context)|Article]]
7549 pre-save transform: context links ("pipe trick") with namespace and comma
7551 pst title=[[Ns:Somearticle, Context, Whatever]]
7555 [[Ns:Article, Context, Whatever|Article]]
7559 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7561 pst title=[[Ns:Somearticle, Context (context)]]
7565 [[Ns:Article (context)|Article]]
7569 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7571 pst title=[[Ns:Somearticle (IGNORED), Context]]
7575 [[Ns:Article, Context|Article]]
7579 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7583 [[Article(context)|]]
7584 [[Bar:Article(context)|]]
7585 [[:Bar:Article(context)|]]
7586 [[|Article(context)]]
7590 [[Article(context)|Article]]
7591 [[Bar:Article(context)|Article]]
7592 [[:Bar:Article(context)|Article]]
7593 [[Article(context)]]
7595 [[:Bar:X(Y)Z|X(Y)Z]]
7599 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7603 [[Article (context)|]]
7604 [[Bar:Article (context)|]]
7605 [[:Bar:Article (context)|]]
7606 [[|Article (context)]]
7610 [[Article (context)|Article]]
7611 [[Bar:Article (context)|Article]]
7612 [[:Bar:Article (context)|Article]]
7613 [[Article (context)]]
7614 [[Bar:X (Y) Z|X (Y) Z]]
7615 [[:Bar:X (Y) Z|X (Y) Z]]
7619 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7623 [[Article(context)|]]
7624 [[Bar:Article(context)|]]
7625 [[:Bar:Article(context)|]]
7626 [[|Article(context)]]
7630 [[Article(context)|Article]]
7631 [[Bar:Article(context)|Article]]
7632 [[:Bar:Article(context)|Article]]
7633 [[Article(context)]]
7635 [[:Bar:X(Y)Z|X(Y)Z]]
7639 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7643 [[Article (context), context|]]
7644 [[Article (context),context|]]
7645 [[Bar:Article (context), context|]]
7646 [[Bar:Article (context),context|]]
7647 [[:Bar:Article (context), context|]]
7648 [[:Bar:Article (context),context|]]
7650 [[Article (context), context|Article]]
7651 [[Article (context),context|Article]]
7652 [[Bar:Article (context), context|Article]]
7653 [[Bar:Article (context),context|Article]]
7654 [[:Bar:Article (context), context|Article]]
7655 [[:Bar:Article (context),context|Article]]
7659 pre-save transform: trim trailing empty lines
7663 Empty lines are trimmed
7669 Empty lines are trimmed
7673 pre-save transform: Signature expansion
7678 * <noinclude>~~~</noinclude>
7679 * <includeonly>~~~</includeonly>
7680 * <onlyinclude>~~~</onlyinclude>
7682 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7683 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7684 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7685 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7690 pre-save transform: Signature expansion in nowiki tags (bug 93)
7696 <nowiki>~~~~</nowiki>
7698 <includeonly><nowiki>~~~~</nowiki></includeonly>
7700 <noinclude><nowiki>~~~~</nowiki></noinclude>
7702 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7704 {{subst:Foo}} shall be converted to FOO
7706 As well as inside noinclude/onlyinclude
7707 <noinclude>{{subst:Foo}}</noinclude>
7708 <onlyinclude>{{subst:Foo}}</onlyinclude>
7710 But not inside includeonly
7711 <includeonly>{{subst:Foo}}</includeonly>
7715 <nowiki>~~~~</nowiki>
7717 <includeonly><nowiki>~~~~</nowiki></includeonly>
7719 <noinclude><nowiki>~~~~</nowiki></noinclude>
7721 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7723 FOO shall be converted to FOO
7725 As well as inside noinclude/onlyinclude
7726 <noinclude>FOO</noinclude>
7727 <onlyinclude>FOO</onlyinclude>
7729 But not inside includeonly
7730 <includeonly>{{subst:Foo}}</includeonly>
7734 ### Message transform tests
7737 message transform: magic variables
7747 message transform: should not transform wiki markup
7757 message transform: <noinclude> in transcluded template (bug 4926)
7767 message transform: <onlyinclude> in transcluded template (bug 4926)
7777 {{#special:}} page name, known
7781 {{#special:Recentchanges}}
7783 Special:RecentChanges
7787 {{#special:}} page name with subpage, known
7791 {{#special:Recentchanges/param}}
7793 Special:RecentChanges/param
7797 {{#special:}} page name, unknown
7801 {{#special:foobar nonexistent}}
7803 Special:Foobar nonexistent
7807 {{#speciale:}} page name, known
7811 {{#speciale:Recentchanges}}
7813 Special:RecentChanges
7817 {{#speciale:}} page name with subpage, known
7821 {{#speciale:Recentchanges/param}}
7823 Special:RecentChanges/param
7827 {{#speciale:}} page name, unknown
7831 {{#speciale:foobar nonexistent}}
7833 Special:Foobar_nonexistent
7842 [[Image:foobar.jpg]]
7844 <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>
7851 [[Image:foobar.jpg|right]]
7853 <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>
7858 Simple image (using File: namespace, now canonical)
7862 <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>
7869 [[Image:foobar.jpg|right|Caption text]]
7871 <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>
7876 Image with empty attribute
7878 [[Image:foobar.jpg|right||Caption text]]
7880 <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>
7885 Image with link tails
7887 123[[Image:foobar.jpg]]456
7888 123[[Image:foobar.jpg|right]]456
7889 123[[Image:foobar.jpg|thumb]]456
7891 <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
7893 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
7894 123<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div>456
7899 Image with multiple captions -- only last one is accepted
7901 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7903 <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>
7908 Image with width attribute at different positions
7910 [[Image:foobar.jpg|200px|right|Caption]]
7911 [[Image:foobar.jpg|right|200px|Caption]]
7912 [[Image:foobar.jpg|right|Caption|200px]]
7914 <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>
7915 <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>
7916 <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>
7921 Image with link parameter, wiki target
7923 [[Image:foobar.jpg|link=Target page]]
7925 <p><a href="/wiki/Target_page" title="Target page"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7930 Image with link parameter, URL target
7932 [[Image:foobar.jpg|link=http://example.com/]]
7934 <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>
7939 Image with link parameter, wgExternalLinkTarget
7941 [[Image:foobar.jpg|link=http://example.com/]]
7943 wgExternalLinkTarget='foobar'
7945 <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>
7950 Image with link parameter, wgNoFollowLinks set to false
7952 [[Image:foobar.jpg|link=http://example.com/]]
7954 wgNoFollowLinks=false
7956 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7961 Image with link parameter, wgNoFollowDomainExceptions
7963 [[Image:foobar.jpg|link=http://example.com/]]
7965 wgNoFollowDomainExceptions='example.com'
7967 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7972 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7974 [[Image:foobar.jpg|link=http://example.com/|Title]]
7976 wgExternalLinkTarget='foobar'
7978 <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>
7983 Image with empty link parameter
7985 [[Image:foobar.jpg|link=]]
7987 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
7992 Image with link parameter (wiki target) and unnamed parameter
7994 [[Image:foobar.jpg|link=Target page|Title]]
7996 <p><a href="/wiki/Target_page" title="Title"><img alt="Title" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
8001 Image with link parameter (URL target) and unnamed parameter
8003 [[Image:foobar.jpg|link=http://example.com/|Title]]
8005 <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>
8010 Thumbnail image with link parameter
8014 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8016 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="http://example.com/"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8021 Manually-specified thumbnail image
8025 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8027 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/File:Foobar.jpg"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8032 Manually-specified thumbnail image with explicit link to wiki page
8036 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8038 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8043 Manually-specified thumbnail image with explicit link to url
8047 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8049 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="http://example.com"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8054 Manually-specified thumbnail image with explicit no link
8058 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8060 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><img alt="" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8065 Manually-specified thumbnail image with explicit link and alt text
8069 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8071 <div class="thumb tright"><div class="thumbinner" style="width:137px;"><a href="/wiki/Main_Page" title="Main Page"><img alt="alttext" src="http://example.com/images/e/ea/Thumb.png" width="135" height="135" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Title</div></div></div>
8076 Image with frame and link
8078 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8080 <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>
8085 Image with frame and link and explicit alt
8087 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8089 <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>
8094 Image with wiki markup in implicit alt
8096 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8098 <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>
8103 Image with wiki markup in explicit alt
8105 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8107 <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>
8112 Link to image page- image page normally doesn't exists, hence edit link
8113 Add test with existing image page
8114 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8118 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8123 bug 18784 Link to non-existent image page with caption should use caption as link text
8125 [[:Image:test|caption]]
8127 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8132 Frameless image caption with a free URL
8134 [[Image:foobar.jpg|http://example.com]]
8136 <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>
8141 Thumbnail image caption with a free URL
8143 [[Image:foobar.jpg|thumb|http://example.com]]
8145 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
8150 Thumbnail image caption with a free URL and explicit alt
8152 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8154 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Alteration" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a></div></div></div>
8159 SVG thumbnails with no language set
8162 [[File:Foobar.svg|thumb|width=200]]
8164 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
8169 SVG thumbnails with language de
8172 [[File:Foobar.svg|thumb|width=200|lang=de]]
8174 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=File:Foobar.svg&lang=de" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/langde-180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/langde-270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/langde-360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>width=200</div></div></div>
8179 SVG thumbnails with invalid language code
8182 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8184 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.svg" class="image"><img alt="" src="http://example.com/images/thumb/f/ff/Foobar.svg/180px-Foobar.svg.png" width="180" height="180" class="thumbimage" srcset="http://example.com/images/thumb/f/ff/Foobar.svg/270px-Foobar.svg.png 1.5x, http://example.com/images/thumb/f/ff/Foobar.svg/360px-Foobar.svg.png 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.svg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>lang=invalid.language.code</div></div></div>
8189 BUG 1887: A ISBN with a thumbnail
8191 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8193 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div><a href="/wiki/Special:BookSources/1235467890" class="internal mw-magiclink-isbn">ISBN 1235467890</a></div></div></div>
8198 BUG 1887: A RFC with a thumbnail
8200 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8202 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div>
8207 BUG 1887: A mailto link with a thumbnail
8209 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8211 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>Please <a rel="nofollow" class="external free" href="mailto:nobody@example.com">mailto:nobody@example.com</a></div></div></div>
8215 # Pending resolution to bug 368
8217 BUG 648: Frameless image caption with a link
8219 [[Image:foobar.jpg|text with a [[link]] in it]]
8221 <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>
8226 BUG 648: Frameless image caption with a link (suffix)
8228 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8230 <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>
8235 BUG 648: Frameless image caption with an interwiki link
8237 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8239 <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>
8244 BUG 648: Frameless image caption with a piped interwiki link
8246 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8248 <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>
8253 Escape HTML special chars in image alt text
8255 [[Image:foobar.jpg|& < > "]]
8257 <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>
8262 BUG 499: Alt text should have Ӓ, not &1234;
8264 [[Image:foobar.jpg|♀]]
8266 <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>
8271 Broken image caption with link
8273 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8275 <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.
8280 Image caption containing another image
8282 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8284 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This is a caption with another <a href="/index.php?title=Special:Upload&wpDestFile=Icon.png" class="new" title="File:Icon.png">image</a> inside it!</div></div></div>
8289 Image caption containing a newline
8291 [[Image:Foobar.jpg|This
8294 <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>
8299 Parsoid: Image caption containing leading space
8300 (The leading space should not trigger nowiki escaping in wt2wt mode)
8302 [[Image:Foobar.jpg|thumb| bar]]
8304 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>bar</div></div></div>
8309 Bug 3090: External links other than http: in image captions
8311 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8313 <div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/200px-Foobar.jpg" width="200" height="23" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/300px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/400px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>This caption has <a rel="nofollow" class="external text" href="irc://example.net">irc</a> and <a rel="nofollow" class="external text" href="https://example.com">Secure</a> ext links in it.</div></div></div>
8320 [[Image:foobar.jpg|a|class=b]]
8322 <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>
8327 Localized image handling (1).
8331 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8333 <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>
8338 Localized image handling (2).
8342 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8344 <div class="thumb tleft"><div class="thumbinner" style="width:182px;"><a href="/wiki/Foo" title="Foo"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/Archivo:Foobar.jpg" class="internal" title="Aumentar"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>caption</div></div></div>
8349 "border", "frameless" and "class" attributes on an image.
8351 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8353 <p><a href="/wiki/File:Foobar.jpg" class="image" title="caption"><img alt="caption" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="extra thumbborder" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a>
8360 #REDIRECT [[File:Barfoo.jpg]]
8366 [[Image:Barfoo.jpg]]
8368 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8373 Missing image with uploads disabled
8377 [[Image:Foobaz.jpg]]
8379 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8383 # Parsoid-specific testing for images
8384 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8385 # Currently imperfect due to a flaw in the Parsoid testrunner
8389 Parsoid-specific image handling - simple image
8393 [[Image:Foobar.jpg]]
8396 <span class="mw-default-size" typeof="mw:Image">
8397 <a href="File:Foobar.jpg">
8398 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8405 Parsoid-specific image handling - simple image without link
8409 [[Image:Foobar.jpg|link=]]
8412 <span class="mw-default-size" typeof="mw:Image">
8414 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8421 Parsoid-specific image handling - simple image with specific link
8425 [[Image:Foobar.jpg|link=Main Page]]
8428 <span class="mw-default-size" typeof="mw:Image">
8429 <a href="Main_Page">
8430 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8437 Parsoid-specific image handling - simple image with size and middle alignment
8441 [[Image:Foobar.jpg|50px|middle]]
8444 <span class="mw-valign-middle" typeof="mw:Image">
8445 <a href="File:Foobar.jpg">
8446 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8453 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8457 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8460 <span class="mw-valign-baseline" typeof="mw:Image" data-mw="{"caption":"caption"}">
8461 <a href="File:Foobar.jpg">
8462 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/89px-Foobar.jpg" height="10" width="89">
8469 Parsoid-specific image handling - simple image with border and size spec
8473 [[Image:Foobar.jpg|50px|border|caption]]
8476 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8477 <a href="File:Foobar.jpg">
8478 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8485 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8489 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8491 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8492 <a href="File:Foobar.jpg">
8493 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8495 <figcaption>caption content</figcaption>
8500 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8504 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8506 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8507 <a href="File:Foobar.jpg">
8508 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8510 <figcaption>caption</figcaption>
8515 Parsoid-specific image handling - framed image with specific size and caption
8519 [[Image:Foobar.jpg|500x50px|frame|caption]]
8521 <figure typeof="mw:Image/Frame">
8522 <a href="File:Foobar.jpg">
8523 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8525 <figcaption>caption</figcaption>
8530 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8534 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8536 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
8537 <a href="File:Foobar.jpg">
8538 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8540 <figcaption>caption</figcaption>
8545 Parsoid-specific image handling - frameless image with specific size, border, and caption
8549 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8552 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8553 <a href="File:Foobar.jpg">
8554 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8560 #Parsoid-specific image handling - simple image with a formatted caption
8564 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8567 #<span typeof="mw:Image">
8568 #<a class="mw-default-size" href="Image:Foobar.jpg">
8569 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8580 Subpage test/subpage
8588 subpage title=[[Subpage test]]
8592 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8597 Subpage noslash link
8599 subpage title=[[Subpage test]]
8603 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8607 # TODO: make this PHP-parser compatible!
8609 Relative subpage noslash link
8611 parsoid=wt2wt,wt2html,html2html
8612 subpage title=[[Subpage test/1/2/3/4]]
8618 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8619 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8622 # TODO: make this PHP-parser compatible!
8624 Parsoid: dot-slash prefixed wikilinks
8626 parsoid=wt2wt,wt2html,html2html
8634 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8635 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8636 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8644 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8649 BUG 561: {{/Subpage}}
8651 subpage title=[[Page]]
8655 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8663 Category:MediaWiki User's Guide
8671 [[:Category:MediaWiki User's Guide]]
8673 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8682 [[Category:MediaWiki User's Guide]]
8684 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8688 PAGESINCATEGORY invalid title fatal (r33546 fix)
8690 {{PAGESINCATEGORY:<bogus>}}
8697 Category with different sort key
8701 [[Category:MediaWiki User's Guide|Foo]]
8703 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8707 Category with identical sort key
8711 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8713 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8717 Category with empty sort key
8722 [[Category:MediaWiki User's Guide|]]
8724 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8728 Category with empty sort key and parentheses
8733 [[Category:Foo (bar)|]]
8735 [[Category:Foo (bar)|Foo]]
8739 Category with link tail
8744 123[[Category:Foo]]456
8746 123[[Category:Foo]]456
8750 Category with template
8755 [[Category:{{echo|Foo}}]]
8757 [[Category:{{echo|Foo}}]]
8761 Category with template in sort key
8766 [[Category:Foo|{{echo|Bar}}]]
8768 [[Category:Foo|{{echo|Bar}}]]
8772 Category with template in sort key and title
8777 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8779 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8783 Category / paragraph interactions
8785 Foo [[Category:Baz]] Bar
8787 Foo [[Category:Baz]]
8795 [[Category:Baz]] Bar
8808 {{echo|[[Category:Baz]]}}
8823 Parsoid: Serialize link to category page with colon escape
8829 [[:Category:Foo|Bar]]
8832 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8833 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8838 Parsoid: Link prefix/suffixes aren't applied to category links
8840 parsoid=wt2html,wt2wt,html2html
8845 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
8849 Parsoid: Serialize link to file page with colon escape
8855 [[:File:Foo.png|Bar]]
8858 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8859 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8864 Parsoid: Serialize a genuine category link without colon escape
8869 [[Category:Foo|Bar]]
8871 <link rel="mw:WikiLink/Category" href="Category:Foo">
8872 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8876 ### Inter-language links
8879 Inter-language links
8885 [[zh:食品]]
8887 es:Alimento fr:Nourriture zh:食品
8891 Duplicate interlanguage links (bug 24502)
8907 Basic section headings
8914 ===Smaller headline===
8917 <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>
8920 <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>
8923 <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>
8929 Section headings with TOC
8932 === Subheadline 1 ===
8933 ===== Skipping a level =====
8934 ====== Skipping a level ======
8938 ===Another headline===
8940 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8942 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8944 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8946 <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>
8948 <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>
8955 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8957 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8962 <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>
8963 <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>
8964 <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>
8965 <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>
8966 <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>
8969 <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>
8973 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8975 Handling of sections up to level 6 and beyond
8978 == Level 2 Heading==
8979 === Level 3 Heading===
8980 ==== Level 4 Heading====
8981 ===== Level 5 Heading=====
8982 ====== Level 6 Heading======
8983 ======= Level 7 Heading=======
8984 ======== Level 8 Heading========
8985 ========= Level 9 Heading=========
8986 ========== Level 10 Heading==========
8988 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8990 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
8992 <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>
8994 <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>
8996 <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>
8998 <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>
9000 <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>
9001 <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>
9002 <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>
9003 <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>
9004 <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>
9017 <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>
9018 <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>
9019 <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>
9020 <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>
9021 <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>
9022 <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>
9023 <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>
9024 <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>
9025 <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>
9026 <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>
9031 TOC regression (bug 9764)
9035 ==== title 1.1.1 ====
9040 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9042 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9044 <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>
9046 <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>
9049 <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>
9052 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9054 <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>
9059 <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>
9060 <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>
9061 <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>
9062 <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>
9063 <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>
9064 <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>
9069 TOC with wgMaxTocLevel=3 (bug 6204)
9075 ==== title 1.1.1 ====
9080 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9082 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9084 <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>
9085 <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>
9088 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9090 <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>
9095 <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>
9096 <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>
9097 <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>
9098 <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>
9099 <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>
9100 <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>
9105 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9111 ====Section 1.1.1====
9112 ====Section 1.1.1.1====
9115 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9117 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9119 <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>
9122 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9125 <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>
9126 <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>
9127 <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>
9128 <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>
9129 <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>
9135 Resolving duplicate section names
9140 <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>
9141 <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>
9146 Resolving duplicate section names with differing case (bug 10721)
9151 <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>
9152 <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>
9164 Template with sections, __NOTOC__
9171 <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>
9172 <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>
9173 <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>
9174 <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>
9179 __NOEDITSECTION__ keyword
9185 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9186 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9191 Link inside a section heading
9193 ==Section with a [[Main Page|link]] in it==
9195 <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>
9200 TOC regression (bug 12077)
9207 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9209 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9211 <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>
9214 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9217 <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>
9218 <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>
9219 <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>
9224 BUG 1219 URL next to image (good)
9226 http://example.com [[Image:foobar.jpg]]
9228 <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>
9233 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9236 The line above must have a trailing space!
9239 But just in case it doesn't...
9241 <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>
9242 <p>The line above must have a trailing space!
9244 <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>
9245 <p>But just in case it doesn't...
9250 Header with special characters (bug 25462)
9252 The tooltips shall not show entities to the user (ie. be double escaped)
9269 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9271 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9273 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9274 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9275 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9276 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9277 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9280 <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>
9283 <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>
9286 <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>
9289 <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>
9292 <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>
9298 Headers with excess '=' characters
9299 (Are similar tests necessary beyond the 1st level?)
9303 =''italic'' heading==
9304 ==''italic'' heading=
9306 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9308 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9309 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9310 <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>
9311 <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>
9314 <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>
9315 <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>
9316 <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>
9317 <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>
9322 HTML headers vs TOC (bug 23393)
9323 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9335 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9337 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9339 <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>
9340 <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>
9343 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9345 <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>
9346 <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>
9351 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9352 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9353 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9354 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9355 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9356 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9361 BUG 1219 URL next to image (broken)
9363 http://example.com[[Image:foobar.jpg]]
9365 <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>
9370 Bug 1186 news: in the middle of text
9372 http://en.wikinews.org/wiki/Wikinews:Workplace
9374 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9380 Namespaced link must have a title
9389 Namespaced link must have a title (bad fragment version)
9391 [[Project:#fragment]]
9393 <p>[[Project:#fragment]]
9399 ### HTML tags and HTML attributes
9403 div with no attributes
9405 <div>HTML rocks</div>
9407 <div>HTML rocks</div>
9412 div with double-quoted attribute
9414 <div id="rock">HTML rocks</div>
9416 <div id="rock">HTML rocks</div>
9421 div with single-quoted attribute
9423 <div id='rock'>HTML rocks</div>
9425 <div id="rock">HTML rocks</div>
9430 div with unquoted attribute
9432 <div id=rock>HTML rocks</div>
9434 <div id="rock">HTML rocks</div>
9439 div with illegal double attributes
9441 <div id="a" id="b">HTML rocks</div>
9443 <div id="b">HTML rocks</div>
9447 # FIXME: produce empty string instead of "class" in the PHP parser, following
9450 div with empty attribute value, space before equals
9454 <div class =>HTML rocks</div>
9456 <div class="">HTML rocks</div>
9460 # The PHP parser escapes the opening brace to { for some reason, so
9461 # disabled this test for it.
9463 div with braces in attribute value
9467 <div title="{}">Foo</div>
9469 <div title="{}">Foo</div>
9472 # This it very inconsistent in the PHP parser: it returns
9473 # class="class" if there is a space between the name and the equal sign (see
9474 # 'div with empty attribute value, space before equals'), but strips the
9475 # attribute completely if the space is missing. We hope that not much content
9476 # depends on this, so are implementing the behavior below in Parsoid for
9477 # consistencies' sake. Disabled for the PHP parser.
9478 # FIXME: fix this behavior in the PHP parser?
9480 div with empty attribute value, no space before equals
9484 <div class=>HTML rocks</div>
9486 <div class="">HTML rocks</div>
9491 HTML multiple attributes correction
9493 <p class="error" class="awesome">Awesome!</p>
9495 <p class="awesome">Awesome!</p>
9500 Table multiple attributes correction
9503 !+ class="error" class="awesome"| status
9508 <th class="awesome"> status
9516 <DIV ID="x">HTML ROCKS</DIV>
9518 <div id="x">HTML ROCKS</div>
9523 Non-ASCII pseudo-tags are rendered as text
9532 Pseudo-tag with URL 'name' renders as url link
9534 <http://example.com/>
9536 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9541 text with amp in the middle of nowhere
9545 <p>Remember AT&T?
9550 text with character entity: eacute
9552 I always thought é was a cute letter.
9554 <p>I always thought é was a cute letter.
9559 text with entity-escaped character entity-like string: eacute
9561 I always thought &eacute; was a cute letter.
9563 <p>I always thought &eacute; was a cute letter.
9568 text with undefined character entity: xacute
9570 I always thought &xacute; was a cute letter.
9572 <p>I always thought &xacute; was a cute letter.
9578 ### Nesting tests (see bug 41545, 50604, 51081)
9581 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
9582 # Note that html2wt is considerably more difficult if we use <b> in
9583 # the test case, instead of <big>
9585 Ensure that HTML adoption agency algorithm is properly implemented.
9587 <big>X<big>Y</big>Z</big>
9589 <p><big>X<big>Y</big>Z</big>
9593 # This was bug 41545 in the PHP parser.
9597 <kbd>X<kbd>Y</kbd>Z</kbd>
9599 <p><kbd>X<kbd>Y</kbd>Z</kbd>
9603 # The following cases were bug 51081 in the PHP parser.
9604 # Note that there are some other nestable tags (b, i, etc) which are
9605 # not covered; see bug 51081 for discussion.
9609 <em>X<em>Y</em>Z</em>
9611 <p><em>X<em>Y</em>Z</em>
9618 <strong>X<strong>Y</strong>Z</strong>
9620 <p><strong>X<strong>Y</strong>Z</strong>
9629 <p><q>X<q>Y</q>Z</q>
9636 <ruby>X<ruby>Y</ruby>Z</ruby>
9638 <p><ruby>X<ruby>Y</ruby>Z</ruby>
9645 <bdo>X<bdo>Y</bdo>Z</bdo>
9647 <p><bdo>X<bdo>Y</bdo>Z</bdo>
9659 [[Media:Foobar.jpg]]
9661 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9666 Media link with text
9668 [[Media:Foobar.jpg|A neat file to look at]]
9670 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9674 # FIXME: this is still bad HTML tag nesting
9676 Media link with nasty text
9677 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9679 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9681 <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>
9686 Media link to nonexistent file (bug 1702)
9688 [[Media:No such.jpg]]
9690 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9695 Image link to nonexistent file (bug 1850 - good)
9697 [[Image:No such.jpg]]
9699 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9704 :Image link to nonexistent file (bug 1850 - bad)
9706 [[:Image:No such.jpg]]
9708 <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>
9715 Character reference normalization in link text (bug 1938)
9717 [[Main Page|this&that]]
9719 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9726 Test for unicode normalization
9728 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9732 (bug 19451) Links should refer to the normalized form.
9740 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9741 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9742 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9743 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9744 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9749 Empty attribute crash test (bug 2067)
9751 <font color="">foo</font>
9753 <p><font color="">foo</font>
9758 Empty attribute crash test single-quotes (bug 2067)
9760 <font color=''>foo</font>
9762 <p><font color="">foo</font>
9767 Attribute test: equals, then nothing
9769 <font color=>foo</font>
9776 Attribute test: unquoted value
9778 <font color=x>foo</font>
9780 <p><font color="x">foo</font>
9785 Attribute test: unquoted but illegal value (hash)
9787 <font color=#x>foo</font>
9789 <p><font color="#x">foo</font>
9794 Attribute test: no value
9796 <font color>foo</font>
9798 <p><font color="color">foo</font>
9803 Bug 2095: link with three closing brackets
9807 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9812 Bug 2095: link with pipe and three closing brackets
9816 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9821 Bug 2095: link with pipe and three closing brackets, version 2
9823 [[Main Page|[http://example.com/]]]
9825 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9835 Template:Dangerous attribute
9837 " onmouseover="alert(document.cookie)
9841 Template:Dangerous style attribute
9843 border-size: expression(alert(document.cookie))
9849 <div style="float: right; {{{1}}}">Magic div</div>
9853 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9855 <div title="{{test}}"></div>
9857 <div title="This is a test template"></div>
9862 Bug 2304: HTML attribute safety (dangerous template; 2309)
9864 <div title="{{dangerous attribute}}"></div>
9866 <div title=""></div>
9871 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9873 <div style="{{dangerous style attribute}}"></div>
9875 <div style="/* insecure input */"></div>
9880 Bug 2304: HTML attribute safety (safe parameter; 2309)
9882 {{div style|width: 200px}}
9884 <div style="float: right; width: 200px">Magic div</div>
9889 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9891 {{div style|width: expression(alert(document.cookie))}}
9893 <div style="/* insecure input */">Magic div</div>
9898 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9900 {{div style|"><script>alert(document.cookie)</script>}}
9902 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9907 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9909 {{div style|" ><script>alert(document.cookie)</script>}}
9911 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9916 Bug 2304: HTML attribute safety (link)
9918 <div title="[[Main Page]]"></div>
9920 <div title="[[Main Page]]"></div>
9925 Bug 2304: HTML attribute safety (italics)
9927 <div title="''foobar''"></div>
9929 <div title="''foobar''"></div>
9934 Bug 2304: HTML attribute safety (bold)
9936 <div title="'''foobar'''"></div>
9938 <div title="'''foobar'''"></div>
9944 Bug 2304: HTML attribute safety (ISBN)
9946 <div title="ISBN 1234567890"></div>
9948 <div title="ISBN 1234567890"></div>
9953 Bug 2304: HTML attribute safety (RFC)
9955 <div title="RFC 1234"></div>
9957 <div title="RFC 1234"></div>
9962 Bug 2304: HTML attribute safety (PMID)
9964 <div title="PMID 1234567890"></div>
9966 <div title="PMID 1234567890"></div>
9971 Bug 2304: HTML attribute safety (web link)
9973 <div title="http://example.com/"></div>
9975 <div title="http://example.com/"></div>
9980 Bug 2304: HTML attribute safety (named web link)
9982 <div title="[http://example.com/ link]"></div>
9984 <div title="[http://example.com/ link]"></div>
9989 Bug 3244: HTML attribute safety (extension; safe)
9991 <div style="<nowiki>background:blue</nowiki>"></div>
9993 <div style="background:blue"></div>
9998 Bug 3244: HTML attribute safety (extension; unsafe)
10000 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10002 <div style="/* insecure input */"></div>
10006 # More MSIE fun discovered by Tom Gilder
10009 MSIE CSS safety test: spurious slash
10011 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10013 <div style="/* insecure input */">evil</div>
10018 MSIE CSS safety test: hex code
10020 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10022 <div style="/* insecure input */">evil</div>
10027 MSIE CSS safety test: comment in url
10029 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10031 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10036 MSIE CSS safety test: comment in expression
10038 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10040 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10046 Table attribute legitimate extension
10049 !+ style="<nowiki>color:blue</nowiki>"| status
10054 <th style="color:blue"> status
10060 Table attribute safety
10063 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10068 <th style="/* insecure input */"> status
10074 CSS line continuation 1
10076 <div style="background-image: u\ rl(test.jpg);"></div>
10078 <div style="/* insecure input */"></div>
10083 CSS line continuation 2
10085 <div style="background-image: u\ rl(test.jpg); "></div>
10087 <div style="/* insecure input */"></div>
10098 Expansion of multi-line templates in attribute values (bug 6255)
10100 <div style="background: {{identity|#00FF00}}">-</div>
10102 <div style="background: #00FF00">-</div>
10108 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10110 <div style="background:
10113 <div style="background: #00FF00">-</div>
10118 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10120 <div style="background: #00FF00">-</div>
10122 <div style="background: #00FF00">-</div>
10127 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
10130 Parser hook: empty input
10143 Parser hook: empty input using terminated empty elements
10156 Parser hook: empty input using terminated empty elements (space before)
10169 Parser hook: basic input
10183 Parser hook: case insensitive
10197 Parser hook: case insensitive, redux
10210 Parser hook: nested tags
10214 <tag><tag></tag></tag>
10225 Parser hook: basic arguments
10227 <tag width=200 height = "100" depth = '50' square></tag>
10235 'square' => 'square',
10242 Parser hook: argument containing a forward slash (bug 5344)
10244 <tag filename='/tmp/bla'></tag>
10249 'filename' => '/tmp/bla',
10256 Parser hook: empty input using terminated empty elements (bug 2374)
10269 # </tag> should be output literally since there is no matching tag that begins it
10271 Parser hook: basic arguments using terminated empty elements (bug 2374)
10273 <tag width=200 height = "100" depth = '50' square/>
10283 'square' => 'square',
10292 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10296 Parser hook: static parser hook not inside a comment
10298 <statictag>hello, world</statictag>
10299 <statictag action=flush/>
10307 Parser hook: static parser hook inside a comment
10309 <!-- <statictag>hello, world</statictag> -->
10310 <statictag action=flush/>
10316 # Nested template calls; this case was broken by Parser.php rev 1.506,
10320 Template:One-parameter
10322 (My parameter is: {{{1}}})
10326 Template:Map-one-parameter
10328 {{{{{1}}}|{{{2}}}}}
10332 Nested template calls
10334 {{Map-one-parameter|One-parameter|param}}
10336 <p>(My parameter is: param)
10345 Sanitizer: Closing of open tags
10347 <s></s><table></table>
10349 <s></s><table></table>
10354 Sanitizer: Closing of open but not closed tags
10363 Sanitizer: Closing of closed but not open tags
10372 Sanitizer: Closing of closed but not open table tags
10374 Table not started</td></tr></table>
10376 <p>Table not started</td></tr></table>
10381 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10383 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10385 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10390 Sanitizer: Validating the contents of the id attribute (bug 4515)
10396 Something, but definitely not <br id="9" />...
10400 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10404 <br id="foo" /><br id="foo" />
10406 Something need to be done. foo-2 ?
10410 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10413 <meta itemprop="hello" content="world">
10414 <meta http-equiv="refresh" content="5">
10415 <meta itemprop="hello" http-equiv="refresh" content="5">
10416 <link itemprop="hello" href="{{SERVER}}">
10417 <link rel="stylesheet" href="{{SERVER}}">
10418 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10421 <div itemscope="itemscope">
10422 <p> <meta itemprop="hello" content="world" />
10423 <meta http-equiv="refresh" content="5">
10424 <meta itemprop="hello" content="5" />
10426 <link itemprop="hello" href="http://example.org" />
10427 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10428 <link itemprop="hello" href="http://example.org" />
10434 Language converter: output gets cut off unexpectedly (bug 5757)
10438 this bit is safe: }-
10440 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10442 then we get cut off here: }-
10444 all additional text is vanished
10446 <p>this bit is safe: }-
10447 </p><p>but if we add a conversion instance: xxx
10448 </p><p>then we get cut off here: }-
10449 </p><p>all additional text is vanished
10454 Self closed html pairs (bug 5487)
10457 <center><font id="bug" />Centered text</center>
10458 <div><font id="bug2" />In div text</div>
10460 <center><font id="bug" />Centered text</center>
10461 <div><font id="bug2" />In div text</div>
10470 Punctuation: nbsp before exclamation
10474 <p>C'est grave !
10479 Punctuation: CSS !important (bug 11874)
10481 <div style="width:50% !important">important</div>
10483 <div style="width:50% !important">important</div>
10488 Punctuation: CSS ! important (bug 11874; with space after)
10490 <div style="width:50% ! important">important</div>
10492 <div style="width:50% ! important">important</div>
10498 HTML bullet list, closed tags (bug 5497)
10513 HTML bullet list, unclosed tags (bug 5497)
10530 HTML ordered list, closed tags (bug 5497)
10545 HTML ordered list, unclosed tags (bug 5497)
10562 HTML nested bullet list, closed tags (bug 5497)
10587 HTML nested bullet list, open tags (bug 5497)
10612 HTML nested ordered list, closed tags (bug 5497)
10637 HTML nested ordered list, open tags (bug 5497)
10662 HTML ordered list item with parameters oddity
10664 <ol><li id="fragment">One</li></ol>
10666 <ol><li id="fragment">One</li></ol>
10671 bug 5918: autonumbering
10673 [http://first/] [http://second] [ftp://ftp]
10677 [mailto:enclosed@mail.tld With target]
10679 [mailto:enclosed@mail.tld]
10681 mailto:inline@mail.tld
10683 <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>
10684 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10685 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10686 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10687 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10693 # Security and HTML correctness
10694 # From Nick Jenkins' fuzz testing
10698 Fuzz testing: Parser13
10713 Fuzz testing: Parser14
10718 <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>
10719 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10721 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10728 Fuzz testing: Parser14-table
10733 <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>
10734 <table style="__TOC__">
10740 # Known to produce bogus xml (extra </td>)
10742 Fuzz testing: Parser16
10762 Fuzz testing: Parser21
10765 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10770 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10780 Fuzz testing: Parser22
10782 http://===r:::https://b
10786 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10794 # Known to produce bad XML for now
10796 Fuzz testing: Parser24
10803 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10804 <br style="onmouseover='alert(document.cookie);' " />
10806 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10811 <u class="|">}}}} >
10812 <br style="onmouseover='alert(document.cookie);'" />
10814 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10823 # Note: the current result listed for this is not what the original one was,
10824 # but the original bug was JavaScript injection, which is fixed in any case.
10825 # It's not clear that the original result listed was any more correct than the
10826 # current one. Original result:
10829 # <li class="||">
10830 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10832 Fuzz testing: Parser25 (bug 6055)
10838 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10840 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10845 Fuzz testing: URL adjacent extension (with space, clean)
10848 http://example.com <nowiki>junk</nowiki>
10850 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10855 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10858 http://example.com<nowiki>junk</nowiki>
10860 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10865 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10868 http://example.com<pre>junk</pre>
10870 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10875 Fuzz testing: image with bogus manual thumbnail
10877 [[Image:foobar.jpg|thumbnail= ]]
10879 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10884 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10886 <pre dir=" "></pre>
10888 <pre dir=" "></pre>
10893 Parsing optional HTML elements (Bug 6171)
10898 <td> Some tabular data</td>
10899 <td> More tabular data ...
10900 <td> And yet som tabular data</td>
10906 <td> Some tabular data</td>
10907 <td> More tabular data ...
10908 </td><td> And yet som tabular data</td>
10915 Correct handling of <td>, <tr> (Bug 6171)
10920 <td> Some tabular data</td>
10921 <td> More tabular data ...</td>
10922 <td> And yet som tabular data</td>
10928 <td> Some tabular data</td>
10929 <td> More tabular data ...</td>
10930 <td> And yet som tabular data</td>
10938 Parsing crashing regression (fr:JavaScript)
10942 <p></body></x>
10947 Inline wiki vs wiki block nesting
10953 <p><b>Bold paragraph</b>
10954 </p><p>New wiki paragraph
10959 Inline HTML vs wiki block nesting
10967 <p><b>Bold paragraph</b>
10968 </p><p>New wiki paragraph
10972 # Original result was this:
10973 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10975 # While that might be marginally more intuitive, maybe, the six-apostrophe
10976 # construct is clearly pathological and the result stated here (which is what
10977 # the parser actually does) is about as reasonable as anything.
10979 Mixing markup for italics and bold
10982 '''bold''''''bold''bolditalics'''''
10984 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
10992 Article for special page transclusion test
10996 Special page transclusion
10999 {{Special:Prefixindex/Xyzzyx}}
11001 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11006 Special page transclusion twice (bug 5021)
11009 {{Special:Prefixindex/Xyzzyx}}
11010 {{Special:Prefixindex/Xyzzyx}}
11012 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11013 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11018 Transclusion of default MediaWiki message
11020 {{MediaWiki:Mainpage}}
11027 Transclusion of nonexistent MediaWiki message
11029 {{MediaWiki:Mainpagexxx}}
11031 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11036 Transclusion of MediaWiki message with underscore
11038 {{MediaWiki:history_short}}
11045 Transclusion of MediaWiki message with space
11047 {{MediaWiki:history short}}
11054 Invalid header with following text
11064 Section extraction test (section 0)
11084 Section extraction test (section 1)
11106 Section extraction test (section 2)
11127 Section extraction test (section 3)
11147 Section extraction test (section 4)
11171 Section extraction test (section 5)
11191 Section extraction test (section 6)
11212 Section extraction test (section 7)
11232 Section extraction test (section 8)
11252 Section extraction test (section 9)
11273 Section extraction test (section 10)
11293 Section extraction test (nonexistent section 11)
11312 Section extraction test with bogus heading (section 1)
11317 ==bogus== not a legal section
11321 ==bogus== not a legal section
11325 Section extraction test with bogus heading (section 2)
11330 ==bogus== not a legal section
11337 Section extraction test with comment after heading (section 1)
11349 Section extraction test with comment after heading (section 2)
11361 Section extraction test with bogus <nowiki> heading (section 1)
11366 ==bogus== <nowiki>not a legal section</nowiki>
11370 ==bogus== <nowiki>not a legal section</nowiki>
11374 Section extraction test with bogus <nowiki> heading (section 2)
11379 ==bogus== <nowiki>not a legal section</nowiki>
11386 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11387 # instead of respecting commented sections
11389 Section extraction prefixed by comment (section 1)
11400 Section extraction prefixed by comment (section 2)
11411 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11412 # instead of respecting HTML-style headings
11414 Section extraction, mixed wiki and html (section 1)
11430 Section extraction, mixed wiki and html (section 2)
11446 # Formerly testing for bug 3342
11448 Section extraction, heading surrounded by <noinclude>
11452 <noinclude>==unmarked==</noinclude>
11458 # Test behavior of bug 19910
11460 Sectiion with all-equals
11465 The line above must have a trailing space
11468 But just in case it doesn't...
11472 But just in case it doesn't...
11476 Section replacement test (section 0)
11507 Section replacement test (section 1)
11536 Section replacement test (section 2)
11566 Section replacement test (section 3)
11597 Section replacement test (section 4)
11624 Section replacement test (section 5)
11655 Section replacement test (section 6)
11685 Section replacement test (section 7)
11716 Section replacement test (section 8)
11747 Section replacement test (section 9)
11776 Section replacement test (section 10)
11806 Section replacement test with initial whitespace (bug 13728)
11810 Preformatted initial line
11814 Preformatted initial line
11821 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11833 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11846 Section extraction, <pre> around bogus header (bug 10309)
11863 Section replacement, <pre> around bogus header (bug 10309)
11865 noxml replace=2,"xxx"
11886 Handling of 
 in URLs
11890 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11897 5 quotes, code coverage +1 line (php)
11904 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11906 5 quotes, code coverage +1 line (parsoid)
11912 <p><i><b></b></i></p>
11916 Special:Search page linking.
11920 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11932 * {{ROOTPAGENAMEE}}
11934 * {{BASEPAGENAMEE}}
11936 * {{TALKPAGENAMEE}}
11937 * {{SUBJECTPAGENAME}}
11938 * {{SUBJECTPAGENAMEE}}
11944 * {{SUBJECTSPACEE}}
11945 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11947 <ul><li> Parser test
11948 </li><li> Parser test
11949 </li><li> Parser test
11950 </li><li> Parser_test
11951 </li><li> Parser test
11952 </li><li> Parser_test
11953 </li><li> Parser test
11954 </li><li> Parser_test
11955 </li><li> Talk:Parser test
11956 </li><li> Talk:Parser_test
11957 </li><li> Parser test
11958 </li><li> Parser_test
11965 </li><li> <a href="/index.php?title=Template:Dynamic&action=edit&redlink=1" class="new" title="Template:Dynamic (page does not exist)">Template:Dynamic</a>
11969 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11979 image4 |300px| centre
11980 image5.svg| http://///////
11985 <ul class="gallery">
11986 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11987 <div style="height: 150px;">Image1.png</div>
11988 <div class="gallerytext">
11991 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11992 <div style="height: 150px;">Image2.gif</div>
11993 <div class="gallerytext">
11998 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
11999 <div style="height: 150px;">Image3</div>
12000 <div class="gallerytext">
12003 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12004 <div style="height: 150px;">Image4</div>
12005 <div class="gallerytext">
12010 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12011 <div style="height: 150px;">Image5.svg</div>
12012 <div class="gallerytext">
12013 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12017 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12018 <div style="height: 150px;">* image6</div>
12019 <div class="gallerytext">
12027 Gallery (with options)
12029 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12030 File:Nonexistant.jpg|caption
12031 File:Nonexistant.jpg
12032 image:foobar.jpg|some '''caption''' [[Main Page]]
12034 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12037 <ul class="gallery" style="max-width: 226px;_width: 226px;">
12038 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12039 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12040 <div style="height: 70px;">Nonexistant.jpg</div>
12041 <div class="gallerytext">
12046 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12047 <div style="height: 70px;">Nonexistant.jpg</div>
12048 <div class="gallerytext">
12051 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12052 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12053 <div class="gallerytext">
12054 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12058 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12059 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12060 <div class="gallerytext">
12063 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12064 <div class="thumb" style="width: 100px;"><div style="margin:31px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="This is a foo-bar." src="http://example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg" width="70" height="8" /></a></div></div>
12065 <div class="gallerytext">
12075 Gallery with wikitext inside caption
12078 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12079 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12082 <ul class="gallery">
12083 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12084 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12085 <div class="gallerytext">
12086 <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>
12090 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12091 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12092 <div class="gallerytext">
12093 <p>This is a test template
12102 gallery (with showfilename option)
12104 <gallery showfilename>
12105 File:Nonexistant.jpg|caption
12106 File:Nonexistant.jpg
12107 image:foobar.jpg|some '''caption''' [[Main Page]]
12111 <ul class="gallery">
12112 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12113 <div style="height: 150px;">Nonexistant.jpg</div>
12114 <div class="gallerytext">
12115 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12120 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12121 <div style="height: 150px;">Nonexistant.jpg</div>
12122 <div class="gallerytext">
12123 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12127 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12128 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12129 <div class="gallerytext">
12130 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12131 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12135 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12136 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12137 <div class="gallerytext">
12138 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12147 Gallery (with namespace-less filenames)
12150 File:Nonexistant.jpg
12156 <ul class="gallery">
12157 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12158 <div style="height: 150px;">Nonexistant.jpg</div>
12159 <div class="gallerytext">
12162 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12163 <div style="height: 150px;">Nonexistant.jpg</div>
12164 <div class="gallerytext">
12167 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12168 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12169 <div class="gallerytext">
12172 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12173 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
12174 <div class="gallerytext">
12182 HTML Hex character encoding (spells the word "JavaScript")
12184 JavaScript
12186 <p>JavaScript
12191 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12195 <p>&#xsee;&#XSEE;
12200 HTML Hex character encoding mixed case
12209 __FORCETOC__ override
12221 ISBN 978-0-1234-56 789
12223 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12228 ISBN followed by 5 spaces
12239 ISBN ISBN 1234567890
12241 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12246 Bug 22905: <abbr> followed by ISBN followed by </a>
12248 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12250 <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>
12259 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12264 Double RFC with a wiki link
12268 <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>
12277 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12282 Centre-aligned image
12284 [[Image:foobar.jpg|centre]]
12286 <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>
12293 [[Image:foobar.jpg|none]]
12295 <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>
12300 Width + Height sized image (using px) (height is ignored)
12302 [[Image:foobar.jpg|640x480px]]
12304 <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>
12309 Width-sized image (using px, no following whitespace)
12311 [[Image:foobar.jpg|640px]]
12313 <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>
12318 Width-sized image (using px, with following whitespace - test regression from r39467)
12320 [[Image:foobar.jpg|640px ]]
12322 <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>
12327 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12329 [[Image:foobar.jpg| 640px]]
12331 <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>
12336 Another italics / bold test
12344 # Note the results may be incorrect, as parserTest output included this:
12345 # XML error: Mismatched tag at byte 6120:
12346 # ...<dd> </dt></dl> </dd...
12354 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12365 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12367 Images with the "|" character in the comment
12369 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12371 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>An <a rel="nofollow" class="external text" href="http://test/?param1=%7Cleft%7C&param2=%7Cx">external</a> URL</div></div></div>
12376 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12378 <html><script>alert(1);</script></html>
12380 <p><html><script>alert(1);</script></html>
12385 HTML with raw HTML ($wgRawHtml==true)
12389 <html><script>alert(1);</script></html>
12391 <p><script>alert(1);</script>
12396 Parents of subpages, one level up
12398 subpage title=[[Subpage test/L1/L2/L3]]
12402 <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>
12408 Parents of subpages, one level up, not named
12410 subpage title=[[Subpage test/L1/L2/L3]]
12414 <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>
12421 Parents of subpages, two levels up
12423 subpage title=[[Subpage test/L1/L2/L3]]
12429 <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
12430 </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>
12435 Parents of subpages, two levels up, without trailing slash or name.
12437 subpage title=[[Subpage test/L1/L2/L3]]
12446 Parents of subpages, two levels up, with lots of extra trailing slashes.
12448 subpage title=[[Subpage test/L1/L2/L3]]
12452 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12457 Subpage test/L1/L2/L3Sibling
12463 Transclusion of a sibling page (one level up)
12465 subpage title=[[Subpage test/L1/L2/L3]]
12474 Transclusion of a child page
12476 subpage title=[[Subpage test/L1/L2]]
12485 Non-transclusion because of too many up levels
12487 subpage title=[[Subpage test/L1/L2/L3]]
12489 {{../../../../More than parent}}
12491 <p>{{../../../../More than parent}}
12496 Definition list code coverage
12502 <dl><dt> title  </dt><dd> def
12503 </dd><dt> title </dt><dd> def
12504 </dd><dt>title</dt><dd> def
12510 Don't fall for the self-closing div
12512 <div>hello world</div/>
12514 <div>hello world</div>
12523 <p>[[:Template:Msg]]
12532 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12536 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12538 Always escape literal '>' in output, not just after '<'
12552 <p>This is a test template
12553 This is a test template
12565 Inclusion of !userCanEdit() content
12569 <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>
12575 Out-of-order TOC heading levels
12584 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12586 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12588 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12589 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12592 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12594 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12595 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12600 <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>
12601 <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>
12602 <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>
12603 <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>
12604 <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>
12605 <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>
12611 ISBN with a dummy number
12621 ISBN with space-delimited number
12625 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12631 ISBN with multiple spaces, no number
12650 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12651 </p><p>ISBN 12345678901
12657 ISBN with trailing year (bug 8110)
12659 ISBN 1-234-56789-0 - 2006
12661 ISBN 1 234 56789 0 - 2006
12663 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12664 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12672 {{anchorencode:foo bar©#%n}}
12674 <p>foo_bar.C2.A9.23.25n
12679 anchorencode trims spaces
12681 {{anchorencode: __pretty__please__}}
12688 anchorencode deals with links
12690 {{anchorencode: [[hello|world]] [[hi]]}}
12697 anchorencode deals with templates
12699 {{anchorencode: {{Foo}} }}
12706 anchorencode encodes like the TOC generator: (bug 18431)
12708 === _ +:.3A%3A&&]] ===
12709 {{anchorencode: _ +:.3A%3A&&]] }}
12712 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12713 <p>.2B:.3A.253A.26.26.5D.5D
12717 # Expected output in the following test is not necessarily expected (there
12718 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12719 # only testing for well-formedness.
12721 Bug 6200: blockquotes and paragraph formatting
12741 Bug 8293: Use of center tag ruins paragraph formatting
12762 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12766 <span><s>x</span></s>
12768 <p><span><s>x</span></s></span>
12773 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12777 <span><s>x</span></s>
12779 <p><span><s>x</s></span><s></s>
12784 ### Language variants related tests
12787 Self-link in language variants
12789 title=[[Dunav]] language=sr
12791 Both [[Dunav]] and [[Дунав]] are names for this river.
12793 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12804 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12806 title=[[Duna]] language=sr
12808 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12810 <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.
12815 Link to pages in language variants
12819 Main Page can be written as [[Маин Паге]]
12821 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12827 Multiple links to pages in language variants
12831 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12833 <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>.
12839 Simple template in language variants
12845 <p>This is a test template
12851 Template with explicit namespace in language variants
12857 <p>This is a test template
12863 Basic test for template parameter in language variants
12867 {{парамтест|param=foo}}
12869 <p>This is a test template with parameter foo
12875 Simple category in language variants
12879 [[Category:МедиаWики Усер'с Гуиде]]
12881 <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>
12898 Don't convert blue categorylinks to another variant (bug 33210)
12902 [[A]][[Category:分类]]
12904 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12909 Stripping -{}- tags (language variants)
12913 Latin proverb: -{Ne nuntium necare}-
12915 <p>Latin proverb: Ne nuntium necare
12921 Prevent conversion with -{}- tags (language variants)
12923 language=sr variant=sr-ec
12925 Latinski: -{Ne nuntium necare}-
12927 <p>Латински: Ne nuntium necare
12933 Prevent conversion of text with -{}- tags (language variants)
12935 language=sr variant=sr-ec
12937 Latinski: -{Ne nuntium necare}-
12939 <p>Латински: Ne nuntium necare
12945 Prevent conversion of links with -{}- tags (language variants)
12947 language=sr variant=sr-ec
12951 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12957 -{}- tags within headlines (within html for parserConvert())
12959 language=sr variant=sr-ec
12963 <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>
12969 Explicit definition of language variant alternatives
12971 language=zh variant=zh-tw
12973 -{zh:China;zh-tw:Taiwan}-, not China
12975 <p>Taiwan, not China
12981 Conversion around HTML tags
12983 language=sr variant=sr-ec
12985 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
12986 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
12989 <span title="ЛаCтин">ски</span>
12995 Explicit session-wise language variant mapping (A flag and - flag)
12997 language=zh variant=zh-tw
12999 Taiwan is not China.
13000 But -{A|zh:China;zh-tw:Taiwan}- is China,
13001 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13002 and -{China}- is China.
13004 <p>Taiwan is not China.
13005 But Taiwan is Taiwan,
13006 (This should be stripped!)
13007 and China is China.
13012 Explicit session-wise language variant mapping (H flag for hide)
13014 language=zh variant=zh-tw
13016 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13019 <p>(This should be stripped!)
13025 Adding explicit conversion rule for title (T flag)
13027 language=zh variant=zh-tw showtitle
13029 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13032 <p>Should be stripped!
13037 Testing that changing the language variant here in the tests actually works
13039 language=zh variant=zh showtitle
13041 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13044 <p>Should be stripped!
13049 Recursive conversion of alt and title attrs shouldn't clear converter state
13051 language=zh variant=zh-cn showtitle
13053 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13054 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13058 Should be stripped<span title="Exclamation">!</span>
13063 Bug 24072: more test on conversion rule for title
13065 language=zh variant=zh-tw showtitle
13067 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13068 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13071 <p>This should be stripped!
13072 This won't take interferes with the title rule.
13077 Partly disable title conversion if variant == main language code
13079 language=zh variant=zh title=[[ZH]] showtitle
13081 -{T|zh-cn:CN;zh-tw:TW}-
13089 Partly disable title conversion if variant == main language code, more
13091 language=zh variant=zh title=[[ZH]] showtitle
13101 Raw output of variant escape tags (R flag)
13103 language=zh variant=zh-tw
13105 Raw: -{R|zh:China;zh-tw:Taiwan}-
13107 <p>Raw: zh:China;zh-tw:Taiwan
13112 Nested using of manual convert syntax
13114 language=zh variant=zh-hk
13116 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13118 <p>Nested: Hello Hong Kong!
13123 Proper conversion of text in external links
13125 language=sr variant=sr-ec
13127 http://www.google.com
13128 gopher://www.google.com
13129 [http://www.google.com http://www.google.com]
13130 [gopher://www.google.com gopher://www.google.com]
13131 [https://www.google.com irc://www.google.com]
13132 [ftp://www.google.com www.google.com/ftp://dir]
13133 [//www.google.com www.google.com]
13135 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13136 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13137 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13138 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13139 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13140 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13141 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13146 Do not convert roman numbers to language variants
13148 language=sr variant=sr-ec
13152 <p>Фридрих IV је цар.
13157 Unclosed language converter markup "-{"
13168 Don't convert raw rule "-{R|=>}-" to "=>"
13185 Bug 529: Uncovered bullet
13195 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13196 # Templates in Wikipedia rely on this behavior, as tidy has always been
13197 # enabled there. These tests are normally run *without* tidy, so specify the
13198 # full output here.
13199 # To test realistic parsing behavior, apply a tidy-like transformation to both
13200 # the expected output and your parser's output.
13202 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13204 ******* Foo {{bullet}}
13206 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13219 Bug 529: Uncovered table already at line-start
13242 Bug 529: Uncovered bullet in parser function result
13244 * Foo {{lc:{{bullet}} }}
13253 Bug 5678: Double-parsed template argument
13255 {{lc:{{{1}}}|hello}}
13262 Bug 5678: Double-parsed template invocation
13264 {{lc:{{paramtest {{!}} param = hello }} }}
13266 <p>{{paramtest | param = hello }}
13271 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13274 title=[[Main Page]]
13276 {{PRVNÍVELKÉ:ěščř}}
13277 {{prvnívelké:ěščř}}
13297 Morwen/13: Unclosed link followed by heading
13304 <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>
13309 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13316 <h1><span class="mw-headline" id="heading">heading</span></h1>
13321 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13328 <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>
13343 Paragraphs inside divs (no extra line breaks)
13355 Paragraphs inside divs (extra line break on open)
13370 Paragraphs inside divs (extra line break on close)
13385 Paragraphs inside divs (extra line break on open and close)
13402 Nesting tags, paragraphs on lines which begin with <div>
13406 <div></div><strong>A
13415 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13417 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13421 <blockquote>Line one
13423 Line two</blockquote>
13425 <blockquote>Line one
13426 Line two</blockquote>
13431 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13438 Line two</blockquote>
13443 Line two</blockquote>
13448 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13452 <blockquote>Line one
13457 <blockquote>Line one
13465 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13484 Paragraphs inside blockquotes/divs (no extra line breaks)
13486 <blockquote><div>Line one
13488 Line two</div></blockquote>
13490 <blockquote><div>Line one
13491 Line two</div></blockquote>
13496 Paragraphs inside blockquotes/divs (extra line break on open)
13501 Line two</div></blockquote>
13506 Line two</div></blockquote>
13511 Paragraphs inside blockquotes/divs (extra line break on close)
13513 <blockquote><div>Line one
13516 </div></blockquote>
13518 <blockquote><div>Line one
13521 </div></blockquote>
13526 Paragraphs inside blockquotes/divs (extra line break on open and close)
13532 </div></blockquote>
13538 </div></blockquote>
13543 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13545 wgLinkHolderBatchSize=0
13551 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13552 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13553 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13558 Free external link invading image caption
13560 [[Image:Foobar.jpg|thumb|http://x|hello]]
13562 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" srcset="http://example.com/images/thumb/3/3a/Foobar.jpg/270px-Foobar.jpg 1.5x, http://example.com/images/thumb/3/3a/Foobar.jpg/360px-Foobar.jpg 2x" /></a> <div class="thumbcaption"><div class="magnify"><a href="/wiki/File:Foobar.jpg" class="internal" title="Enlarge"><img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>hello</div></div></div>
13567 Bug 15196: localised external link numbers
13571 [http://en.wikipedia.org/]
13573 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13578 Multibyte character in padleft
13580 {{padleft:-Hello|7|Æ}}
13587 Multibyte character in padright
13589 {{padright:Hello-|7|Æ}}
13596 formatdate parser function
13598 {{#formatdate:2009-03-24}}
13600 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13605 formatdate parser function, with default format
13607 {{#formatdate:2009-03-24|mdy}}
13609 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13614 Spacing of numbers in formatted dates
13616 {{#formatdate:January 15}}
13618 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13623 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
13625 language=nl title=[[MediaWiki:Common.css]]
13627 {{#formatdate:2009-03-24|dmy}}
13629 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13642 Edit comment with link
13646 I like the [[Main Page]] a lot
13648 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13652 Edit comment with link and link text
13656 I like the [[Main Page|best pages]] a lot
13658 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13662 Edit comment with link and link text with suffix
13666 I like the [[Main Page|best page]]s a lot
13668 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13672 Edit comment with section link (non-local, eg in history list)
13674 comment title=[[Main Page]]
13676 /* External links */ removed bogus entries
13678 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13682 Edit comment with section link and text before it (non-local, eg in history list)
13684 comment title=[[Main Page]]
13686 pre-comment text /* External links */ removed bogus entries
13688 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>
13692 Edit comment with section link (local, eg in diff view)
13694 comment local title=[[Main Page]]
13696 /* External links */ removed bogus entries
13698 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13702 Edit comment with subpage link (bug 14080)
13706 title=[[Subpage test]]
13708 Poked at a [[/subpage]] here...
13710 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13714 Edit comment with subpage link and link text (bug 14080)
13718 title=[[Subpage test]]
13720 Poked at a [[/subpage|neat little page]] here...
13722 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13726 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13729 title=[[Subpage test]]
13731 Poked at a [[/subpage]] here...
13733 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13737 Edit comment with bare anchor link (local, as on diff)
13741 title=[[Main Page]]
13745 <a href="#section">#section</a>
13749 Edit comment with bare anchor link (non-local, as on history)
13752 title=[[Main Page]]
13756 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13760 Anchor starting with underscore
13764 <p><a href="#_ref">One</a>
13769 Id starting with underscore
13771 <div id="_ref"></div>
13773 <div id="_ref"></div>
13778 Space normalisation on autocomment (bug 22784)
13781 title=[[Main Page]]
13783 /* __hello__world__ */
13785 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13789 percent-encoding and + signs in comments (Bug 26410)
13793 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13795 <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>
13799 Bad images - basic functionality
13808 Bad images - bug 16039: text after bad image disappears
13822 Verify that displaytitle works (bug #22501) no displaytitle
13826 wgAllowDisplayTitle=true
13827 wgRestrictDisplayTitle=false
13829 this is not the the title
13832 <p>this is not the the title
13837 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13842 wgAllowDisplayTitle=true
13843 wgRestrictDisplayTitle=false
13845 this is not the the title
13846 {{DISPLAYTITLE:whatever}}
13849 <p>this is not the the title
13854 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13859 wgAllowDisplayTitle=true
13860 wgRestrictDisplayTitle=true
13862 this is not the the title
13863 {{DISPLAYTITLE:whatever}}
13866 <p>this is not the the title
13871 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13876 wgAllowDisplayTitle=true
13877 wgRestrictDisplayTitle=true
13879 this is not the the title
13880 {{DISPLAYTITLE:screen}}
13883 <p>this is not the the title
13888 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13893 wgAllowDisplayTitle=false
13895 this is not the the title
13896 {{DISPLAYTITLE:screen}}
13899 <p>this is not the the title
13900 <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>
13905 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13910 wgAllowDisplayTitle=false
13912 this is not the the title
13915 <p>this is not the the title
13920 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13925 wgAllowDisplayTitle=true
13926 wgRestrictDisplayTitle=true
13928 this is not the the title
13929 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13931 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13932 <p>this is not the the title
13937 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13942 wgAllowDisplayTitle=true
13943 wgRestrictDisplayTitle=true
13945 this is not the the title
13946 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13948 <span style="color: red;">s</span>creen
13949 <p>this is not the the title
13954 preload: check <noinclude> and <includeonly>
13958 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13964 preload: check <onlyinclude>
13968 Goodbye <onlyinclude>Hello world</onlyinclude>
13974 preload: can pass tags through if we want to
13978 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13980 <includeonly>Hello world</includeonly>
13984 preload: check that it doesn't try to do tricks
13988 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13990 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
13994 Play a bit with r67090 and bug 3158
13998 <div style="width:50% !important"> </div>
13999 <div style="width:50% !important"> </div>
14000 <div style="width:50% !important"> </div>
14001 <div style="border : solid;"> </div>
14003 <div style="width:50% !important"> </div>
14004 <div style="width:50% !important"> </div>
14005 <div style="width:50% !important"> </div>
14006 <div style="border : solid;"> </div>
14011 HTML5 data attributes
14013 <span data-foo="bar">Baz</span>
14014 <p data-abc-def_hij="">Quuz</p>
14016 <p><span data-foo="bar">Baz</span>
14018 <p data-abc-def_hij="">Quuz</p>
14023 percent-encoding and + signs in internal links (Bug 26410)
14025 [[User:+%]] [[Page+title%]]
14026 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14027 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14028 [[%33%45]] [[%33%45+]]
14030 <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>
14031 <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>
14032 <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>
14033 <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>
14038 Special characters in embedded file links (bug 27679)
14040 [[File:Contains & ampersand.jpg]]
14041 [[File:Does not exist.jpg|Title with & ampersand]]
14043 <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>
14044 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14050 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14052 Text's been normalized?
14054 <p>Text's been normalized?
14059 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14061 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14063 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14068 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14070 [http://www.example.org/ ideograms]
14072 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14077 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14079 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14081 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14105 Bug 31098 Template which includes system messages which includes the template
14109 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14110 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14115 Bug31490 Turkish: ucfirst 'blah'
14126 Bug31490 Turkish: ucfirst 'ix'
14137 Bug31490 Turkish: lcfirst 'BLAH'
14148 Bug31490 Turkish: ucfırst (with a dotless i)
14154 <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>
14159 Bug31490 ucfırst (with a dotless i) with English language
14165 <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>
14170 Bug 26375: TOC with italics
14172 title=[[Main Page]]
14175 == ''Lost'' episodes ==
14177 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14179 <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>
14182 <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>
14187 Bug 26375: TOC with bold
14189 title=[[Main Page]]
14192 == '''should be bold''' then normal text ==
14194 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14196 <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>
14199 <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>
14204 Bug 33845: Headings become cursive in TOC when they contain an image
14206 title=[[Main Page]]
14209 == Image [[Image:foobar.jpg]] ==
14211 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14213 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14216 <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>
14221 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14223 title=[[Main Page]]
14226 == <blockquote>Quote</blockquote> ==
14228 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14230 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14233 <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>
14238 Unclosed tags in TOC
14240 title=[[Main Page]]
14244 <small>Hanc marginis exiguitas non caperet.</small>
14247 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14249 <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>
14252 <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>
14253 <p><small>Hanc marginis exiguitas non caperet.</small>
14259 Multiple tags in TOC
14262 == <i>Foo</i> <b>Bar</b> ==
14264 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14266 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14268 <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>
14269 <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>
14272 <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>
14273 <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>
14278 Tags with parameters in TOC
14281 == <sup class="in-h2">Hello</sup> ==
14283 == <sup class="a > b">Evilbye</sup> ==
14285 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14287 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14288 <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>
14291 <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>
14292 <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>
14297 span tags with directionality in TOC
14300 == <span dir="ltr">C++</span> ==
14302 == <span dir="rtl">זבנג!</span> ==
14304 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14306 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14308 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14310 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14312 <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>
14313 <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>
14314 <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>
14315 <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>
14316 <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>
14319 <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>
14320 <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>
14321 <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>
14322 <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>
14323 <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>
14330 == {{int:headline_sample}} ==
14334 Bug 32057: Title needed when expanding <h> nodes.
14336 title=[[Main Page]]
14340 <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>
14345 Strip marker in urlencode
14347 {{urlencode:x<nowiki/>y}}
14348 {{urlencode:x<nowiki/>y|wiki}}
14349 {{urlencode:x<nowiki/>y|path}}
14376 Strip marker in formatNum
14378 {{formatnum:1<nowiki/>2}}
14379 {{formatnum:1<nowiki/>2|R}}
14387 Check noCommafy in formatNum
14391 {{formatnum:123456.78}}
14392 {{formatnum:123456.78|NOSEP}}
14400 Strip marker in grammar
14404 {{grammar:elative|foo<nowiki/>bar}}
14411 Strip marker in padleft
14413 {{padleft:|2|x<nowiki/>y}}
14420 Strip marker in padright
14422 {{padright:|2|x<nowiki/>y}}
14429 Strip marker in anchorencode
14431 {{anchorencode:x<nowiki/>y}}
14438 nowiki inside link inside heading (bug 18295)
14440 ==[[foo|x<nowiki>y</nowiki>z]]==
14442 <h2><span class="mw-headline" id="xyz"><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">xyz</a></span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/index.php?title=Parser_test&action=edit&section=1" title="Edit section: xyz">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
14447 new support for bdi element (bug 31817)
14449 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14451 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14456 Ignore pipe between table row attributes
14460 |- id=foo | style='color: red'
14468 <tr id="foo" style="color: red">
14475 Gallery override link with WikiLink (bug 34852)
14478 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14481 <ul class="gallery">
14482 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14483 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/InterWikiLink"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
14484 <div class="gallerytext">
14494 Gallery override link with absolute external link (bug 34852)
14497 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14500 <ul class="gallery">
14501 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14502 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="http://www.example.org"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
14503 <div class="gallerytext">
14513 Gallery override link with malicious javascript (bug 34852)
14516 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14519 <ul class="gallery">
14520 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14521 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/%22_onclick%3D%22alert(%27malicious_javascript_code!%27);"><img alt="galleryalt" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
14522 <div class="gallerytext">
14532 Gallery with invalid title as link (bug 43964)
14535 File:foobar.jpg|link=<
14538 <ul class="gallery">
14539 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14540 <div class="thumb" style="width: 150px;"><div style="margin:68px auto;"><a href="/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg" width="120" height="14" /></a></div></div>
14541 <div class="gallerytext">
14549 Language parser function
14558 Padleft and padright as substr
14560 {{padleft:|3|abcde}}
14561 {{padright:|3|abcde}}
14569 Special parser function
14571 {{#special:RandomPage}}
14572 {{#special:BaDtItLe}}
14573 {{#special:Foobar}}
14582 Bug 34939 - Case insensitive link parsing ([HttP://])
14584 [HttP://MediaWiki.Org/]
14586 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14591 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14593 [HttP://MediaWiki.Org/ MediaWiki]
14595 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14600 Bug 34939 - Case insensitive link parsing (HttP://)
14602 HttP://MediaWiki.Org/
14604 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14610 ### Parsoids-specific tests
14611 ### Parsoid-PHP parser incompatibilities
14614 1. SOL-sensitive wikitext tokens as template-args
14616 parsoid=wt2html,wt2wt
14622 <span about="#mwt1" typeof="mw:Transclusion">
14623 </span><ul about="#mwt1"><li>a</li></ul>
14624 <span about="#mwt2" typeof="mw:Transclusion">
14625 </span><ol about="#mwt2"><li>a</li></ol>
14626 <span about="#mwt3" typeof="mw:Transclusion">
14627 </span><dl about="#mwt3"><dd>a</dd></dl>
14630 #### ----------------------------------------------------------------
14631 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14632 #### tags. Parsoid's output for these tags differs from that of the
14634 #### ----------------------------------------------------------------
14637 Ref: 1. ref-location should be replaced with an index span
14642 B <ref name="x">foo</ref>
14645 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
14646 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-2">[2]</a></span>
14647 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"y"}}' id="cite_ref-y-3-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-y-3">[3]</a></span></p>
14651 Ref: 2. ref-tags with identical names should all get the same index
14655 A <ref name="x">foo</ref>
14658 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
14659 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
14663 Ref: 3. spaces in ref-names should be ignored
14667 A <ref name="x">foo</ref>
14668 B <ref name=" x " />
14671 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"x"}}' id="cite_ref-x-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
14672 B <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span>
14673 C <span about="#mwt3" class="reference" data-mw='{"name":"ref","attrs":{"name":"x"}}' id="cite_ref-x-1-2" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-x-1">[1]</a></span></p>
14677 Ref: 4. 'constructor' should be accepted as a valid ref-name
14678 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14682 A <ref name="constructor">foo</ref>
14684 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"constructor"}}' id="cite_ref-constructor-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-constructor-1">[1]</a></span></p>
14688 Ref: 5. body should accept generic wikitext
14693 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14698 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"This is a <b data-parsoid=\"{&quot;dsr&quot;:[19,40,3,3]}\"><a rel=\"mw:WikiLink\" href=\"./Bolded_link\" data-parsoid=\"{&quot;a&quot;:{&quot;href&quot;:&quot;./Bolded_link&quot;},&quot;sa&quot;:{&quot;href&quot;:&quot;bolded link&quot;},&quot;stx&quot;:&quot;simple&quot;,&quot;dsr&quot;:[22,37,2,2]}\">bolded link</a></b> and this is a <span about=\"#mwt3\" typeof=\"mw:Transclusion\" data-mw=\"{&quot;target&quot;:{&quot;wt&quot;:&quot;echo&quot;,&quot;href&quot;:&quot;./Template:Echo&quot;},&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;transclusion&quot;}}}\" data-parsoid=\"{&quot;src&quot;:&quot;{{echo|transclusion}}&quot;,&quot;dsr&quot;:[55,76,null,null]}\">transclusion</span>\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14700 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14701 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> This is a <b><a rel="mw:WikiLink" href="./Bolded_link">bolded link</a></b> and this is a <span about="#mwt3" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"transclusion"}}}'>transclusion</span>
14706 Ref: 6. indent-pres should not be output in ref-body
14718 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n bar\n baz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14720 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14721 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14728 Ref: 6. No p-wrapping in ref-body
14747 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo\n\nbar\n\n\nbaz\n\n\n\nbooz\n"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14749 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14750 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14764 Ref: 8. transclusion wikitext has lower precedence
14768 A <ref> foo {{echo|</ref> B C}}
14772 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <span typeof=\"mw:Nowiki\" data-parsoid=\"{&quot;src&quot;:&quot;{{&quot;,&quot;dsr&quot;:[12,14,2,null]}\">{{</span>echo|"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C<span typeof="mw:Nowiki">}}</span></p>
14774 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14775 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <span typeof="mw:Nowiki">{{</span>echo|</li></ol>
14779 Ref: 9. unclosed comments should not leak out of ref-body
14783 A <ref> foo <!--</ref> B C
14787 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo <!---->"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
14789 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14790 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14794 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14798 A <ref> <b> foo </ref> B C
14802 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"<b data-parsoid=\"{&quot;stx&quot;:&quot;html&quot;,&quot;autoInsertedEnd&quot;:true,&quot;dsr&quot;:[8,16,3,0]}\"> foo </b>"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B C</p>
14804 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14805 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> <b> foo </b></li></ol>
14809 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14816 <p>A <span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> B
14817 C <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> D</p>
14821 Ref: 12. ref-tags act as trailing newline migration barrier
14825 <!--the newline at the end of this line moves out of the p-tag-->a
14827 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14832 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14835 <p>b<!--the newline at the end of this line stays inside the p-tag--> <span about="#mwt1" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
14836 <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
14843 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14851 <p><span about="#mwt1" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span> A
14852 <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"bar\n"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span> B</p>
14856 Ref: 14. A nested ref-tag should be emitted as plain text
14860 <ref>foo <ref>bar</ref> baz</ref>
14864 <span about="#mwt1" class="reference" data-mw="{"name":"ref","body":{"html":"foo &lt;ref&gt;bar&lt;/ref&gt; baz"},"attrs":{}}" id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span>
14866 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
14867 <li about="#cite_note-1" id="cite_note-1" data-parsoid="{}"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <ref>bar</ref> baz</li></ol>
14871 Ref: 15. ref-tags with identical names should get identical indexes
14875 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14876 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14880 <p>A1 <span about="#mwt3" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span> A2 <span about="#mwt4" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
14881 B1 <span about="#mwt7" class="reference" data-mw='{"name":"ref","attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span> B2 <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-1" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
14883 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy">↑ <a href="#cite_ref-a-1-0">1.0</a> <a href="#cite_ref-a-1-1">1.1</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy">↑ <a href="#cite_ref-b-2-0">2.0</a> <a href="#cite_ref-b-2-1">2.1</a></span> bar</li></ol>
14887 References: 1. references tag without any refs should be handled properly
14893 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14897 References: 2. references tag with group only outputs references from that group
14901 A <ref group="a">foo</ref>
14902 B <ref group="b">bar</ref>
14904 <references group='a' />
14906 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
14907 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"group":"b"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[b 1]</a></span></p>
14909 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
14913 References: 3. ref list should be cleared after processing references
14925 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"foo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14927 <ol about="#mwt4" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo</li></ol>
14929 <p>B <span about="#mwt6" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[1]</a></span></p>
14931 <ol about="#mwt8" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bar</li></ol>
14935 References: 4. only referenced group should be cleared after processing references
14939 A <ref group="a">afoo</ref>
14942 <references group="a"/>
14948 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","body":{"html":"afoo"},"attrs":{"group":"a"}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-1">[a 1]</a></span>
14949 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bfoo"},"attrs":{}}' id="cite_ref-1-0" rel="dc:references" typeof="mw:Extension/ref" data-parsoid='{"src":"<ref>bfoo</ref>","dsr":[30,45,5,6]}'><a href="#cite_note-1">[1]</a></span></p>
14951 <ol about="#mwt6" class="references" data-mw='{"name":"references","attrs":{"group":"a"}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> afoo</li></ol>
14953 <p>C <span about="#mwt8" class="reference" data-mw='{"name":"ref","body":{"html":"cfoo"},"attrs":{}}' id="cite_ref-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-2">[2]</a></span></p>
14955 <ol about="#mwt10" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> bfoo</li><li about="#cite_note-2" id="cite_note-2"><span rel="mw:referencedBy"><a href="#cite_ref-2-0">↑</a></span> cfoo</li></ol>
14959 References: 5. ref tags in references should be processed while ignoring all other content
14964 B <ref name="b">bar</ref>
14967 <ref name="a">foo</ref>
14968 This should just get lost.
14971 <p>A <span about="#mwt2" class="reference" data-mw='{"name":"ref","attrs":{"name":"a"}}' id="cite_ref-a-1-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-a-1">[1]</a></span>
14972 B <span about="#mwt4" class="reference" data-mw='{"name":"ref","body":{"html":"bar"},"attrs":{"name":"b"}}' id="cite_ref-b-2-0" rel="dc:references" typeof="mw:Extension/ref"><a href="#cite_note-b-2">[2]</a></span></p>
14974 <ol about="#mwt7" class="references" data-mw='{"name":"references","body":{"extsrc":"<ref name=\"a\">foo</ref>\nThis should just get lost."},"attrs":{}}' typeof="mw:Extension/references"><li about="#cite_note-a-1" id="cite_note-a-1"><span rel="mw:referencedBy"><a href="#cite_ref-a-1-0">↑</a></span> foo</li><li about="#cite_note-b-2" id="cite_note-b-2"><span rel="mw:referencedBy"><a href="#cite_ref-b-2-0">↑</a></span> bar</li></ol>
14978 References: 6. <references /> from a transclusion
14982 {{echo|<references />}}
14984 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
14987 #### ----------------------------------------------------------------
14988 #### The following section of tests are primarily to test
14989 #### wikitext escaping capabilities of Parsoid. Given that
14990 #### escaping can be done any number of ways, the wikitext (input)
14991 #### is always adjusted to reflect how Parsoid adds nowiki
14994 #### We are marking several tests as parsoid-only since the
14995 #### HTML in the result section is different from what the
14996 #### PHP parser generates for it.
14997 #### ----------------------------------------------------------------
15000 #### --------------- Headings ---------------
15002 #### 1. Nested inside html <h1>=foo=</h1>
15003 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15004 #### 3. Nested inside html with wikitext split by html tags
15005 #### 4. No escape needed
15006 #### 5. Empty headings <h1></h1>
15007 #### 6. Heading chars in SOL context
15008 #### ----------------------------------------
15010 Headings: 0. Unnested
15014 <nowiki>=foo=</nowiki>
15016 <nowiki> =foo= </nowiki>
15018 <nowiki>=foo=</nowiki>
15020 =foo''a''<nowiki>=</nowiki>
15022 <p><span typeof="mw:Nowiki">=foo=</span></p>
15024 <p><span typeof="mw:Nowiki"> =foo= </span>
15026 <span typeof="mw:Nowiki">=foo=</span></p>
15028 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15032 Headings: 1. Nested inside html
15036 =<nowiki>=foo=</nowiki>=
15038 ==<nowiki>=foo=</nowiki>==
15040 ===<nowiki>=foo=</nowiki>===
15042 ====<nowiki>=foo=</nowiki>====
15044 =====<nowiki>=foo=</nowiki>=====
15046 ======<nowiki>=foo=</nowiki>======
15048 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15049 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15050 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15051 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15052 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15053 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15057 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15062 <nowiki>*</nowiki>bar
15068 <nowiki>=bar=</nowiki>
15076 Headings: 3. Nested inside html with wikitext split by html tags
15080 =='''bold'''<nowiki>foo=</nowiki>=
15082 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15086 Headings: 4a. No escaping needed (testing just h1 and h2)
15104 =<nowiki>=</nowiki>=
15112 <h1><i>=</i>foo=</h1>
15113 <h1><span typeof="mw:Nowiki">=</span></h1>
15117 Headings: 4b. No escaping needed (inside p-tags)
15132 Headings: 5. Empty headings
15144 =====<nowiki/>=====
15146 ======<nowiki/>======
15157 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15161 <nowiki>=a=</nowiki>
15163 <nowiki>=a=</nowiki>
15165 <nowiki>=a=</nowiki>
15167 <nowiki>=a=</nowiki>
15176 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15204 Headings: 6c. Heading chars in SOL context (leading newline break)
15209 <nowiki>=b=</nowiki>
15216 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15220 <!--c0--><nowiki>=a=</nowiki>
15222 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
15224 <p><!--c0-->=a=</p>
15225 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15229 Headings: 6d. Heading chars in SOL context (No escaping needed)
15238 #### --------------- Lists ---------------
15239 #### 0. Outside nests (*foo, etc.)
15240 #### 1. Nested inside html <ul><li>*foo</li></ul>
15241 #### 2. Inside definition lists
15242 #### 3. Only bullets at start should be escaped
15243 #### 4. No escapes needed
15244 #### 5. No unnecessary escapes
15245 #### 6. Escape bullets in SOL position
15246 #### 7. Escape bullets in a multi-line context
15247 #### ----------------------------------------
15250 Lists: 0. Outside nests
15252 <nowiki>*</nowiki>foo
15254 <nowiki>#</nowiki>foo
15262 Lists: 1. Nested inside html
15264 *<nowiki>*foo</nowiki>
15266 *<nowiki>#foo</nowiki>
15268 *<nowiki>:foo</nowiki>
15270 *<nowiki>;foo</nowiki>
15272 #<nowiki>*foo</nowiki>
15274 #<nowiki>#foo</nowiki>
15276 #<nowiki>:foo</nowiki>
15278 #<nowiki>;foo</nowiki>
15300 Lists: 2. Inside definition lists
15302 ;<nowiki>;foo</nowiki>
15304 ;<nowiki>:foo</nowiki>
15306 ;<nowiki>:foo</nowiki>
15309 :<nowiki>:foo</nowiki>
15324 Lists: 3. Only bullets at start of text should be escaped
15326 *<nowiki>*foo*bar</nowiki>
15328 *<nowiki>*foo</nowiki>''it''*bar
15332 <ul><li>*foo<i>it</i>*bar
15338 Lists: 4. No escapes needed
15350 <ul><li><i>foo</i>*bar
15352 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15357 Lists: 5. No unnecessary escapes
15359 * bar <span><nowiki>[[foo]]</nowiki></span>
15361 *=bar <span><nowiki>[[foo]]</nowiki></span>
15363 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15365 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15367 *=bar <span>foo]]</span>=
15371 <ul><li> bar <span>[[foo]]</span>
15373 <ul><li>=bar <span>[[foo]]</span>
15375 <ul><li>[[bar <span>[[foo]]</span>
15377 <ul><li>]]bar <span>[[foo]]</span>
15379 <ul><li>=bar <span>foo]]</span>=
15381 <ul><li> <s></s>: a
15387 Lists: 6. Escape bullets in SOL position
15391 <!--cmt--><nowiki>*foo</nowiki>
15393 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15397 Lists: 7. Escape bullets in a multi-line context
15400 <nowiki>*</nowiki>b
15407 #### --------------- HRs ---------------
15408 #### 1. Single line
15409 #### -----------------------------------
15412 HRs: 1. Single line
15416 ----<nowiki>----</nowiki>
15420 <hr><span typeof="mw:Nowiki">----</span>
15425 #### --------------- Tables ---------------
15426 #### 1a. Simple example
15427 #### 1b. No escaping needed (!foo)
15428 #### 1c. No escaping needed (|foo)
15429 #### 1d. No escaping needed (|}foo)
15431 #### 2a. Nested in td (<td>foo|bar</td>)
15432 #### 2b. Nested in td (<td>foo||bar</td>)
15433 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15435 #### 3a. Nested in th (<th>foo!bar</th>)
15436 #### 3b. Nested in th (<th>foo!!bar</th>)
15437 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15441 #### 4c. No escaping needed
15442 #### --------------------------------------
15445 Tables: 1a. Simple example
15456 Tables: 1b. No escaping needed
15465 Tables: 1c. No escaping needed
15474 Tables: 1d. No escaping needed
15483 Tables: 2a. Nested in td
15488 |<nowiki>foo|bar</nowiki>
15492 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15496 Tables: 2b. Nested in td
15501 |<nowiki>foo||bar</nowiki>
15502 |''it''<nowiki>foo||bar</nowiki>
15506 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15507 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15511 Tables: 2c. Nested in td -- no escaping needed
15519 <table><tbody><tr><td>foo!!bar
15520 </td></tr></tbody></table>
15525 Tables: 3a. Nested in th
15533 <table><tbody><tr><th>foo!bar
15534 </th></tr></tbody></table>
15539 Tables: 3b. Nested in th
15544 !<nowiki>foo!!bar</nowiki>
15548 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15553 Tables: 3c. Nested in th -- no escaping needed
15558 !<nowiki>foo||bar</nowiki>
15562 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15566 Tables: 4a. Escape -
15574 |<nowiki>-bar</nowiki>
15578 <tr><th>-bar</th></tr>
15580 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15584 Tables: 4b. Escape +
15592 |<nowiki>+bar</nowiki>
15596 <tr><th>+bar</th></tr>
15598 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15602 Tables: 4c. No escaping needed
15616 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15617 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15621 ### SSS FIXME: Disabled right now because accurate html2wt
15622 ### on this snippet requires data-parsoid flags that we've
15623 ### stripped out of these tests. We should scheme how we
15624 ### we want to handle these kind of tests that require
15625 ### data-parsoid flags for accurate html2wt serialization
15628 Tables: 4d. No escaping needed
15646 #### --------------- Links ----------------
15647 #### 1. Quote marks in link text
15648 #### 2. Wikilinks: Escapes needed
15649 #### 3. Wikilinks: No escapes needed
15650 #### 4. Extlinks: Escapes needed
15651 #### 5. Extlinks: No escapes needed
15652 #### --------------------------------------
15654 Links 1. Quote marks in link text
15658 [[Foo|Foo<nowiki>''boo''</nowiki>]]
15660 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15664 Links 2. WikiLinks: Escapes needed
15668 [[Foo|<nowiki>[Foobar]</nowiki>]]
15669 [[Foo|<nowiki>Foobar]</nowiki>]]
15670 [[Foo|x [Foobar] x]]
15671 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15672 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15673 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15674 [[Foo|<nowiki>|Bar</nowiki>]]
15675 [[Foo|<nowiki>]]bar</nowiki>]]
15676 [[Foo|<nowiki>[[bar</nowiki>]]
15677 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15679 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15680 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15681 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15682 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15683 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15684 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15685 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15686 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15687 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15688 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15692 Links 3. WikiLinks: No escapes needed
15699 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15700 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15704 Links 4. ExtLinks: Escapes needed
15708 [http://google.com <nowiki>[google]</nowiki>]
15709 [http://google.com <nowiki>google]</nowiki>]
15711 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15712 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15716 Links 5. ExtLinks: No escapes needed
15720 [http://google.com [google]
15722 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15725 #### --------------- Quotes ---------------
15726 #### 1. Quotes inside <b> and <i>
15727 #### 2. Link fragments separated by <i> and <b> tags
15728 #### 3. Link fragments inside <i> and <b>
15729 #### --------------------------------------
15731 1. Quotes inside <b> and <i>
15733 ''<nowiki>'foo'</nowiki>''
15734 ''<nowiki>''foo''</nowiki>''
15735 ''<nowiki>'''foo'''</nowiki>''
15736 ''foo''<nowiki>'s</nowiki>
15737 '''<nowiki>'foo'</nowiki>'''
15738 '''<nowiki>''foo''</nowiki>'''
15739 '''<nowiki>'''foo'''</nowiki>'''
15740 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15741 '''foo'''<nowiki>'s</nowiki>
15750 <b>foo'<i>bar'</i>baz</b>
15756 2. Link fragments separated by <i> and <b> tags
15758 [[''foo''<nowiki>hello]]</nowiki>
15760 [['''foo'''<nowiki>hello]]</nowiki>
15762 <p>[[<i>foo</i>hello]]
15763 </p><p>[[<b>foo</b>hello]]
15768 2. Link fragments inside <i> and <b>
15769 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15770 this is one of the shortcomings of this format)
15772 ''[[foo''<nowiki>]]</nowiki>
15774 '''[[foo'''<nowiki>]]</nowiki>
15777 </p><p><b>[[foo</b>]]
15781 #### ----------- Paragraphs ---------------
15782 #### 1. No unnecessary escapes
15783 #### --------------------------------------
15786 1. No unnecessary escapes
15788 bar <span><nowiki>[[foo]]</nowiki></span>
15790 =bar <span><nowiki>[[foo]]</nowiki></span>
15792 [[bar <span><nowiki>[[foo]]</nowiki></span>
15794 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15796 =bar <span>foo]]</span><nowiki>=</nowiki>
15798 <p>bar <span>[[foo]]</span>
15799 </p><p>=bar <span>[[foo]]</span>
15800 </p><p>[[bar <span>[[foo]]</span>
15801 </p><p>]]bar <span>[[foo]]</span>
15802 </p><p>=bar <span>foo]]</span>=
15806 #### ----------------------- PRE --------------------------
15807 #### 1. Leading whitespace in SOL context should be escaped
15808 #### ------------------------------------------------------
15810 1. Leading whitespace in SOL context should be escaped
15814 <nowiki> </nowiki>a
15816 <nowiki> </nowiki> a
15818 <nowiki> </nowiki>a(tab)
15820 <nowiki> </nowiki> a
15822 <nowiki> </nowiki> a
15825 <nowiki> </nowiki>b
15828 <nowiki> </nowiki>b
15831 <nowiki> </nowiki> b
15837 <p><!--cmt--> a</p>
15846 #### --------------- HTML tags ---------------
15849 #### 3. multi-line html tag
15850 #### -----------------------------------------
15856 <a href="http://google.com">google</a>
15858 <a href="http://google.com">google</a>
15864 <nowiki><div>foo</div>
15865 <div style="color:red">foo</div></nowiki>
15867 <p><div>foo</div>
15868 <div style="color:red">foo</div>
15873 3. multi-line html tag
15888 <nowiki><ref>foo</ref></nowiki>
15890 <p><ref>foo</ref>
15894 #### --------------- Others ---------------
15898 <nowiki>foo</nowiki>
15900 <p><nowiki>foo</nowiki>
15905 Tag-like HTML structures are passed through as text
15927 </p><p>1<d e>f
15932 # This fails in the PHP parser (see bug 40670,
15933 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15935 Tag names followed by punctuation should not be recognized as tags
15941 <p><s.ome> text
15946 HTML tag with necessary entities in attributes
15948 <span title="&amp;">foo</span>
15950 <p><span title="&amp;">foo</span>
15955 HTML tag with 'unnecessary' entity encoding in attributes
15957 <span title="&">foo</span>
15959 <p><span title="&">foo</span>
15964 HTML tag with broken attribute value quoting
15966 <span title="Hello world>Foo</span>
15968 <p><span>Foo</span>
15973 Parsoid-only: HTML tag with broken attribute value quoting
15977 <span title="Hello world>Foo</span>
15979 <p><span title="Hello world">Foo</span>
15984 Table with broken attribute value quoting
15987 | title="Hello world|Foo
15998 Table with broken attribute value quoting on consecutive lines
16001 | title="Hello world|Foo
16002 | style="color:red|Bar
16015 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16020 | title="Hello world|Foo
16021 | style="color:red|Bar
16026 <td title="Hello world">Foo
16027 </td><td style="color: red">Bar
16028 </td></tr></tbody></table>
16033 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16043 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16053 Accept empty td cell attribute
16056 | align="center" | foo || |
16061 <td align="center"> foo </td>
16068 Non-empty attributes in th-cells
16071 ! Foo !! style="color: red" | Bar
16077 <th style="color: red"> Bar
16083 Accept empty attributes in th-cells
16098 Empty table rows go away
16119 ### Parsoid-centric tests for testing RTing of inter-element separators
16120 ### Edge cases not tested by existing parser tests and specific to
16121 ### Parsoid-specific serialization strategies.
16125 RT-ed inter-element separators should be valid separators
16138 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16139 (Parsoid-only since PHP parser relies on Tidy for correct output)
16155 Empty TD followed by TD with tpl-generated attribute
16160 |{{echo|style='color:red'}}|foo
16174 Indented table with an empty td
16193 Empty TR followed by a template-generated TR
16194 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16196 parsoid=wt2html,wt2wt
16200 {{echo|<tr><td>foo</td></tr>}}
16206 <tr typeof="mw:Transclusion">
16207 <td>foo</td></tr></tbody></table>
16210 ## PHP and parsoid output differ for this, and since this is primarily
16211 ## for testing Parsoid's serializer, marking this Parsoid only
16213 Empty TR followed by mixed-ws-comment line should RT correctly
16227 <td> <!--c--></td></tr>
16229 <td><!--c--> <!--d--></td></tr>
16235 Multi-line image caption generated by templates with/without trailing newlines
16239 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16240 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16242 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC</div></div></div>
16243 <div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="/index.php?title=Special:Upload&wpDestFile=Foo.jpg" class="new" title="File:Foo.jpg">File:Foo.jpg</a> <div class="thumbcaption">foo\nA\nB\nC\n\n</div></div></div>
16247 ## PHP emits broken html for this, and since this is primarily
16248 ## a Parsoid serializer test, marking this Parsoid only
16250 Improperly nested inline or quotes tags with whitespace in between
16254 <span> <s>x</span> </s>
16257 <p><span> <s>x</s></span><s> </s>
16258 <b> <i>x</i></b><i> </i>
16262 # -----------------------------------------------------------------
16263 # The following section of tests are primarily to spec requirements
16264 # around serialization of new/edited content.
16266 # All these tests are marked Parsoid html2wt and html2html only
16267 # ----------------------------------------------------------------
16270 Image: Modifying size of an image
16274 [[Image:Wiki.png|230x230px]]
16276 <p data-parsoid='{"dsr":[0,24,0,0]}'><span typeof="mw:Image" data-parsoid='{"optList":[{"ck":"width","ak":"100px"}],"cacheKey":"[[Image:Wiki.png|100px]]","img":{"h":115,"w":100,"wdset":true},"dsr":[0,24,null,null]}'><a href="./File:Wiki.png" data-parsoid='{"a":{"href":"./File:Wiki.png"}}'><img resource="./File:Wiki.png" src="//upload.wikimedia.org/wikipedia/en/thumb/b/bc/Wiki.png/100px-Wiki.png" height="230" width="200" data-parsoid='{"a":{"resource":"./File:Wiki.png"},"sa":{"resource":"Image:Wiki.png"}}'></a></span></p>
16280 Image: New block level image should have \n before and after
16285 [[File:Wiki.png|right|thumb|150x150px]]
16288 <p>123</p><figure typeof="mw:Image/Thumb" class="mw-halign-right"><a href="./File:Wiki.png"><img src="http://192.168.142.128/mw/images/thumb/b/bc/Wiki.png/131px-Wiki.png" width="131" height="150" resource="./File:Wiki.png"></a></figure><p>456</p>
16292 Lists: Add space after bullets
16299 * <span> baz</span>
16304 <li><span> baz</span></li>
16309 Parsoid: Serialize positional parameters with = in them as named parameter
16315 <p about="#mwt1" typeof="mw:Transclusion"
16316 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
16320 # -----------------------------------------------------------------
16321 # End of section for Parsoid-only html2wt tests for serialization
16323 # -----------------------------------------------------------------
16330 Try for 100% code coverage