1 # MediaWiki Parser test cases
2 # Some taken from http://meta.wikimedia.org/wiki/Parser_testing
3 # All (C) their respective authors and released under the GPL
5 # The syntax should be fairly self-explanatory.
7 # Currently supported test options:
8 # One of the following three:
10 # (default) generate HTML output
11 # pst apply pre-save transform
12 # msg apply message transform
14 # Plus any combination of these:
16 # cat add category links
17 # ill add inter-language links
18 # subpage enable subpages (disabled by default)
19 # noxml don't check for XML well formdness
20 # title=[[XXX]] run test using article title XXX
21 # language=XXX set content language to XXX for this test
22 # variant=XXX set the variant of language for this test (eg zh-tw)
23 # disabled do not run test
24 # parsoid parsoid-only test (not run by PHP parser)
25 # php php-only test (not run by the parsoid parser)
26 # showtitle make the first line the title
27 # comment run through Linker::formatComment() instead of main parser
28 # local format section links in edit comment text as local links
30 # You can also set the following parser properties via test options:
31 # wgEnableUploads, wgAllowExternalImages, wgMaxTocLevel,
32 # wgLinkHolderBatchSize, wgRawHtml
34 # For testing purposes, temporary articles can created:
35 # !!article / NAMESPACE:TITLE / !!text / ARTICLE TEXT / !!endarticle
36 # where '/' denotes a newline.
38 # This is the standard article assumed to exist.
63 MediaWiki:bad image list
65 * [[File:Bad.jpg]] except [[Nasty page]]
99 Template:echo_with_span
105 Template:echo_with_div
117 Template:table_attribs
120 |</noinclude>style="color: red"| Foo
126 {{table_attribs}} || Bar || Baz
130 Template:image_attribs
133 [[File:foobar.jpg|</noinclude>right|Caption text<noinclude>]]</noinclude>
155 This is a simple paragraph.
157 <p>This is a simple paragraph.
162 Paragraphs with extra newline spacing
185 Paragraphs with newline spacing with comment lines in between
193 <!--foo--><!--More than 1 comment disables stripping of this line!-->
250 Paragraphs with newline spacing with non-empty white-space lines in between
277 Paragraphs with newline spacing with non-empty mixed comment and white-space lines in between
285 <!--foo--><!--More than 1 comment disables stripping of this line!-->
324 Extra newlines: More paragraphs with indented comment
339 Extra newlines followed by heading
354 <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>
355 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
358 <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>
363 Extra newlines between heading and content are swallowed
371 <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>
372 <p><a href="/index.php?title=A&action=edit&redlink=1" class="new" title="A (page does not exist)">a</a>
379 http://fr.wikipedia.org/wiki/🍺
380 <!-- EasterEgg we love beer, better be able be able to link to it -->
382 <p><a rel="nofollow" class="external free" href="http://fr.wikipedia.org/wiki/🍺">http://fr.wikipedia.org/wiki/🍺</a>
402 * plain''italic''plain
403 * plain''italic''plain''italic''plain
404 * plain'''bold'''plain
405 * plain'''bold'''plain'''bold'''plain
406 * plain''italic''plain'''bold'''plain
407 * plain'''bold'''plain''italic''plain
408 * plain''italic'''bold-italic'''italic''plain
409 * plain'''bold''bold-italic''bold'''plain
410 * plain'''''bold-italic'''italic''plain
411 * plain'''''bold-italic''bold'''plain
412 * plain''italic'''bold-italic'''''plain
413 * plain'''bold''bold-italic'''''plain
414 * plain l'''italic''plain
415 * plain l''''bold''' plain
418 </li><li> plain<i>italic</i>plain
419 </li><li> plain<i>italic</i>plain<i>italic</i>plain
420 </li><li> plain<b>bold</b>plain
421 </li><li> plain<b>bold</b>plain<b>bold</b>plain
422 </li><li> plain<i>italic</i>plain<b>bold</b>plain
423 </li><li> plain<b>bold</b>plain<i>italic</i>plain
424 </li><li> plain<i>italic<b>bold-italic</b>italic</i>plain
425 </li><li> plain<b>bold<i>bold-italic</i>bold</b>plain
426 </li><li> plain<i><b>bold-italic</b>italic</i>plain
427 </li><li> plain<b><i>bold-italic</i>bold</b>plain
428 </li><li> plain<i>italic<b>bold-italic</b></i>plain
429 </li><li> plain<b>bold<i>bold-italic</i></b>plain
430 </li><li> plain l'<i>italic</i>plain
431 </li><li> plain l'<b>bold</b> plain
436 # this example taken from the simple/Moon article
438 Italics and possessives
440 obtained by ''[[Lunar Prospector]]'''s gamma-ray spectrometer
442 <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
447 ### 2-quote opening sequence tests
450 Italics and bold: 2-quote opening sequence: (2,2)
460 Italics and bold: 2-quote opening sequence: (2,3)
470 Italics and bold: 2-quote opening sequence: (2,4)
480 Italics and bold: 2-quote opening sequence: (2,5) (php)
489 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
491 Italics and bold: 2-quote opening sequence: (2,5) (parsoid)
503 ### 3-quote opening sequence tests
507 Italics and bold: 3-quote opening sequence: (3,2)
517 Italics and bold: 3-quote opening sequence: (3,3)
527 Italics and bold: 3-quote opening sequence: (3,4)
537 Italics and bold: 3-quote opening sequence: (3,5) (php)
546 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
548 Italics and bold: 3-quote opening sequence: (3,5) (parsoid)
560 ### 4-quote opening sequence tests
564 Italics and bold: 4-quote opening sequence: (4,2)
574 Italics and bold: 4-quote opening sequence: (4,3)
584 Italics and bold: 4-quote opening sequence: (4,4)
594 Italics and bold: 4-quote opening sequence: (4,5) (php)
603 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
605 Italics and bold: 4-quote opening sequence: (4,5) (parsoid)
611 <p>'<b>foo<i></i></b>
617 ### 5-quote opening sequence tests
621 Italics and bold: 5-quote opening sequence: (5,2) (php)
630 # Parsoid reverses the nesting order, compared to the PHP parser
632 Italics and bold: 5-quote opening sequence: (5,2) (parsoid)
644 Italics and bold: 5-quote opening sequence: (5,3)
654 Italics and bold: 5-quote opening sequence: (5,4)
658 <p><i><b>foo'</b></i>
664 Italics and bold: 5-quote opening sequence: (5,5)
673 ### multiple quote sequences in a line
676 Italics and bold: multiple quote sequences: (2,4,2)
680 <p><i>foo'<b>bar</b></i>
686 Italics and bold: multiple quote sequences: (2,4,3)
690 <p><i>foo'<b>bar</b></i>
696 Italics and bold: multiple quote sequences: (2,4,4)
700 <p><i>foo'<b>bar'</b></i>
706 Italics and bold: multiple quote sequences: (3,4,2) (php)
715 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
717 Italics and bold: multiple quote sequences: (3,4,2) (parsoid)
723 <p><b>foo'</b>bar<i></i>
729 Italics and bold: multiple quote sequences: (3,4,3) (php)
738 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
740 Italics and bold: multiple quote sequences: (3,4,3) (parsoid)
746 <p><b>foo'</b>bar<b></b>
751 ### other quote tests
754 Italics and bold: other quote tests: (2,3,5)
756 ''this is about '''foo's family'''''
758 <p><i>this is about <b>foo's family</b></i>
764 Italics and bold: other quote tests: (2,(3,3),2)
766 ''this is about '''foo's''' family''
768 <p><i>this is about <b>foo's</b> family</i>
774 Italics and bold: other quote tests: (3,2,3,2)
776 '''this is about ''foo'''s family''
778 <p><b>this is about <i>foo</i></b><i>s family</i>
783 # The Parsoid team believes the PHP parser's output on this test is wrong.
784 # It only checks for convert-to-bold-on-single-character-word when the word
785 # matches with a bold tag ("'''") that is *odd* in the list of quote tokens.
786 # This means that the bold token in position 2 (0-indexed) gets converted by
787 # parsoid, but doesn't get changed by the PHP parser.
789 Italics and bold: other quote tests: (3,2,3,3) (php)
793 '''this is about ''foo'''s family'''
795 <p>'<i>this is about </i>foo<b>s family</b>
798 # This is the output the Parsoid team believes to be correct.
800 Italics and bold: other quote tests: (3,2,3,3) (parsoid)
804 '''this is about ''foo'''s family'''
806 <p><b>this is about <i>foo'</i>s family</b>
812 Italics and bold: other quote tests: (3,(2,2),3)
814 '''this is about ''foo's'' family'''
816 <p><b>this is about <i>foo's</i> family</b>
822 Italicized possessive
824 The ''[[Main Page]]'''s talk page.
826 <p>The <i><a href="/wiki/Main_Page" title="Main Page">Main Page</a>'</i>s talk page.
831 Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line
832 (Requires tidy for PHP parser output to be fixed up)
834 parsoid=wt2html,wt2wt
842 <tbody><tr><th><i>a</i></th><th><i>b</i></th>
843 <td><i>a</i></td><td><i>b</i></td></tr>
852 Non-html5 tags should be accepted
854 <center>''foo''</center>
857 <strike>''foo''</strike>
860 <center><i>foo</i></center>
861 <p><big><i>foo</i></big>
862 <font><i>foo</i></font>
863 <strike><i>foo</i></strike>
869 ### <nowiki> test cases
873 <nowiki> unordered list
875 <nowiki>* This is not an unordered list item.</nowiki>
877 <p>* This is not an unordered list item.
884 <nowiki>Lorem ipsum dolor
905 :There is not nowiki.
906 :There is <nowiki>nowiki</nowiki>.
908 #There is not nowiki.
909 #There is <nowiki>nowiki</nowiki>.
911 *There is not nowiki.
912 *There is <nowiki>nowiki</nowiki>.
914 <dl><dd>There is not nowiki.
915 </dd><dd>There is nowiki.
917 <ol><li>There is not nowiki.
918 </li><li>There is nowiki.
920 <ul><li>There is not nowiki.
921 </li><li>There is nowiki.
927 Entities inside <nowiki>
929 <nowiki><</nowiki>
936 Entities inside template parameters
942 <p><span typeof="mw:Transclusion mw:Entity" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"&ndash;"}},"i":0}'>–</span>
950 Comments and Indent-Pre
952 <!-- comment 1 --> asdf
954 <!-- comment 1 --> asdf
957 <!-- comment 1 --> asdf
958 <!-- comment 2 -->xyz
960 <!-- comment 1 --> asdf
961 <!-- comment 2 --> xyz
1017 asdf<!-- comment 1 -->jkl
1027 <!-- foo --> b <!-- bar -->
1041 <!-- returns a single newline, not nothing, since the newline after > is not stripped -->
1047 Comment semantics and delimiters
1049 <!-- --><!----><!-----><!------>
1055 Comment semantics and delimiters, redux
1057 <!-- In SGML every "foo" here would actually show up in the text -- foo -- bar
1058 -- foo -- funky huh? ... -->
1064 Comment semantics and delimiters: directors cut
1066 <!-- ... However we like to keep things simple and somewhat XML-ish so we eat
1067 everything starting with < followed by !-- until the first -- and > we see,
1068 that wouldn't be valid XML however, since in XML -- has to terminate a comment
1076 Comment semantics: nesting
1078 <!--<!-- no, we're not going to do anything fancy here -->-->
1085 Comment semantics: unclosed comment at end
1087 <!--This comment will run out to the end of the document
1093 Comment in template title
1102 Comment on its own line post-expand
1114 Comment on its own line post-expand with non-significant whitespace
1126 ### paragraph wrapping tests
1140 Block tag on one line
1152 Block tag on both lines
1164 Multiple lines without block tags
1182 Empty lines between lines with block tags
1212 ### Preformatted text
1221 And a [[Main Page|link]]
1227 And a <a href="/wiki/Main_Page" title="Main Page">link</a>
1232 Ident preformatting with inline content
1243 <pre> with <nowiki> inside (compatibility with 1.6 and earlier)
1260 Regression with preformatted in <center>
1273 # Expected output in the following test is not really expected (there should be
1274 # <pre> in the output) -- it's only testing for well-formedness.
1276 Bug 6200: Preformatted in <blockquote>
1289 <pre> with attributes (bug 3202)
1291 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1293 <pre style="background: blue; color:white">Bluescreen of WikiDeath</pre>
1298 <pre> with width attribute (bug 3202)
1300 <pre width="8">Narrow screen goodies</pre>
1302 <pre width="8">Narrow screen goodies</pre>
1307 <pre> with forbidden attribute (bug 3202)
1309 <pre width="8" onmouseover="alert(document.cookie)">Narrow screen goodies</pre>
1311 <pre width="8">Narrow screen goodies</pre>
1316 Entities inside <pre>
1325 <pre> with forbidden attribute values (bug 3202)
1327 <pre width="8" style="border-width: expression(alert(document.cookie))">Narrow screen goodies</pre>
1329 <pre width="8" style="/* insecure input */">Narrow screen goodies</pre>
1334 <nowiki> inside <pre> (bug 13238)
1342 <pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>
1350 <pre><nowiki>Foo</nowiki></pre>
1355 <nowiki> and <pre> preference (first one wins)
1386 </pre> inside nowiki
1388 <nowiki></pre></nowiki>
1395 Templates: Indent-Pre: 1a. Templates that break a line should suppress <pre>
1403 Templates: Indent-Pre: 1b. Templates that break a line should suppress <pre>
1413 Templates: Indent-Pre: 1c: Wrapping should be based on expanded content
1425 Templates: Indent-Pre: 1d: Wrapping should be based on expanded content
1446 Templates: Indent-Pre: 1e. Wrapping should be based on expanded content
1450 {{echo| foo}}{{echo| bar}}
1455 {{echo|<!--cmt--> foo}}
1457 <!--cmt-->{{echo| foo}}
1459 {{echo|{{echo| }}bar}}
1477 Templates: Indent-Pre: 1f: Wrapping should be based on expanded content
1514 Templates: Single-line variant of parameter whitespace stripping test
1520 {{echo|{{echo| a}}}}
1522 {{echo|1={{echo| a}}}}
1535 Templates: Strip whitespace from named parameters, but not positional ones
1563 Templates: Dont strip whitespace from whitespace/comment-only arguments
1567 {{echo| <!--cmt--> }}
1574 Templates: Parsoid parameter escaping test 1
1578 {{echo|[foo]|{{echo|[bar]}}}}
1580 <p about="#mwt1" typeof="mw:Transclusion"
1581 data-mw="{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"[foo]"},"2":{"wt":"{{echo|[bar]}}"}},"i":0}">[foo]</p>
1585 Parsoid: Pipes in external links in template parameter
1589 {{echo|[{{echo|http://example.com}} link]}}
1591 <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>
1595 Parsoid: pipe in transclusion parameter
1599 {{echo|http://foo.com/a|b}}
1601 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1602 typeof="mw:Transclusion"
1603 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>
1607 Parsoid: Pipe in external link target and content in template parameter
1609 parsoid=html2wt,wt2wt
1611 {{echo|[http://foo.com/a|b a|b]}}
1613 <p><a rel="mw:ExtLink" href="http://foo.com/a|b" about="#mwt1"
1614 typeof="mw:Transclusion"
1615 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},
1616 "params":{"1":{"wt":"[http://foo.com/a|b a|b]"}},"i":0}'>a|b</a></p>
1620 Templates: Dont escape already nowiki-escaped text in template parameters
1622 parsoid=html2wt,wt2wt
1624 {{echo|foo<nowiki>|</nowiki>bar}}
1625 {{echo|<nowiki><div></nowiki>}}
1626 {{echo|<nowiki></nowiki>}}
1628 <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>
1629 <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>
1630 <span typeof="mw:Transclusion mw:Nowiki" about="#mwt3" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<nowiki></nowiki>"}},"i":0}'></span>
1635 ### Parsoid-centric tests for testing RT edge cases for pre
1639 1a. Indent-Pre and Comments
1652 1b. Indent-Pre and Comments
1665 1c. Indent-Pre and Comments
1678 2a. Indent-Pre and tables
1699 2b. Indent-Pre and tables
1715 2c. Indent-Pre and tables (bug 42252)
1732 3a. Indent-Pre and block tags (single-line html)
1740 <pre><span> foo </span>
1745 3b. Indent-Pre and block tags (pre-content on separate line)
1797 4. Multiple spaces at start-of-line
1816 5. White-space in indent-pre
1817 NOTE: the white-space char on 2nd line is significant
1830 ### HTML-pre (some to spec PHP parser behavior and some Parsoid-RT-centric)
1834 HTML-pre: 1. embedded newlines
1870 HTML-pre: 2: indented text
1883 HTML-pre: 3: other wikitext
1904 ### Definition lists
1911 <dl><dt> name </dt><dd> Definition
1917 Definition list for indentation only
1921 <dl><dd> Indented text
1927 Definition list with no space
1931 <dl><dt>name</dt><dd>Definition
1937 Definition list with URL link
1939 ; http://example.com/ : definition
1941 <dl><dt> <a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> </dt><dd> definition
1947 Definition list with bracketed URL link
1949 ;[http://www.example.com/ Example]:Something about it
1951 <dl><dt><a rel="nofollow" class="external text" href="http://www.example.com/">Example</a></dt><dd>Something about it
1957 Definition list with wikilink containing colon
1959 ; [[Help:FAQ]]: The least-read page on Wikipedia
1961 <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
1966 # At Brion's and JeLuF's insistence... :)
1968 Definition list with news link containing colon
1970 ; news:alt.wikipedia.rox: This isn't even a real newsgroup!
1972 <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!
1978 Malformed definition list with colon
1980 ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop
1982 <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
1988 Definition lists: colon in external link text
1990 ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up
1992 <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
1998 Definition lists: colon in HTML attribute
2000 ;<b style="display: inline">bold</b>
2002 <dl><dt><b style="display: inline">bold</b>
2008 Definition lists: self-closed tag
2010 ;one<br/>two : two-line fun
2012 <dl><dt>one<br />two </dt><dd> two-line fun
2018 Bug 11748: Literal closing tags
2022 <dd>test test test test test</dd>
2024 <dd>test test test test test</dd>
2029 <dd>test test test test test</dd>
2031 <dd>test test test test test</dd>
2037 Definition and unordered list using wiki syntax nested in unordered list using html tags.
2040 ; term : description
2046 <dl><dt> term </dt><dd> description
2057 Definition list with empty definition and following paragraph
2062 <dl><dt> term</dt><dd>
2069 Nested definition lists using html syntax
2086 Definition Lists: No nesting: Multiple dd's
2100 Definition Lists: Indentation: Regular
2116 Definition Lists: Indentation: Missing 1st level
2130 Definition Lists: Indentation: Multi-level indent
2134 <dl><dd><dl><dd><dl><dd>i3
2142 Definition Lists: Hacky use to indent tables
2149 should be left alone
2151 <dl><dd><dl><dd><table>
2156 </td></tr></table></dd></dl></dd></dl>
2158 should be left alone
2161 ## The PHP parser treats : items (dd) without a corresponding ; item (dt)
2162 ## as an empty dt item. It also ignores all but the last ";" when followed
2163 ## by ":" later on. So, ";" are not ignored in ";;;t3" but are ignored in
2164 ## ";;;t3 :d1". So, PHP parser behavior is a little inconsistent wrt multiple
2167 ## Ex: ";;t2 ::d2" is transformed into:
2179 ## But, Parsoid treats "; :" as a tight atomic unit and excess ":" as plain text
2180 ## So, the same wikitext above (;;t2 ::d2) is transformed into:
2191 ## All Parsoid only definition list tests have this difference.
2193 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
2194 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
2197 Table / list interaction: indented table with lists in table contents
2219 </td></tr></table></dd></dl>
2224 Table / list interaction: lists nested in tables nested in indented lists
2249 </td></tr></table></dd></dl>
2257 Definition Lists: Nesting: Multi-level (Parsoid only)
2287 Definition Lists: Nesting: Test 2 (Parsoid only)
2307 Definition Lists: Nesting: Test 3 (Parsoid only)
2335 Definition Lists: Nesting: Test 4
2340 <dl><dd><dl><dd><dl><dt>t3
2349 ## The Parsoid team believes the following three test exposes a
2350 ## bug in the PHP parser. (Parsoid team thinks the PHP parser is
2351 ## wrong to close the <dl> after the <dt> containing the <ul>.)
2353 Definition Lists: Mixed Lists: Test 1 (php)
2361 <dl><dd><dl><dt><ul><li> foo
2371 Definition Lists: Mixed Lists: Test 1 (parsoid)
2379 <dl><dd><dl><dt><ul><li> foo
2380 </li></ul></dt><dd><ul><li> bar
2381 </li></ul></dd><dt> baz</dt></dl></dd></dl>
2385 Definition Lists: Mixed Lists: Test 2
2399 Definition Lists: Mixed Lists: Test 3
2404 <ul><li><dl><dd><dl><dd><dl><dd> d1
2415 Definition Lists: Mixed Lists: Test 4
2420 <ul><li><dl><dt>d1 </dt><dd>d2
2421 </dd><dt>d3 </dt><dd>d4
2429 Definition Lists: Mixed Lists: Test 5
2444 Definition Lists: Mixed Lists: Test 6
2449 <ol><li><ul><li><dl><dd>d1
2461 Definition Lists: Mixed Lists: Test 7
2475 Definition Lists: Mixed Lists: Test 8
2491 Definition Lists: Mixed Lists: Test 9
2495 <ul><li><dl><dt>foo </dt><dd>bar
2503 Definition Lists: Mixed Lists: Test 10
2507 <ul><li><ol><li><dl><dt>foo </dt><dd>bar
2514 # The Parsoid team disagrees with the PHP parser's seemingly-random
2515 # rules regarding dd/dt on the next two tests. Parsoid is more
2516 # consistent, and recognizes the shared nesting and keeps the
2517 # still-open tags around until the nesting is complete.
2520 Definition Lists: Mixed Lists: Test 11 (php)
2527 <ul><li><ol><li><ul><li><ol><li><dl><dt>foo </dt><dd><ul><li><dl><dt><dl><dt>bar
2532 <dl><dt>boo </dt><dd>baz
2541 Definition Lists: Mixed Lists: Test 11 (parsoid)
2563 <dt>foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2564 <dd data-parsoid='{"stx":"row"}'>bar</dd></dl></dt></dl></li></ul></dt>
2565 <dt>boo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2566 <dd data-parsoid='{"stx":"row"}'>baz</dd></dl></li></ol></li></ul></li></ol></li></ul>
2571 Definition Lists: Weird Ones: Test 1 (php)
2575 *#;*::;; foo : bar (who uses this?)
2577 <ul><li><ol><li><dl><dt> foo </dt><dd><ul><li><dl><dd><dl><dd><dl><dt><dl><dt> bar (who uses this?)
2589 Definition Lists: Weird Ones: Test 1 (parsoid)
2593 *#;*::;; foo : bar (who uses this?)
2610 <dt> foo<span typeof="mw:Placeholder" data-parsoid='{"src":" "}'> </span></dt>
2611 <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>
2618 External links: non-bracketed
2620 Non-bracketed: http://example.com
2622 <p>Non-bracketed: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2627 External links: numbered
2629 Numbered: [http://example.com]
2630 Numbered: [http://example.net]
2631 Numbered: [http://example.com]
2633 <p>Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[1]</a>
2634 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.net">[2]</a>
2635 Numbered: <a rel="nofollow" class="external autonumber" href="http://example.com">[3]</a>
2640 External links: specified text
2642 Specified text: [http://example.com link]
2644 <p>Specified text: <a rel="nofollow" class="external text" href="http://example.com">link</a>
2649 External links: trail
2651 Linktrails should not work for external links: [http://example.com link]s
2653 <p>Linktrails should not work for external links: <a rel="nofollow" class="external text" href="http://example.com">link</a>s
2658 External links: dollar sign in URL
2660 http://example.com/1$2345
2662 <p><a rel="nofollow" class="external free" href="http://example.com/1$2345">http://example.com/1$2345</a>
2667 External links: dollar sign in URL (named)
2669 [http://example.com/1$2345]
2671 <p><a rel="nofollow" class="external autonumber" href="http://example.com/1$2345">[1]</a>
2676 External links: open square bracket forbidden in URL (bug 4377)
2678 http://example.com/1[2345
2680 <p><a rel="nofollow" class="external free" href="http://example.com/1">http://example.com/1</a>[2345
2685 External links: open square bracket forbidden in URL (named) (bug 4377)
2687 [http://example.com/1[2345]
2689 <p><a rel="nofollow" class="external text" href="http://example.com/1">[2345</a>
2694 External links: nowiki in URL link text (bug 6230)
2696 [http://example.com/ <nowiki>''example site''</nowiki>]
2698 <p><a rel="nofollow" class="external text" href="http://example.com/">''example site''</a>
2703 External links: newline forbidden in text (bug 6230 regression check)
2705 [http://example.com/ first
2708 <p>[<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a> first
2714 External links: Pipe char between url and text
2716 [http://example.com | link]
2718 <p><a rel="nofollow" class="external text" href="http://example.com">| link</a>
2723 External links: protocol-relative URL in brackets
2725 [//example.com/ Test]
2727 <p><a rel="nofollow" class="external text" href="//example.com/">Test</a>
2732 External links: protocol-relative URL in brackets without text
2736 <p><a rel="nofollow" class="external autonumber" href="//example.com">[1]</a>
2741 External links: protocol-relative URL in free text is left alone
2745 <p>//example.com/Foo
2750 External links: protocol-relative URL in the middle of a word is left alone (bug 30269)
2752 foo//example.com/Foo
2754 <p>foo//example.com/Foo
2761 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2763 <p>External image: <img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2768 External image from https
2770 External image from https: https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2772 <p>External image from https: <img src="https://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" />
2777 External image (when not allowed)
2779 wgAllowExternalImages=0
2781 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png
2783 <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>
2788 Link to non-http image, no img tag
2790 Link to non-http image, no img tag: ftp://example.com/test.jpg
2792 <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>
2797 External links: terminating separator
2799 Terminating separator: http://example.com/thing,
2801 <p>Terminating separator: <a rel="nofollow" class="external free" href="http://example.com/thing">http://example.com/thing</a>,
2806 External links: intervening separator
2808 Intervening separator: http://example.com/1,2,3
2810 <p>Intervening separator: <a rel="nofollow" class="external free" href="http://example.com/1,2,3">http://example.com/1,2,3</a>
2815 External links: old bug with URL in query
2817 Old bug with URL in query: [http://example.com/thing?url=http://example.com link]
2819 <p>Old bug with URL in query: <a rel="nofollow" class="external text" href="http://example.com/thing?url=http://example.com">link</a>
2824 External links: old URL-in-URL bug, mixed protocols
2826 And again with mixed protocols: [ftp://example.com?url=http://example.com link]
2828 <p>And again with mixed protocols: <a rel="nofollow" class="external text" href="ftp://example.com?url=http://example.com">link</a>
2833 External links: URL in text
2835 URL in text: [http://example.com http://example.com]
2837 <p>URL in text: <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>
2842 External links: Clickable images
2844 ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png]
2846 <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>
2851 External links: raw ampersand
2853 Old & use: http://x&y
2855 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2860 External links: encoded ampersand
2862 Old & use: http://x&y
2864 <p>Old & use: <a rel="nofollow" class="external free" href="http://x&y">http://x&y</a>
2869 External links: encoded equals (bug 6102)
2871 http://example.com/?foo=bar
2873 <p><a rel="nofollow" class="external free" href="http://example.com/?foo=bar">http://example.com/?foo=bar</a>
2878 External links: [raw ampersand]
2880 Old & use: [http://x&y]
2882 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2887 External links: [encoded ampersand]
2889 Old & use: [http://x&y]
2891 <p>Old & use: <a rel="nofollow" class="external autonumber" href="http://x&y">[1]</a>
2896 External links: [encoded equals] (bug 6102)
2898 [http://example.com/?foo=bar]
2900 <p><a rel="nofollow" class="external autonumber" href="http://example.com/?foo=bar">[1]</a>
2905 External links: [IDN ignored character reference in hostname; strip it right off]
2907 [http://e‌xample.com/]
2909 <p><a rel="nofollow" class="external autonumber" href="http://example.com/">[1]</a>
2913 # FIXME: This test (the IDN characters in the text of a link) is an inconsistency.
2914 # Where an external link could easily circumvent the sanitization of the text of
2915 # a link like this (where an IDN-ignore character is in the URL somewhere), this
2916 # test demands a higher standard. That's a bit strange.
2920 # http://example.com -> [http://example.com|http://example.com]
2921 # [http://example.com|http://example.com] -> [http://example.com|http://example.com]
2923 # The first example is sanitized, but the second is not. Any security benefits
2924 # from this production are trivial to circumvent. Either remove this test and
2925 # let the parser(s) do their thing unaccosted, or fix the inconsistency and change
2926 # the test accordingly.
2931 External links: IDN ignored character reference in hostname; strip it right off
2933 http://e‌xample.com/
2935 <p><a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>
2940 External links: www.jpeg.org (bug 554)
2944 <p><a rel="nofollow" class="external free" href="http://www.jpeg.org">http://www.jpeg.org</a>
2949 External links: URL within URL (original bug 2)
2951 [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp]
2953 <p><a rel="nofollow" class="external autonumber" href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp">[1]</a>
2958 BUG 361: URL inside bracketed URL
2960 [http://www.example.com/foo http://www.example.com/bar]
2962 <p><a rel="nofollow" class="external text" href="http://www.example.com/foo">http://www.example.com/bar</a>
2967 BUG 361: URL within URL, not bracketed
2969 http://www.example.com/foo?=http://www.example.com/bar
2971 <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>
2976 BUG 289: ">"-token in URL-tail
2978 http://www.example.com/<hello>
2980 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><hello>
2985 BUG 289: literal ">"-token in URL-tail
2987 http://www.example.com/<b>html</b>
2989 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a><b>html</b>
2994 BUG 289: ">"-token in bracketed URL
2996 [http://www.example.com/<hello> stuff]
2998 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><hello> stuff</a>
3003 BUG 289: literal ">"-token in bracketed URL
3005 [http://www.example.com/<b>html</b> stuff]
3007 <p><a rel="nofollow" class="external text" href="http://www.example.com/"><b>html</b> stuff</a>
3012 BUG 289: literal double quote at end of URL
3014 http://www.example.com/"hello"
3016 <p><a rel="nofollow" class="external free" href="http://www.example.com/">http://www.example.com/</a>"hello"
3021 BUG 289: literal double quote in bracketed URL
3023 [http://www.example.com/"hello" stuff]
3025 <p><a rel="nofollow" class="external text" href="http://www.example.com/">"hello" stuff</a>
3030 External links: multiple legal whitespace is fine, Magnus. Don't break it please. (bug 5081)
3032 [http://www.example.com test]
3034 <p><a rel="nofollow" class="external text" href="http://www.example.com">test</a>
3039 External links: link text with spaces
3041 [http://www.example.com a b c]
3042 [http://www.example.com ''a'' ''b'']
3044 <p><a rel="nofollow" class="external text" href="http://www.example.com">a b c</a>
3045 <a rel="nofollow" class="external text" href="http://www.example.com"><i>a</i> <i>b</i></a>
3050 External links: wiki links within external link (Bug 3695)
3052 [http://example.com [[wikilink]] embedded in ext link]
3054 <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>
3059 BUG 787: Links with one slash after the url protocol are invalid
3063 [http:/example.com title]
3065 <p>http:/example.com
3066 </p><p>[http:/example.com title]
3071 Bracketed external links with template-generated invalid target
3073 [{{echo|http:/example.com}} title]
3075 <p>[http:/example.com title]
3080 Bug 2702: Mismatched <i>, <b> and <a> tags are invalid
3082 ''[http://example.com text'']
3083 [http://example.com '''text]'''
3084 ''Something [http://example.com in italic'']
3085 ''Something [http://example.com mixed''''', even bold]'''
3086 '''''Now [http://example.com both''''']
3088 <p><a rel="nofollow" class="external text" href="http://example.com"><i>text</i></a>
3089 <a rel="nofollow" class="external text" href="http://example.com"><b>text</b></a>
3090 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>in italic</i></a>
3091 <i>Something </i><a rel="nofollow" class="external text" href="http://example.com"><i>mixed</i><b>, even bold</b></a>
3092 <i><b>Now </b></i><a rel="nofollow" class="external text" href="http://example.com"><i><b>both</b></i></a>
3098 Bug 4781: %26 in URL
3100 http://www.example.com/?title=AT%26T
3102 <p><a rel="nofollow" class="external free" href="http://www.example.com/?title=AT%26T">http://www.example.com/?title=AT%26T</a>
3106 # According to http://dev.w3.org/html5/spec/Overview.html#parsing-urls a plain
3107 # % is actually legal in HTML5. Any change in output would need testing though.
3109 Bug 4781, 5267: %25 in URL
3111 http://www.example.com/?title=100%25_Bran
3113 <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>
3118 Bug 4781, 5267: %28, %29 in URL
3120 http://www.example.com/?title=Ben-Hur_%281959_film%29
3122 <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>
3128 Bug 4781: %26 in autonumber URL
3130 [http://www.example.com/?title=AT%26T]
3132 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=AT%26T">[1]</a>
3137 Bug 4781, 5267: %26 in autonumber URL
3139 [http://www.example.com/?title=100%25_Bran]
3141 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=100%25_Bran">[1]</a>
3146 Bug 4781, 5267: %28, %29 in autonumber URL
3148 [http://www.example.com/?title=Ben-Hur_%281959_film%29]
3150 <p><a rel="nofollow" class="external autonumber" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">[1]</a>
3156 Bug 4781: %26 in bracketed URL
3158 [http://www.example.com/?title=AT%26T link]
3160 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=AT%26T">link</a>
3165 Bug 4781, 5267: %26 in bracketed URL
3167 [http://www.example.com/?title=100%25_Bran link]
3169 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=100%25_Bran">link</a>
3174 Bug 4781, 5267: %28, %29 in bracketed URL
3176 [http://www.example.com/?title=Ben-Hur_%281959_film%29 link]
3178 <p><a rel="nofollow" class="external text" href="http://www.example.com/?title=Ben-Hur_%281959_film%29">link</a>
3183 External link containing double-single-quotes in text '' (bug 4598 sanity check)
3185 Some [http://example.com/ pretty ''italics'' and stuff]!
3187 <p>Some <a rel="nofollow" class="external text" href="http://example.com/">pretty <i>italics</i> and stuff</a>!
3192 External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)
3194 ''Some [http://example.com/ pretty ''italics'' and stuff]!''
3196 <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>
3201 External link containing double-single-quotes with no space separating the url from text in italics
3203 [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]].]
3205 <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>
3210 External link with comments in link text
3212 [http://www.google.com Google <!-- comment -->]
3214 <p><a rel="nofollow" class="external text" href="http://www.google.com">Google </a>
3219 URL-encoding in URL functions (single parameter)
3221 {{localurl:Some page|amp=&}}
3223 <p>/index.php?title=Some_page&amp=&
3228 URL-encoding in URL functions (multiple parameters)
3230 {{localurl:Some page|q=?&=&}}
3232 <p>/index.php?title=Some_page&q=?&amp=&
3239 http://example.com/index.php?foozoid%5B%5D=bar
3241 http://example.com/index.php?foozoid[]=bar
3243 <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>
3244 </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>
3249 IPv6 urls (bug 21261)
3253 http://[2404:130:0:1000::187:2]/index.php
3255 <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>
3260 Non-extlinks in brackets
3269 [{{echo|foo}} ''bar'']
3270 [{{echo|foo}}l's] errand
3271 [{{echo|foo}}l's errand]
3273 [url=http://example.com]
3286 [url=<a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>]
3291 Parsoid: Percent encoding in external links
3295 [https://github.com/search?l=&q=ResourceLoader+%40wikimedia Search]
3297 <p><a rel="mw:ExtLink"
3298 href="https://github.com/search?l=&q=ResourceLoader+%40wikimedia">Search</a></p>
3302 Parsoid: use url link syntax for links where the content is equal the link
3309 <p><a rel="mw:ExtLink" href="http://example.com">http://example.com</a></p>
3319 Normal text. '''Bold text.''' Normal text. ''Italic text.''
3321 Normal text. '''''Bold italic text.''''' Normal text.
3323 <p>Normal text. <b>Bold text.</b> Normal text. <i>Italic text.</i>
3324 </p><p>Normal text. <i><b>Bold italic text.</b></i> Normal text.
3330 Unclosed and unmatched quotes (php)
3334 '''''Bold italic text '''with bold deactivated''' in between.'''''
3336 '''''Bold italic text ''with italic deactivated'' in between.'''''
3340 ..spanning two paragraphs (should not work).'''
3342 '''Bold tag left open
3344 ''Italic tag left open
3348 <!-- Unmatching number of opening, closing tags: -->
3349 '''This year''''s election ''should'' beat '''last year''''s.
3351 ''Tom'''s car is bigger than ''Susan'''s.
3353 Plain ''italic'''s plain
3355 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3356 </p><p><b><i>Bold italic text </i>with italic deactivated<i> in between.</i></b>
3357 </p><p><b>Bold text..</b>
3358 </p><p>..spanning two paragraphs (should not work).
3359 </p><p><b>Bold tag left open</b>
3360 </p><p><i>Italic tag left open</i>
3362 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3363 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3364 </p><p>Plain <i>italic'</i>s plain
3367 # Parsoid inserts an empty bold tag pair at the end of the line, that the PHP
3368 # parser strips. The wikitext contains just the first half of the bold
3369 # quote pair. (There's also a case where Parsoid nests <b> and <i>
3370 # differently than the PHP parser.)
3372 Unclosed and unmatched quotes (parsoid)
3376 '''''Bold italic text '''with bold deactivated''' in between.'''''
3378 '''''Bold italic text ''with italic deactivated'' in between.'''''
3382 ..spanning two paragraphs (should not work).'''
3384 '''Bold tag left open
3386 ''Italic tag left open
3390 <!-- Unmatching number of opening, closing tags: -->
3391 '''This year''''s election ''should'' beat '''last year''''s.
3393 ''Tom'''s car is bigger than ''Susan'''s.
3395 Plain ''italic'''s plain
3397 <p><i><b>Bold italic text </b>with bold deactivated<b> in between.</b></i>
3398 </p><p><i><b>Bold italic text </b></i><b>with italic deactivated<i> in between.</i></b>
3399 </p><p><b>Bold text..</b>
3400 </p><p>..spanning two paragraphs (should not work).<b></b>
3401 </p><p><b>Bold tag left open</b>
3402 </p><p><i>Italic tag left open</i>
3404 </p><p><b>This year'</b>s election <i>should</i> beat <b>last year'</b>s.
3405 </p><p><i>Tom<b>s car is bigger than </b></i><b>Susan</b>s.
3406 </p><p>Plain <i>italic'</i>s plain
3413 ### some content taken from http://meta.wikimedia.org/wiki/MediaWiki_User%27s_Guide:_Using_tables
3416 # This should not produce <table></table> as <table><tr><td></td></tr></table>
3417 # is the bare minimum required by the spec, see:
3418 # http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
3420 A table with no data. (php)
3427 # Parsoid team replies: empty table tags are legal in HTML5
3429 A table with no data. (parsoid)
3438 # A table with nothing but a caption is invalid XHTML, we might want to render
3439 # this as <p>caption</p>
3441 A table with nothing but a caption (php)
3451 </caption><tr><td></td></tr></table>
3454 # Parsoid team replies: table with only a caption is legal in HTML5
3456 A table with nothing but a caption (parsoid)
3464 <table><caption> caption</caption></table>
3468 A table with caption with default-spaced attributes and a table row
3471 |+ style="color: red;" | caption1
3477 <caption style="color: red;"> caption1
3486 A table with captions with non-default spaced attributes and a table row
3489 |+style="color: red;"|caption2
3490 |+ style="color: red;"| caption3
3496 <caption style="color: red;">caption2
3498 <caption style="color: red;"> caption3
3507 Table td-cell syntax variations
3511 | foo bar foo || baz
3512 | style='color:red;' | baz
3513 | style='color:red;' || baz
3520 <td> foo bar foo </td>
3523 <td style="color:red;"> baz
3525 <td> style='color:red;' </td>
3553 Simple table but with multiple dashes for row wikitext
3571 Multiplication table
3573 {| border="1" cellpadding="2"
3574 |+Multiplication table
3576 ! × !! 1 !! 2 !! 3
3594 <table border="1" cellpadding="2">
3595 <caption>Multiplication table
3642 Accept "||" in table headings
3657 Accept "||" in indented table headings
3667 </th></tr></table></dd></dl>
3672 Accept empty attributes in td/th cells (td/th cells starting with leading ||)
3689 Accept "| !" at start of line in tables (ignore !-attribute)
3693 | !style="color:red" | bar
3705 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 +/-
3709 |style='color:red;'|+1
3710 |style='color:blue;'|-1
3722 <td style="color:red;">+1
3724 <td style="color:blue;">-1
3748 |rowspan=2| Cell 2, row 1 (and 2)
3759 <td rowspan="2"> Cell 2, row 1 (and 2)
3777 {| bgcolor=#ABCDEF border=2
3782 |the original table again
3790 <table bgcolor="#ABCDEF" border="2">
3798 <td>the original table again
3804 Invalid attributes in table cell (bug 1830)
3819 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
3822 | |[ftp://|x||]" onmouseover="alert(document.cookie)">test
3826 <td>[<a rel="nofollow" class="external free" href="ftp://%7Cx">ftp://%7Cx</a></td>
3827 <td>]" onmouseover="alert(document.cookie)">test
3836 Indented table markup mixed with indented pre content (proposed in bug 6200)
3841 Text that should be rendered preformatted
3849 <pre>Text that should be rendered preformatted
3858 Template-generated table cell attributes and cell content
3866 <td style="color: red"> Foo
3872 Template-generated table cell attributes and cell content (2)
3875 |align=center {{table_attribs}}
3880 <td align="center" style="color: red"> Foo
3886 Template-generated table cell attributes and cell content (3)
3889 |align=center {{table_cells}}
3894 <td align="center" style="color: red"> Foo </td>
3902 Table with row followed by newlines and table heading
3920 Table with empty line following the start tag
3937 # FIXME: Preserve the attribute properly (with an empty string as value) in
3938 # the PHP parser. Parsoid implements the behavior below.
3940 Table attributes with empty value
3952 </td></tr></tbody></table>
3957 Wikitext table with a lot of comments
3980 Wikitext table with double-line table cell
3997 Table cell with a single comment
4013 # The expected HTML structure in this test is debatable. The PHP parser does
4014 # not parse this kind of table at all. The main focus for Parsoid is on
4015 # round-tripping, so this output is ok for now. TODO: revisit!
4017 Wikitext table with html-syntax row (Parsoid)
4029 <td>foo</td></tr></tbody></table>
4033 Implicit <td> after a |-
4034 (PHP parser relies on Tidy to add the missing <td> tags)
4036 parsoid=wt2html,wt2wt
4049 Pres should be recognized in an explicit <td> context, but not in an implicit <td> context
4050 (PHP parser relies on Tidy to add the missing <td> tags)
4052 parsoid=wt2html,wt2wt
4064 <tr><td><pre>a</pre></td></tr>
4065 <tr><td> b</td></tr>
4071 Lists should be recognized in an implicit <td> context
4072 (PHP parser relies on Tidy to add the missing <td> tags)
4074 parsoid=wt2html,wt2wt
4083 <td><ul><li>a</li></ul></td>
4092 Plain link, capitalized
4096 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
4101 Plain link, uncapitalized
4105 <p><a href="/wiki/Main_Page" title="Main Page">main Page</a>
4112 [[Main Page|The Main Page]]
4114 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4119 Piped link with comment in link text
4121 [[Main Page|The Main<!--front--> Page]]
4123 <p><a href="/wiki/Main_Page" title="Main Page">The Main Page</a>
4132 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig</a>
4137 Broken link with fragment
4139 [[Zigzagzogzagzig#zug]]
4141 <p><a href="/index.php?title=Zigzagzogzagzig&action=edit&redlink=1" class="new" title="Zigzagzogzagzig (page does not exist)">Zigzagzogzagzig#zug</a>
4146 Special page link with fragment
4148 [[Special:Version#anchor]]
4150 <p><a href="/wiki/Special:Version#anchor" title="Special:Version">Special:Version#anchor</a>
4155 Nonexistent special page link with fragment
4157 [[Special:ThisNameWillHopefullyNeverBeUsed#anchor]]
4159 <p><a href="/wiki/Special:ThisNameWillHopefullyNeverBeUsed" class="new" title="Special:ThisNameWillHopefullyNeverBeUsed (page does not exist)">Special:ThisNameWillHopefullyNeverBeUsed#anchor</a>
4166 xxx[[main Page]], xxx[[Main Page]], Xxx[[main Page]] XXX[[main Page]], XXX[[Main Page]]
4168 <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>
4175 [[Main Page]]xxx, [[Main Page]]XXX, [[Main Page]]!!!
4177 <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>!!!
4188 Bug 43661: Piped links with identical prefixes
4190 [[prefixed article|prefixed articles with spaces]]
4192 [[prefixed article|prefixed articlesaoeu]]
4194 [[Main Page|Main Page test]]
4196 <p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
4197 </p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
4198 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
4204 Link with HTML entity in suffix / tail
4206 [[Main Page]]", [[Main Page]]a
4208 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>", <a href="/wiki/Main_Page" title="Main Page">Main Page</a>a
4213 Link with 3 brackets
4222 Piped link with 3 brackets
4224 [[[main page|the main page]]]
4226 <p>[[[main page|the main page]]]
4231 Link with multiple pipes
4233 [[Main Page|The|Main|Page]]
4235 <p><a href="/wiki/Main_Page" title="Main Page">The|Main|Page</a>
4242 [[Talk:Parser testing]], [[Meta:Disclaimers]]
4244 <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>
4249 Piped link to namespace
4251 [[Meta:Disclaimers|The disclaimers]]
4253 <p><a href="/index.php?title=Meta:Disclaimers&action=edit&redlink=1" class="new" title="Meta:Disclaimers (page does not exist)">The disclaimers</a>
4260 [[Usually caused by a typo (oops}]]
4262 <p>[[Usually caused by a typo (oops}]]
4267 Link containing % (not as a hex sequence)
4271 <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>
4276 Link containing % as a single hex sequence interpreted to char
4280 <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>
4285 Link containing % as a double hex sequence interpreted to hex sequence
4289 <p>[[7%2525 Solution]]
4294 Link containing "#<" and "#>" % as a hex sequences- these are valid section anchors
4295 Example for such a section: == < ==
4297 [[%23%3c]][[%23%3e]]
4299 <p><a href="#.3C">#<</a><a href="#.3E">#></a>
4304 Link containing "<#" and ">#" as a hex sequences
4306 [[%3c%23]][[%3e%23]]
4308 <p>[[%3c%23]][[%3e%23]]
4313 Link containing an equals sign
4315 [[Special:BookSources/isbn=4-00-026157-6]]
4317 <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>
4324 Just a test of an article title containing a tilde.
4327 # note that links containing signatures, like [[Foo~~~~]], are
4328 # massaged by the pre-save transform (PST) and so the tildes are never
4329 # seen by the parser.
4331 Link containing a tilde
4335 <p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
4340 Link containing double-single-quotes '' (bug 4598)
4342 [[Lista d''e paise d''o munno]]
4344 <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>
4349 Link containing double-single-quotes '' in text (bug 4598 sanity check)
4351 Some [[Link|pretty ''italics'' and stuff]]!
4353 <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>!
4358 Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)
4360 ''Some [[Link|pretty ''italics'' and stuff]]!
4362 <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>
4367 Link with double quotes in title part (literal) and alternate part (interpreted)
4369 [[File:Denys Savchenko ''Pentecoste''.jpg]]
4373 [[''Pentecoste''|Pentecoste]]
4375 [[''Pentecoste''|''Pentecoste'']]
4377 <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>
4378 </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>
4379 </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>
4380 </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>
4385 Broken image links with HTML captions (bug 39700)
4387 [[File:Nonexistent|<script></script>]]
4388 [[File:Nonexistent|100px|<script></script>]]
4389 [[File:Nonexistent|<]]
4390 [[File:Nonexistent|a<i>b</i>c]]
4392 <p><a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4393 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><script></script></a>
4394 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent"><</a>
4395 <a href="/index.php?title=Special:Upload&wpDestFile=Nonexistent" class="new" title="File:Nonexistent">abc</a>
4402 [[http://www.example.com]]
4404 <p>[<a rel="nofollow" class="external autonumber" href="http://www.example.com">[1]</a>]
4409 Plain link to URL with link text
4411 [[http://www.example.com Link text]]
4413 <p>[<a rel="nofollow" class="external text" href="http://www.example.com">Link text</a>]
4418 Plain link to protocol-relative URL
4420 [[//www.example.com]]
4422 <p>[<a rel="nofollow" class="external autonumber" href="//www.example.com">[1]</a>]
4427 Plain link to protocol-relative URL with link text
4429 [[//www.example.com Link text]]
4431 <p>[<a rel="nofollow" class="external text" href="//www.example.com">Link text</a>]
4436 Plain link to page with question mark in title
4442 <p><a href="/wiki/A%3Fb" title="A?b">A?b</a>
4443 </p><p><a href="/wiki/A%3Fb" title="A?b">Baz</a>
4448 # I'm fairly sure the expected result here is wrong.
4449 # We want these to be URL links, not pseudo-pages with URLs for titles....
4450 # However the current output is also pretty screwy.
4453 # I'm changing it to match the current output--it arguably makes more
4454 # sense in the light of the test above. Old expected result was:
4455 #<p>Piped link to URL: <a href="/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a>
4457 # But I think this test is bordering on "garbage in, garbage out" anyway.
4462 Piped link to URL: [[http://www.example.com|an example URL]]
4464 <p>Piped link to URL: [<a rel="nofollow" class="external text" href="http://www.example.com%7Can">example URL</a>]
4469 BUG 2: [[page|http://url/]] should link to page, not http://url/
4471 [[Main Page|http://url/]]
4473 <p><a href="/wiki/Main_Page" title="Main Page">http://url/</a>
4478 BUG 337: Escaped self-links should be bold
4482 [[Bug462]] [[Bug462]]
4484 <p><strong class="selflink">Bug462</strong> <strong class="selflink">Bug462</strong>
4489 Self-link to section should not be bold
4493 [[Main Page#section]]
4495 <p><a href="/wiki/Main_Page#section" title="Main Page">Main Page#section</a>
4506 Self-link to numeric title
4512 <p><strong class="selflink">0</strong>
4517 Link to numeric-equivalent title
4523 <p><a href="/wiki/00" title="00">00</a>
4528 <nowiki> inside a link
4530 [[Main<nowiki> Page</nowiki>]] [[Main Page|the main page <nowiki>[it's not very good]</nowiki>]]
4532 <p>[[Main Page]] <a href="/wiki/Main_Page" title="Main Page">the main page [it's not very good]</a>
4537 Non-breaking spaces in title
4539 [[ Main Page ]]
4541 <p><a href="/wiki/Main_Page" title="Main Page">  Main   Page  </a>
4546 Internal link with ca linktrail, surrounded by bold apostrophes (bug 27473 primary issue)
4552 <p><b><a href="/wiki/Main_Page" title="Main Page">Main Page</a></b>
4557 Internal link with ca linktrail, surrounded by italic apostrophes (bug 27473 primary issue)
4563 <p><i><a href="/wiki/Main_Page" title="Main Page">Main Page</a></i>
4568 Internal link with en linktrail: no apostrophes (bug 27473)
4574 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (page does not exist)">Something</a>'nice
4579 Internal link with ca linktrail with apostrophes (bug 27473)
4585 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (encara no existeix)">Something'nice</a>
4590 Internal link with kaa linktrail with apostrophes (bug 27473)
4596 <p><a href="/index.php?title=Something&action=edit&redlink=1" class="new" title="Something (bet ele jaratılmag'an)">Something'nice</a>
4607 Internal link with is link prefix
4611 Aðrir mótmælenda[[söfnuður|söfnuðir]] og
4613 <p>Aðrir <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a> og
4624 Internal link with is link trail and link prefix
4628 [[mótmælendatrú|xxx]]ar
4630 mótmælenda[[söfnuður]]
4631 mótmælenda[[söfnuður|söfnuðir]]
4632 mótmælenda[[söfnuður|söfnuðir]]xxx
4634 <p><a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">xxxar</a>
4635 <a href="/wiki/M%C3%B3tm%C3%A6lendatr%C3%BA" title="Mótmælendatrú">mótmælendatrúar</a>
4636 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuður</a>
4637 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðir</a>
4638 <a href="/wiki/S%C3%B6fnu%C3%B0ur" title="Söfnuður">mótmælendasöfnuðirxxx</a>
4643 Parsoid link trail escaping
4645 parsoid=html2wt,html2html
4649 <p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
4653 Parsoid link prefix escaping
4656 parsoid=html2wt,html2html
4658 Aðrir mótmælenda<nowiki/>[[söfnuður]]
4660 <p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
4664 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
4672 [http://wp.org ''foo'']
4674 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> bar</a>
4675 </p><p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)"> <i>bar</i></a>
4676 </p><p><a rel="nofollow" class="external text" href="http://wp.org">foo</a>
4677 </p><p><a rel="nofollow" class="external text" href="http://wp.org"><i>foo</i></a>
4682 ### Interwiki links (see maintenance/interwiki.sql)
4686 Inline interwiki link
4688 [[MeatBall:SoftSecurity]]
4690 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity</a>
4695 Inline interwiki link with empty title (bug 2372)
4699 <p><a href="http://www.usemod.com/cgi-bin/mb.pl" class="extiw" title="meatball:">MeatBall:</a>
4704 Interwiki link encoding conversion (bug 1636)
4706 *[[Wikipedia:ro:Olteniţa]]
4707 *[[Wikipedia:ro:Olteniţa]]
4709 <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>
4710 </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>
4716 Interwiki link with fragment (bug 2130)
4718 [[MeatBall:SoftSecurity#foo]]
4720 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?SoftSecurity#foo" class="extiw" title="meatball:SoftSecurity">MeatBall:SoftSecurity#foo</a>
4735 Double interlanguage link
4746 Interlanguage link, with prefix links
4758 Double interlanguage link, with prefix links (bug 8897)
4771 Parsoid-specific test: Wikilinks with should RT properly
4777 <p><a href="/index.php?title=WW_II&action=edit&redlink=1" class="new" title="WW II (lonkásá ezalí tɛ̂)">WW II</a>
4782 Parsoid: handle constructor well
4790 <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>
4793 <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>
4797 ## Redirects, Parsoid-only
4800 Simple redirect to page
4804 #REDIRECT [[Main Page]]
4806 <link rel="mw:PageProp/redirect" href="./Main_Page">
4810 Redirect to category
4814 #REDIRECT [[Category:Foo]]
4816 <link rel="mw:PageProp/redirect" href="./Category:Foo"><link rel="mw:WikiLink/Category" href="./Category:Foo">
4820 Redirect to category page
4822 parsoid=wt2html,html2html
4824 #REDIRECT [[:Category:Foo]]
4826 <p><a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a></p>
4830 Redirect to image page
4834 #REDIRECT [[File:Wiki.png]]
4836 <link rel="mw:PageProp/redirect" href="./File:Wiki.png">
4840 Redirect to language
4844 #REDIRECT [[en:File:Wiki.png]]
4846 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4850 Redirect to interwiki
4854 #REDIRECT [[meatball:File:Wiki.png]]
4856 <link rel="mw:PageProp/redirect" href="File:Wiki.png">
4873 Broken br tag sanitization
4883 # TODO: Fix html2html mode (bug 51055)!
4885 Parsoid: Broken br tag recognition
4895 Incorrecly removing closing slashes from correctly formed XHTML
4897 <br style="clear:both;" />
4899 <p><br style="clear:both;" />
4904 Failing to transform badly formed HTML into correct XHTML
4906 <br style="clear: left;">
4907 <br style="clear: right;">
4908 <br style="clear: both;">
4910 <p><br style="clear: left;" />
4911 <br style="clear: right;" />
4912 <br style="clear: both;" />
4917 Handling html with a div self-closing tag
4926 <p><div title />
4930 <p><div title=bar />
4931 <div title=bar/>
4933 <div title="bar/"></div>
4939 Handling html with a br self-closing tag
4948 <p><br title="title" />
4949 <br title="title" />
4958 Horizontal ruler (should it add that extra space?)
4972 Horizontal ruler -- 4+ dashes render hr
4981 Horizontal ruler -- eats additional dashes on the same line
4990 Horizontal ruler -- does not collapse dashes on consecutive lines
5001 Horizontal ruler -- <4 dashes render as plain text
5010 Horizontal ruler -- Supports content following dashes on same line
5019 ### Block-level elements
5042 <ol><li>Numbered list
5059 ***#Number on level 4
5061 **#Number on level 3
5062 **#Number on level 3
5066 #** Level 3, but ordered
5069 <ol><li> with numbers
5071 <ul><li> and bullets
5073 <ol><li> and numbers
5075 </li><li>bullets again
5076 <ul><li>bullet level 2
5077 <ul><li>bullet level 3
5078 <ol><li>Number on level 4
5081 </li><li>bullet level 2
5082 <ol><li>Number on level 3
5083 </li><li>Number on level 3
5086 <ol><li>number level 2
5089 <ul><li><ul><li> Level 3
5093 <ol><li><ul><li><ul><li> Level 3, but ordered
5127 Nested lists 3 (first element empty)
5140 Nested lists 4 (first element empty)
5153 Nested lists 5 (both elements empty)
5166 Nested lists 6 (both elements empty)
5179 Nested lists 7 (skip initial nesting levels)
5183 <ul><li><ul><li><ul><li> foo
5191 Nested lists 8 (multiple nesting transitions)
5199 <ul><li><ul><li> bar
5209 1. Lists with start-of-line-transparent tokens before bullets: Comments
5223 2. Lists with start-of-line-transparent tokens before bullets: Template close
5235 List items are not parsed correctly following a <pre> block (bug 785)
5241 <ul><li> <pre>foo</pre>
5242 </li><li> <pre>bar</pre>
5249 List items from template
5260 * notSOL{{inner list}}
5279 List interrupted by empty line or heading
5289 <ul><li><ul><li> bar
5292 <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>
5293 <ul><li> Another list item
5299 Multiple list tags generated by templates
5314 Single-comment whitespace lines dont break lists, but multi-comment whitespace lines do
5317 <!--This line will NOT split the list-->
5319 <!--This line will NOT split the list either-->
5321 <!--foo--> <!--This line with more than 1 comment will split the list-->
5335 (Cannot test this with PHP parser since it relies on Tidy for the hack)
5337 parsoid=wt2html,wt2wt
5341 * {{echo|<li>templated li-hack}}
5342 * <!--foo--> <li> unsupported li-hack with preceding comments
5345 <li><li>not a li-hack
5351 <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>
5352 <li> <!--foo--> </li><li> li-hack with preceding comments</li></ul>
5355 <li></li><li>not a li-hack
5361 Parsoid: Make sure nested lists are serialized on their own line even if HTML contains no newlines
5372 <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>
5375 # ------------------------------------------------------------------------
5376 # The next set of tests are about Parsoid's ability to handle badly nested
5377 # tags (parse, minimize scope of fixup, and roundtrip back)
5378 # ------------------------------------------------------------------------
5381 Unbalanced closing block tags break a list
5382 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5392 </li></ul></div><div>
5398 Unbalanced closing non-block tags don't break a list
5399 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5409 <ul><li>a<span></span>
5415 Unclosed formatting tags that straddle lists are closed and reopened
5416 (Parsoid-only since php parser generates broken html -- relies on Tidy to fix up)
5424 </li><li> <s> b </s>
5429 List embedded in a non-block tag
5430 (Ugly Parsoid output -- worth fixing; Disabled for PHP parser since it relies on Tidy)
5438 <p><small></small></p>
5444 <p><small></small></p>
5452 Magic Word: {{CURRENTDAY}}
5461 Magic Word: {{CURRENTDAY2}}
5470 Magic Word: {{CURRENTDAYNAME}}
5479 Magic Word: {{CURRENTDOW}}
5488 Magic Word: {{CURRENTMONTH}}
5497 Magic Word: {{CURRENTMONTHABBREV}}
5499 {{CURRENTMONTHABBREV}}
5506 Magic Word: {{CURRENTMONTHNAME}}
5508 {{CURRENTMONTHNAME}}
5515 Magic Word: {{CURRENTMONTHNAMEGEN}}
5517 {{CURRENTMONTHNAMEGEN}}
5524 Magic Word: {{CURRENTTIME}}
5533 Magic Word: {{CURRENTWEEK}} (@bug 4594)
5542 Magic Word: {{CURRENTYEAR}}
5551 Magic Word: {{FULLPAGENAME}}
5553 title=[[User:Ævar Arnfjörð Bjarmason]]
5557 <p>User:Ævar Arnfjörð Bjarmason
5562 Magic Word: {{FULLPAGENAMEE}}
5564 title=[[User:Ævar Arnfjörð Bjarmason]]
5568 <p>User:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5573 Magic Word: {{NAMESPACE}}
5575 title=[[User:Ævar Arnfjörð Bjarmason]]
5584 Magic Word: {{NAMESPACEE}}
5586 title=[[User:Ævar Arnfjörð Bjarmason]]
5595 Magic Word: {{NAMESPACENUMBER}}
5597 title=[[User:Ævar Arnfjörð Bjarmason]]
5606 Magic Word: {{NUMBEROFFILES}}
5615 Magic Word: {{PAGENAME}}
5617 title=[[User:Ævar Arnfjörð Bjarmason]]
5621 <p>Ævar Arnfjörð Bjarmason
5626 Magic Word: {{PAGENAME}} with metacharacters
5628 title=[['foo & bar = baz']]
5632 <p><i>'foo & bar = baz'</i>
5637 Magic Word: {{PAGENAME}} with metacharacters (bug 26781)
5639 title=[[*RFC 1234 http://example.com/]]
5643 <p>*RFC 1234 http://example.com/
5648 Magic Word: {{PAGENAMEE}}
5650 title=[[User:Ævar Arnfjörð Bjarmason]]
5654 <p>%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason
5659 Magic Word: {{PAGENAMEE}} with metacharacters (bug 26781)
5661 title=[[*RFC 1234 http://example.com/]]
5665 <p>*RFC_1234_http://example.com/
5670 Magic Word: {{REVISIONID}}
5679 Magic Word: {{SCRIPTPATH}}
5688 Magic Word: {{SERVER}}
5692 <p><a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5697 Magic Word: {{SERVERNAME}}
5706 Magic Word: {{SITENAME}}
5715 Case-sensitive magic words, when cased differently, should just be template transclusions
5722 <p><a href="/index.php?title=Template:CurrentMonth&action=edit&redlink=1" class="new" title="Template:CurrentMonth (page does not exist)">Template:CurrentMonth</a>
5723 <a href="/index.php?title=Template:Currentday&action=edit&redlink=1" class="new" title="Template:Currentday (page does not exist)">Template:Currentday</a>
5724 <a href="/index.php?title=Template:CURreNTweEK&action=edit&redlink=1" class="new" title="Template:CURreNTweEK (page does not exist)">Template:CURreNTweEK</a>
5725 <a href="/index.php?title=Template:CurrentHour&action=edit&redlink=1" class="new" title="Template:CurrentHour (page does not exist)">Template:CurrentHour</a>
5730 Case-insensitive magic words should still work with weird casing.
5740 <a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>
5745 Namespace 1 {{ns:1}}
5754 Namespace 1 {{ns:01}}
5763 Namespace 0 {{ns:0}} (bug 4783)
5771 Namespace 0 {{ns:00}} (bug 4783)
5779 Namespace -1 {{ns:-1}}
5788 Namespace User {{ns:User}}
5797 Namespace User talk {{ns:User_talk}}
5806 Namespace User talk {{ns:uSeR tAlK}}
5815 Namespace File {{ns:File}}
5824 Namespace File {{ns:Image}}
5833 Namespace (lang=de) Benutzer {{ns:User}}
5844 Namespace (lang=de) Benutzer Diskussion {{ns:3}}
5850 <p>Benutzer Diskussion
5858 {{urlencode:hi world?!}}
5859 {{urlencode:hi world?!|WIKI}}
5860 {{urlencode:hi world?!|PATH}}
5861 {{urlencode:hi world?!|QUERY}}
5874 Magic links: internal link to RFC (bug 479)
5878 <p><a href="/index.php?title=RFC_123&action=edit&redlink=1" class="new" title="RFC 123 (page does not exist)">RFC 123</a>
5883 Magic links: RFC (bug 479)
5887 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc822">RFC 822</a>
5892 Magic links: ISBN (bug 1937)
5896 <p><a href="/wiki/Special:BookSources/0306406152" class="internal mw-magiclink-isbn">ISBN 0-306-40615-2</a>
5901 Magic links: PMID incorrectly converts space to underscore
5905 <p><a class="external mw-magiclink-pmid" rel="nofollow" href="//www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a>
5914 Nonexistent template
5916 {{thistemplatedoesnotexist}}
5918 <p><a href="/index.php?title=Template:Thistemplatedoesnotexist&action=edit&redlink=1" class="new" title="Template:Thistemplatedoesnotexist (page does not exist)">Template:Thistemplatedoesnotexist</a>
5923 Template with invalid target containing tags
5925 {{a<b>b</b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5927 <p>{{a<b>b</b>|foo|a=b|a = b}}
5932 Template with invalid target containing unclosed tag
5934 {{a<b>|{{echo|foo}}|{{echo|a}}={{echo|b}}|a = b}}
5936 <p>{{a<b>|foo|a=b|a = b}}</b>
5943 This is a test template
5951 <p>This is a test template
5956 Template with explicit namespace
5960 <p>This is a test template
5968 This is a test template with parameter {{{param}}}
5974 {{paramtest|param=foo}}
5976 <p>This is a test template with parameter foo
5981 Template:paramtestnum
5987 Template unnamed parameter
5989 {{paramtestnum|Main Page|the main page}}
5991 <p><a href="/wiki/Main_Page" title="Main Page">the main page</a>
5996 Template:templatesimple
6002 Template:templateredirect
6004 #redirect [[Template:templatesimple]]
6008 Template:templateasargtestnum
6014 Template:templateasargtest
6016 {{template{{{templ}}}}}
6020 Template:templateasargtest2
6026 Template with template name as unnamed argument
6028 {{templateasargtestnum|templatesimple}}
6035 Template with template name as argument
6037 {{templateasargtest|templ=simple}}
6044 Template with template name as argument (2)
6046 {{templateasargtest2|templ=templatesimple}}
6053 Template:templateasargtestdefault
6055 {{{{{templ|templatesimple}}}}}
6065 Template with default value
6067 {{templateasargtestdefault}}
6074 Template with default value (value set)
6076 {{templateasargtestdefault|templ=templa}}
6085 {{templateredirect}}
6092 Template with argument in separate line
6094 {{ templateasargtest |
6102 Template with complex template as argument
6105 param ={{ templateasargtest |
6108 <p>This is a test template with parameter (test)
6113 Template with thumb image (with link in description)
6116 param =[[Image:noimage.png|thumb|[[no link|link]] [[no link|caption]]]]}}
6118 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>
6123 Template:complextemplate
6125 {{{1}}} {{paramtest|
6126 param ={{{param}}}}}
6130 Template with complex arguments
6133 param ={{ templateasargtest |
6134 templ = simple }}|[[Template:complextemplate|link]]}}
6136 <p><a href="/wiki/Template:Complextemplate" title="Template:Complextemplate">link</a> This is a test template with parameter (test)
6141 BUG 553: link with two variables in a piped link
6144 |[[{{{1}}}|{{{2}}}]]
6149 <td>[[{{{1}}}|{{{2}}}]]
6155 Magic variable as template parameter
6157 {{paramtest|param={{SITENAME}}}}
6159 <p>This is a test template with parameter MediaWiki
6166 [[{{{param}}}|link]]
6170 Template parameter as link source
6172 {{linktest|param=Main Page}}
6174 <p><a href="/wiki/Main_Page" title="Main Page">link</a>
6179 Template-generated attribute string (k='v')
6181 <span {{attr_str|id|v1}}>bar</span>
6183 <p><span id="v1">bar</span>
6190 including another template, {{paramtest|param={{{arg}}}}}
6194 Template passing argument to another template
6196 {{paramtest2|arg='hmm'}}
6198 <p>including another template, This is a test template with parameter 'hmm'
6209 Template as link source
6213 [[{{linktest2}}|Main Page]]
6215 [[{{linktest2}}]]Page
6217 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6218 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
6219 </p><p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>Page
6237 Template infinite loop
6241 <p><span class="error">Template loop detected: <a href="/wiki/Template:Loop1" title="Template:Loop1">Template:Loop1</a></span>
6246 Template from main namespace
6265 BUG 529: Template with table, not included at beginning of line
6284 BUG 523: Template shouldn't eat newline (or add an extra one before table)
6304 BUG 41: Template parameters shown as broken links
6313 Template with targets containing wikilinks
6317 {{[[{{echo|foo}}]]}}
6319 {{{{echo|[[foo}}]]}}
6321 <p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6322 </p><p>{{<a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">foo</a>}}
6330 ''None'' of '''this''' should be
6332 but rather passed unmodified
6336 # hmm, fix this or just deprecate msgnw and document its behavior?
6342 {{msgnw:MSGNW test}}
6344 <p>''None'' of '''this''' should be
6346 but rather passed unmodified
6354 {{int:youhavenewmessages|lots of money|not!}}
6356 <p>You have lots of money (not!).
6363 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6367 <includeonly> and <noinclude> being included
6378 <onlyinclude>Foo</onlyinclude>bar
6382 <onlyinclude> being included
6394 <onlyinclude>Foo</onlyinclude>bar<includeonly>zar</includeonly>
6398 <onlyinclude> and <includeonly> being included
6407 <includeonly> and <noinclude> on a page
6409 Foo<noinclude>zar</noinclude><includeonly>bar</includeonly>
6416 Un-closed <noinclude>
6423 <onlyinclude> on a page
6425 <onlyinclude>Foo</onlyinclude>bar
6432 Un-closed <onlyinclude>
6439 Self-closed noinclude, includeonly, onlyinclude tags
6450 Unbalanced includeonly and noinclude tags
6454 |b</noinclude></noinclude>
6455 |c</noinclude></includeonly>
6456 |d</includeonly></includeonly>
6465 <td>c</includeonly>
6467 <td>d</includeonly></includeonly>
6473 Template:Includeonly section
6476 ==Includeonly section==
6482 Bug 6563: Edit link generation for section shown by <includeonly>
6484 {{includeonly section}}
6486 <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>
6487 <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>
6491 # Uses same input as the contents of [[Template:Includeonly section]]
6493 Bug 6563: Section extraction for section shown by <includeonly>
6498 ==Includeonly section==
6506 Bug 6563: Edit link generation for section suppressed by <includeonly>
6509 ==Includeonly section==
6513 <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>
6518 Bug 6563: Section extraction for section suppressed by <includeonly>
6523 ==Includeonly section==
6531 Un-closed <includeonly>
6538 ### <includeonly> and <noinclude> in attributes
6541 0. includeonly around the entire attribute
6543 <span <includeonly>id="v1"</includeonly><noinclude>id="v2"</noinclude>>bar</span>
6545 <p><span id="v2">bar</span>
6550 1. includeonly in html attr key
6552 <span <noinclude>id</noinclude><includeonly>about</includeonly>="foo">bar</span>
6554 <p><span id="foo">bar</span>
6559 2. includeonly in html attr value
6561 <span id="<noinclude>v1</noinclude><includeonly>v2</includeonly>">bar</span>
6562 <span id=<noinclude>"v1"</noinclude><includeonly>"v2"</includeonly>>bar</span>
6564 <p><span id="v1">bar</span>
6565 <span id="v1">bar</span>
6570 3. includeonly in part of an attr value
6572 <span style="color:<noinclude>red</noinclude><includeonly>blue</includeonly>;">bar</span>
6574 <p><span style="color:red;">bar</span>
6579 ### Testing parsing of templates where a template arg
6580 ### has the same name as the template itself.
6590 Templates: Template Name/Arg clash: 1. Use of positional param
6599 Templates: Template Name/Arg clash: 2. Use of named param
6608 Templates: Template Name/Arg clash: 3. Use of named param with empty input
6617 ### Parsoid-centric tests to stress Parsoid's ability to RT them unchanged
6621 Templates: 1. Simple use
6630 Templates: 2. Inside a block tag
6632 <div>{{echo|Foo}}</div>
6639 Templates: P-wrapping: 1a. Templates on consecutive lines
6650 Templates: P-wrapping: 1b. Templates on consecutive lines
6664 Templates: P-wrapping: 1c. Templates on consecutive lines
6667 {{echo|bar}} <div>baz</div>
6676 Templates: P-wrapping: 1d. Template preceded by comment-only line
6678 parsoid=wt2html,wt2wt
6684 <p typeof="mw:Transclusion">Bar
6689 Templates: Inline Text: 1. Multiple tmeplate uses
6691 {{echo|Foo}}bar{{echo|baz}}
6698 Templates: Inline Text: 2. Back-to-back template uses
6700 {{echo|Foo}}{{echo|bar}}
6707 Templates: Block Tags: 1. Multiple template uses
6709 {{echo|<div>Foo</div>}}<div>bar</div>{{echo|<div>baz</div>}}
6711 <div>Foo</div><div>bar</div><div>baz</div>
6716 Templates: Block Tags: 2. Back-to-back template uses
6718 {{echo|<div>Foo</div>}}{{echo|<div>bar</div>}}
6720 <div>Foo</div><div>bar</div>
6725 Templates: Links: 1. Simple example
6727 {{echo|[[Foo|bar]]}}
6729 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6734 Templates: Links: 2. Generation of link href
6736 [[{{echo|Foo}}|bar]]
6738 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6743 Templates: Links: 3. Generation of part of a link href
6745 [[Fo{{echo|o}}|bar]]
6749 [[Foo{{echo|bar}}baz]]
6751 [[Foo{{echo|bar}}|bar]]
6753 [[:Foo{{echo|bar}}]]
6755 [[:Foo{{echo|bar}}|bar]]
6757 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6758 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6759 </p><p><a href="/index.php?title=Foobarbaz&action=edit&redlink=1" class="new" title="Foobarbaz (page does not exist)">Foobarbaz</a>
6760 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6761 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6762 </p><p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">bar</a>
6767 Templates: Links: 4. Multiple templates generating link href
6769 [[{{echo|F}}{{echo|o}}ob{{echo|ar}}]]
6771 <p><a href="/index.php?title=Foobar&action=edit&redlink=1" class="new" title="Foobar (page does not exist)">Foobar</a>
6776 Templates: Links: 5. Generation of link text
6778 [[Foo|{{echo|bar}}]]
6780 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6785 Templates: Links: 5. Nested templates (only outermost template should be marked)
6787 {{echo|[[{{echo|Foo}}|bar]]}}
6789 <p><a href="/index.php?title=Foo&action=edit&redlink=1" class="new" title="Foo (page does not exist)">bar</a>
6794 Templates: HTML Tag: 1. Generation of HTML attr. key
6796 <div {{echo|style}}="color:red;">foo</div>
6798 <div style="color:red;">foo</div>
6803 Templates: HTML Tag: 2. Generation of HTML attr. value
6805 <div style={{echo|'color:red;'}}>foo</div>
6807 <div style="color:red;">foo</div>
6812 Templates: HTML Tag: 3. Generation of HTML attr key and value
6814 <div {{echo|style}}={{echo|'color:red;'}}>foo</div>
6816 <div style="color:red;">foo</div>
6821 Templates: HTML Tag: 4. Generation of starting piece of HTML attr value
6823 <div title="{{echo|This is a long title}} with just one piece templated">foo</div>
6825 <div title="This is a long title with just one piece templated">foo</div>
6830 Templates: HTML Tag: 5. Generation of middle piece of HTML attr value
6832 <div title="This is a long title with just {{echo|one piece}} templated">foo</div>
6834 <div title="This is a long title with just one piece templated">foo</div>
6839 Templates: HTML Tag: 6. Generation of end piece of HTML attr value
6841 <div title="This is a long title with just one piece {{echo|templated}}">foo</div>
6843 <div title="This is a long title with just one piece templated">foo</div>
6848 Templates: HTML Tag: 7. Generation of partial attribute key string
6850 <div st{{echo|yle}}="color:red;">foo</div>
6852 <div style="color:red;">foo</div>
6857 Templates: HTML Tables: 1. Generating start of a HTML table
6859 {{echo|<table><tr><td>foo</td>}}</tr></table>
6861 <table><tr><td>foo</td></tr></table>
6866 Templates: HTML Tables: 2a. Generating middle of a HTML table
6868 <table><tr>{{echo|<td>foo</td>}}</tr></table>
6870 <table><tr><td>foo</td></tr></table>
6875 Templates: HTML Tables: 2b. Generating middle of a HTML table
6877 <table>{{echo|<tr><td>foo</td></tr>}}</table>
6879 <table><tr><td>foo</td></tr></table>
6884 Templates: HTML Tables: 3. Generating end of a HTML table
6886 <table><tr>{{echo|<td>foo</td></tr></table>}}
6888 <table><tr><td>foo</td></tr></table>
6893 Templates: HTML Tables: 4a. Generating a single tag of a HTML table
6895 {{echo|<table>}}<tr><td>foo</td></tr></table>
6897 <table><tr><td>foo</td></tr></table>
6902 Templates: HTML Tables: 4b. Generating a single tag of a HTML table
6904 <table>{{echo|<tr>}}<td>foo</td></tr></table>
6906 <table><tr><td>foo</td></tr></table>
6911 Templates: HTML Tables: 4c. Generating a single tag of a HTML table
6913 <table><tr>{{echo|<td>}}foo</td></tr></table>
6915 <table><tr><td>foo</td></tr></table>
6920 Templates: HTML Tables: 4d. Generating a single tag of a HTML table
6922 <table><tr><td>foo{{echo|</td>}}</tr></table>
6924 <table><tr><td>foo</td></tr></table>
6929 Templates: HTML Tables: 4e. Generating a single tag of a HTML table
6931 <table><tr><td>foo</td>{{echo|</tr>}}</table>
6933 <table><tr><td>foo</td></tr></table>
6938 Templates: HTML Tables: 4f. Generating a single tag of a HTML table
6940 <table><tr><td>foo</td></tr>{{echo|</table>}}
6942 <table><tr><td>foo</td></tr></table>
6947 Templates: HTML Tables: 5. Proper fostering of categories from inside
6949 parsoid=wt2html,wt2wt
6951 <table>[[Category:foo1]]<tr><td>foo</td></tr></table>
6952 <!--Two categories (Bug 50330)-->
6953 <table>[[Category:bar1]][[Category:bar2]]<tr><td>foo</td></tr></table>
6955 <link rel="mw:WikiLink/Category" href="./Category:Foo1"><table><tbody><tr><td>foo</td></tr></tbody></table>
6956 <!--Two categories (Bug 50330)-->
6957 <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>
6961 Templates: Wiki Tables: 1a. Fostering of entire template content
6969 <tr><td></td></tr></table>
6974 Templates: Wiki Tables: 1b. Fostering of entire template content
6987 <tr><td></td></tr></table>
6992 Templates: Wiki Tables: 2. Fostering of partial template content
7002 <tr><td></td></tr></table>
7007 Templates: Wiki Tables: 3. td-content via multiple templates
7010 {{echo|{{pipe}}a}}{{echo|b}}
7021 Templates: Wiki Tables: 4. Templated tags, no content
7027 <tr><td></td></tr></table>
7032 Templates: Wiki Tables: 5. Templated tags, regular td-tags
7046 Templates: Wiki Tables: 6. Templated tags, templated td-tags
7060 Templates: Lists: Multi-line list-items via templates
7062 *{{echo|a {{nonexistent|
7064 *{{echo|b {{nonexistent|
7067 <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>
7068 </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>
7074 Templates: Ugly nesting: 1. Quotes opened/closed across templates (echo)
7076 {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
7078 <p><i>ab</i>c<i>d</i>e
7083 Templates: Ugly nesting: 2. Quotes opened/closed across templates (echo_with_span)
7084 (PHP parser generates misnested html)
7086 parsoid=wt2html,wt2wt
7088 {{echo_with_span|''a}}{{echo_with_span|b''c''d}}{{echo_with_span|''e}}
7090 <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>
7094 Templates: Ugly nesting: 3. Quotes opened/closed across templates (echo_with_div)
7095 (PHP parser generates misnested html)
7097 parsoid=wt2html,wt2wt
7099 {{echo_with_div|''a}}{{echo_with_div|b''c''d}}{{echo_with_div|''e}}
7101 <div typeof="mw:Transclusion"><i>a</i></div>
7102 <div typeof="mw:Transclusion"><i>b</i>c<i>d</i></div>
7103 <div typeof="mw:Transclusion">e</div>
7107 Templates: Ugly nesting: 4. Divs opened/closed across templates
7109 a<div>b{{echo|c</div>d}}e
7116 Templates: Ugly templates: 1. Navbox template parses badly leading to table misnesting
7122 |{{echo|foo</table>}}
7126 <table typeof="mw:Transclusion">
7129 <td>foo</td></tr></tbody></table><span>bar</span>
7133 Templates: Ugly templates: 2. Navbox template parses badly leading to table misnesting
7143 <td>1. {{echo|foo </table>}}</td>
7145 <td>2. {{echo|baz </table>}}</td>
7158 <table about="#mwt1" typeof="mw:Transclusion">
7163 <td >1. foo </td></tr></tbody></table></td>
7165 <td >2. baz </td></tr></tbody></table><span about="#mwt1">
7166 </span><span about="#mwt1">
7168 abc</span><span about="#mwt1">
7169 </span><span about="#mwt1">
7170 </span><span about="#mwt1">
7171 </span><span about="#mwt1">
7172 </span><span about="#mwt1">
7174 xyz</span><span about="#mwt1">
7175 </span><span about="#mwt1">
7180 Templates: Ugly templates: 3. newline-only template parameter
7189 # This looks like a bug: a single newline triggers p/br for some reason.
7191 Templates: Ugly templates: 4. newline-only template parameter inconsistency
7202 Parser Functions: 1. Simple example
7211 Parser Functions: 2. Nested use (only outermost should be marked up)
7220 ### Pre-save transform tests
7223 pre-save transform: subst:
7229 This is a test template
7233 pre-save transform: normal template
7243 pre-save transform: nonexistent template
7247 {{thistemplatedoesnotexist}}
7249 {{thistemplatedoesnotexist}}
7254 pre-save transform: subst magic variables
7263 # This is bug 89, which I fixed. -- wtm
7265 pre-save transform: subst: templates with parameters
7269 {{subst:paramtest|param="something else"}}
7271 This is a test template with parameter "something else"
7277 <nowiki>'''not wiki'''</nowiki>
7281 pre-save transform: nowiki in subst (bug 1188)
7285 {{subst:nowikitest}}
7287 <nowiki>'''not wiki'''</nowiki>
7292 Template:commenttest
7294 This template has <!-- a comment --> in it.
7298 pre-save transform: comment in subst (bug 1936)
7302 {{subst:commenttest}}
7304 This template has <!-- a comment --> in it.
7308 pre-save transform: unclosed tag
7312 <nowiki>'''not wiki'''
7314 <nowiki>'''not wiki'''
7318 pre-save transform: mixed tag case
7322 <NOwiki>'''not wiki'''</noWIKI>
7324 <NOwiki>'''not wiki'''</noWIKI>
7328 pre-save transform: unclosed comment in <nowiki>
7332 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7334 wiki<nowiki>nowiki<!--nowiki</nowiki>wiki
7337 # Leading @ in this template definition works around a limitation
7338 # in parsoid's parserTests which otherwise strips the <span> from the
7339 # result (confusing it for a template wrapper)
7343 @<span onmouseover="alert('crap')">Oh no</span>
7347 (confirming safety of fix for subst bug 1936)
7349 {{Template:dangerous}}
7351 <p>@<span>Oh no</span>
7356 pre-save transform: comment containing gallery (bug 5024)
7360 <!-- <gallery>data</gallery> -->
7362 <!-- <gallery>data</gallery> -->
7366 pre-save transform: comment containing extension
7370 <!-- <tag>data</tag> -->
7372 <!-- <tag>data</tag> -->
7376 pre-save transform: comment containing nowiki
7380 <!-- <nowiki>data</nowiki> -->
7382 <!-- <nowiki>data</nowiki> -->
7386 pre-save transform: <noinclude> in subst (bug 3298)
7396 pre-save transform: <onlyinclude> in subst (bug 3298)
7408 {{<includeonly>subst:</includeonly>Includes}}
7412 Template:SafeSubstTest
7414 {{<includeonly>safesubst:</includeonly>Includes}}
7418 bug 22297: safesubst: works during PST
7422 {{subst:SafeSubstTest}}{{safesubst:SubstTest}}
7428 bug 22297: safesubst: works during normal parse
7437 subst: does not work during normal parse
7441 <p>{{subst:Includes}}
7446 pre-save transform: context links ("pipe trick")
7450 [[Article (context)|]]
7453 [[Bar:Article (context)|]]
7454 [[:Bar:Article (context)|]]
7456 [[|Article (context)]]
7460 [[Article (context)|Article]]
7461 [[Bar:Article|Article]]
7462 [[:Bar:Article|Article]]
7463 [[Bar:Article (context)|Article]]
7464 [[:Bar:Article (context)|Article]]
7466 [[Article (context)]]
7467 [[Bar:X (Y) Z|X (Y) Z]]
7468 [[:Bar:X (Y) Z|X (Y) Z]]
7472 pre-save transform: context links ("pipe trick") with interwiki prefix
7476 [[interwiki:Article|]]
7477 [[:interwiki:Article|]]
7478 [[interwiki:Bar:Article|]]
7479 [[:interwiki:Bar:Article|]]
7481 [[interwiki:Article|Article]]
7482 [[:interwiki:Article|Article]]
7483 [[interwiki:Bar:Article|Bar:Article]]
7484 [[:interwiki:Bar:Article|Bar:Article]]
7488 pre-save transform: context links ("pipe trick") with parens in title
7490 pst title=[[Somearticle (context)]]
7494 [[Article (context)|Article]]
7498 pre-save transform: context links ("pipe trick") with comma in title
7500 pst title=[[Someplace, Somewhere]]
7503 [[Otherplace, Elsewhere|]]
7504 [[Otherplace, Elsewhere, Anywhere|]]
7506 [[Otherplace, Somewhere|Otherplace]]
7507 [[Otherplace, Elsewhere|Otherplace]]
7508 [[Otherplace, Elsewhere, Anywhere|Otherplace]]
7512 pre-save transform: context links ("pipe trick") with parens and comma
7514 pst title=[[Someplace (IGNORED), Somewhere]]
7517 [[Otherplace (place), Elsewhere|]]
7519 [[Otherplace, Somewhere|Otherplace]]
7520 [[Otherplace (place), Elsewhere|Otherplace]]
7524 pre-save transform: context links ("pipe trick") with comma and parens
7526 pst title=[[Who, me? (context)]]
7529 [[Me, Myself, and I (1937 song)|]]
7531 [[Yes, you. (context)|Yes, you.]]
7532 [[Me, Myself, and I (1937 song)|Me, Myself, and I]]
7536 pre-save transform: context links ("pipe trick") with namespace
7538 pst title=[[Ns:Somearticle]]
7542 [[Ns:Article|Article]]
7546 pre-save transform: context links ("pipe trick") with namespace and parens
7548 pst title=[[Ns:Somearticle (context)]]
7552 [[Ns:Article (context)|Article]]
7556 pre-save transform: context links ("pipe trick") with namespace and comma
7558 pst title=[[Ns:Somearticle, Context, Whatever]]
7562 [[Ns:Article, Context, Whatever|Article]]
7566 pre-save transform: context links ("pipe trick") with namespace, comma and parens
7568 pst title=[[Ns:Somearticle, Context (context)]]
7572 [[Ns:Article (context)|Article]]
7576 pre-save transform: context links ("pipe trick") with namespace, parens and comma
7578 pst title=[[Ns:Somearticle (IGNORED), Context]]
7582 [[Ns:Article, Context|Article]]
7586 pre-save transform: context links ("pipe trick") with full-width parens and no space (Japanese and Chinese style, bug 30149)
7590 [[Article(context)|]]
7591 [[Bar:Article(context)|]]
7592 [[:Bar:Article(context)|]]
7593 [[|Article(context)]]
7597 [[Article(context)|Article]]
7598 [[Bar:Article(context)|Article]]
7599 [[:Bar:Article(context)|Article]]
7600 [[Article(context)]]
7602 [[:Bar:X(Y)Z|X(Y)Z]]
7606 pre-save transform: context links ("pipe trick") with full-width parens and space (Japanese and Chinese style, bug 30149)
7610 [[Article (context)|]]
7611 [[Bar:Article (context)|]]
7612 [[:Bar:Article (context)|]]
7613 [[|Article (context)]]
7617 [[Article (context)|Article]]
7618 [[Bar:Article (context)|Article]]
7619 [[:Bar:Article (context)|Article]]
7620 [[Article (context)]]
7621 [[Bar:X (Y) Z|X (Y) Z]]
7622 [[:Bar:X (Y) Z|X (Y) Z]]
7626 pre-save transform: context links ("pipe trick") with parens and no space (Korean style, bug 30149)
7630 [[Article(context)|]]
7631 [[Bar:Article(context)|]]
7632 [[:Bar:Article(context)|]]
7633 [[|Article(context)]]
7637 [[Article(context)|Article]]
7638 [[Bar:Article(context)|Article]]
7639 [[:Bar:Article(context)|Article]]
7640 [[Article(context)]]
7642 [[:Bar:X(Y)Z|X(Y)Z]]
7646 pre-save transform: context links ("pipe trick") with commas (bug 21660)
7650 [[Article (context), context|]]
7651 [[Article (context),context|]]
7652 [[Bar:Article (context), context|]]
7653 [[Bar:Article (context),context|]]
7654 [[:Bar:Article (context), context|]]
7655 [[:Bar:Article (context),context|]]
7657 [[Article (context), context|Article]]
7658 [[Article (context),context|Article]]
7659 [[Bar:Article (context), context|Article]]
7660 [[Bar:Article (context),context|Article]]
7661 [[:Bar:Article (context), context|Article]]
7662 [[:Bar:Article (context),context|Article]]
7666 pre-save transform: trim trailing empty lines
7670 Empty lines are trimmed
7676 Empty lines are trimmed
7680 pre-save transform: Signature expansion
7685 * <noinclude>~~~</noinclude>
7686 * <includeonly>~~~</includeonly>
7687 * <onlyinclude>~~~</onlyinclude>
7689 * [[Special:Contributions/127.0.0.1|127.0.0.1]]
7690 * <noinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</noinclude>
7691 * <includeonly>[[Special:Contributions/127.0.0.1|127.0.0.1]]</includeonly>
7692 * <onlyinclude>[[Special:Contributions/127.0.0.1|127.0.0.1]]</onlyinclude>
7697 pre-save transform: Signature expansion in nowiki tags (bug 93)
7703 <nowiki>~~~~</nowiki>
7705 <includeonly><nowiki>~~~~</nowiki></includeonly>
7707 <noinclude><nowiki>~~~~</nowiki></noinclude>
7709 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7711 {{subst:Foo}} shall be converted to FOO
7713 As well as inside noinclude/onlyinclude
7714 <noinclude>{{subst:Foo}}</noinclude>
7715 <onlyinclude>{{subst:Foo}}</onlyinclude>
7717 But not inside includeonly
7718 <includeonly>{{subst:Foo}}</includeonly>
7722 <nowiki>~~~~</nowiki>
7724 <includeonly><nowiki>~~~~</nowiki></includeonly>
7726 <noinclude><nowiki>~~~~</nowiki></noinclude>
7728 <onlyinclude><nowiki>~~~~</nowiki></onlyinclude>
7730 FOO shall be converted to FOO
7732 As well as inside noinclude/onlyinclude
7733 <noinclude>FOO</noinclude>
7734 <onlyinclude>FOO</onlyinclude>
7736 But not inside includeonly
7737 <includeonly>{{subst:Foo}}</includeonly>
7741 ### Message transform tests
7744 message transform: magic variables
7754 message transform: should not transform wiki markup
7764 message transform: <noinclude> in transcluded template (bug 4926)
7774 message transform: <onlyinclude> in transcluded template (bug 4926)
7784 {{#special:}} page name, known
7788 {{#special:Recentchanges}}
7790 Special:RecentChanges
7794 {{#special:}} page name with subpage, known
7798 {{#special:Recentchanges/param}}
7800 Special:RecentChanges/param
7804 {{#special:}} page name, unknown
7808 {{#special:foobar nonexistent}}
7810 Special:Foobar nonexistent
7814 {{#speciale:}} page name, known
7818 {{#speciale:Recentchanges}}
7820 Special:RecentChanges
7824 {{#speciale:}} page name with subpage, known
7828 {{#speciale:Recentchanges/param}}
7830 Special:RecentChanges/param
7834 {{#speciale:}} page name, unknown
7838 {{#speciale:foobar nonexistent}}
7840 Special:Foobar_nonexistent
7849 [[Image:foobar.jpg]]
7851 <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>
7858 [[Image:foobar.jpg|right]]
7860 <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>
7865 Simple image (using File: namespace, now canonical)
7869 <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>
7876 [[Image:foobar.jpg|right|Caption text]]
7878 <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>
7883 Image with empty attribute
7885 [[Image:foobar.jpg|right||Caption text]]
7887 <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>
7892 Image with attributes from template.
7894 [[Image:foobar.jpg|{{image_attribs}}]]
7896 <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>
7901 Image with link tails
7903 123[[Image:foobar.jpg]]456
7904 123[[Image:foobar.jpg|right]]456
7905 123[[Image:foobar.jpg|thumb]]456
7907 <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
7909 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
7910 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
7915 Image with multiple captions -- only last one is accepted
7917 [[Image:foobar.jpg|right|Caption1 - ignored|[[Caption2]] - ignored|Caption3 - accepted]]
7919 <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>
7924 Image with width attribute at different positions
7926 [[Image:foobar.jpg|200px|right|Caption]]
7927 [[Image:foobar.jpg|right|200px|Caption]]
7928 [[Image:foobar.jpg|right|Caption|200px]]
7930 <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>
7931 <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>
7932 <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>
7937 Image with link parameter, wiki target
7939 [[Image:foobar.jpg|link=Target page]]
7941 <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>
7946 Image with link parameter, URL target
7948 [[Image:foobar.jpg|link=http://example.com/]]
7950 <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>
7955 Image with link parameter, wgExternalLinkTarget
7957 [[Image:foobar.jpg|link=http://example.com/]]
7959 wgExternalLinkTarget='foobar'
7961 <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>
7966 Image with link parameter, wgNoFollowLinks set to false
7968 [[Image:foobar.jpg|link=http://example.com/]]
7970 wgNoFollowLinks=false
7972 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7977 Image with link parameter, wgNoFollowDomainExceptions
7979 [[Image:foobar.jpg|link=http://example.com/]]
7981 wgNoFollowDomainExceptions='example.com'
7983 <p><a href="http://example.com/"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a>
7988 Image with link parameter, wgExternalLinkTarget, unnamed parameter
7990 [[Image:foobar.jpg|link=http://example.com/|Title]]
7992 wgExternalLinkTarget='foobar'
7994 <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>
7999 Image with empty link parameter
8001 [[Image:foobar.jpg|link=]]
8003 <p><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" />
8008 Image with link parameter (wiki target) and unnamed parameter
8010 [[Image:foobar.jpg|link=Target page|Title]]
8012 <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>
8017 Image with link parameter (URL target) and unnamed parameter
8019 [[Image:foobar.jpg|link=http://example.com/|Title]]
8021 <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>
8026 Thumbnail image with link parameter
8030 [[Image:foobar.jpg|thumb|link=http://example.com/|Title]]
8032 <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>
8037 Manually-specified thumbnail image
8041 [[Image:Foobar.jpg|thumb=Thumb.png|Title]]
8043 <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>
8048 Manually-specified thumbnail image with explicit link to wiki page
8052 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|Title]]
8054 <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>
8059 Manually-specified thumbnail image with explicit link to url
8063 [[Image:Foobar.jpg|thumb=Thumb.png|link=http://example.com|Title]]
8065 <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>
8070 Manually-specified thumbnail image with explicit no link
8074 [[Image:Foobar.jpg|thumb=Thumb.png|link=|Title]]
8076 <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>
8081 Manually-specified thumbnail image with explicit link and alt text
8085 [[Image:Foobar.jpg|thumb=Thumb.png|link=Main Page|alt=alttext|Title]]
8087 <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>
8092 Image with frame and link
8094 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]]]
8096 <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>
8101 Image with frame and link and explicit alt
8103 [[Image:Foobar.jpg|frame|left|This is a test image [[Main Page]]|alt=Altitude]]
8105 <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>
8110 Image with wiki markup in implicit alt
8112 [[Image:Foobar.jpg|testing '''bold''' in alt]]
8114 <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>
8119 Image with wiki markup in explicit alt
8121 [[Image:Foobar.jpg|alt=testing '''bold''' in alt]]
8123 <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>
8128 Link to image page- image page normally doesn't exists, hence edit link
8129 Add test with existing image page
8130 #<p><a href="/wiki/File:Test" title="Image:Test">Image:test</a>
8134 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">Image:test</a>
8139 bug 18784 Link to non-existent image page with caption should use caption as link text
8141 [[:Image:test|caption]]
8143 <p><a href="/index.php?title=File:Test&action=edit&redlink=1" class="new" title="File:Test (page does not exist)">caption</a>
8148 Frameless image caption with a free URL
8150 [[Image:foobar.jpg|http://example.com]]
8152 <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>
8157 Thumbnail image caption with a free URL
8159 [[Image:foobar.jpg|thumb|http://example.com]]
8161 <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>
8166 Thumbnail image caption with a free URL and explicit alt
8168 [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]]
8170 <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>
8175 SVG thumbnails with no language set
8178 [[File:Foobar.svg|thumb|width=200]]
8180 <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>
8185 SVG thumbnails with language de
8188 [[File:Foobar.svg|thumb|width=200|lang=de]]
8190 <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>
8195 SVG thumbnails with invalid language code
8198 [[File:Foobar.svg|thumb|width=200|lang=invalid.language.code]]
8200 <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>
8205 BUG 1887: A ISBN with a thumbnail
8207 [[Image:foobar.jpg|thumb|ISBN 1235467890]]
8209 <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>
8214 BUG 1887: A RFC with a thumbnail
8216 [[Image:foobar.jpg|thumb|This is RFC 12354]]
8218 <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>
8223 BUG 1887: A mailto link with a thumbnail
8225 [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]]
8227 <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>
8231 # Pending resolution to bug 368
8233 BUG 648: Frameless image caption with a link
8235 [[Image:foobar.jpg|text with a [[link]] in it]]
8237 <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>
8242 BUG 648: Frameless image caption with a link (suffix)
8244 [[Image:foobar.jpg|text with a [[link]]foo in it]]
8246 <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>
8251 BUG 648: Frameless image caption with an interwiki link
8253 [[Image:foobar.jpg|text with a [[MeatBall:Link]] in it]]
8255 <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>
8260 BUG 648: Frameless image caption with a piped interwiki link
8262 [[Image:foobar.jpg|text with a [[MeatBall:Link|link]] in it]]
8264 <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>
8269 Escape HTML special chars in image alt text
8271 [[Image:foobar.jpg|& < > "]]
8273 <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>
8278 BUG 499: Alt text should have Ӓ, not &1234;
8280 [[Image:foobar.jpg|♀]]
8282 <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>
8287 Broken image caption with link
8289 [[Image:Foobar.jpg|thumb|This is a broken caption. But [[Main Page|this]] is just an ordinary link.
8291 <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.
8296 Image caption containing another image
8298 [[Image:Foobar.jpg|thumb|This is a caption with another [[Image:icon.png|image]] inside it!]]
8300 <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>
8305 Image caption containing a newline
8307 [[Image:Foobar.jpg|This
8310 <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>
8315 Parsoid: Image caption containing leading space
8316 (The leading space should not trigger nowiki escaping in wt2wt mode)
8318 [[Image:Foobar.jpg|thumb| bar]]
8320 <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>
8325 Bug 3090: External links other than http: in image captions
8327 [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]]
8329 <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>
8336 [[Image:foobar.jpg|a|class=b]]
8338 <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>
8343 Localized image handling (1).
8347 [[Archivo:Foobar.jpg|izquierda|enlace=foo|caption]]
8349 <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>
8354 Localized image handling (2).
8358 [[Archivo:Foobar.jpg|miniatura|izquierda|enlace=foo|caption]]
8360 <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>
8365 "border", "frameless" and "class" attributes on an image.
8367 [[File:Foobar.jpg|frameless|border|class=extra|caption]]
8369 <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>
8376 #REDIRECT [[File:Barfoo.jpg]]
8382 [[Image:Barfoo.jpg]]
8384 <p><a href="/wiki/File:Barfoo.jpg" title="File:Barfoo.jpg">File:Barfoo.jpg</a>
8389 Missing image with uploads disabled
8393 [[Image:Foobaz.jpg]]
8395 <p><a href="/wiki/File:Foobaz.jpg" title="File:Foobaz.jpg">File:Foobaz.jpg</a>
8399 # Parsoid-specific testing for images
8400 # http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Images
8401 # Currently imperfect due to a flaw in the Parsoid testrunner
8405 Parsoid-specific image handling - simple image
8409 [[Image:Foobar.jpg]]
8412 <span class="mw-default-size" typeof="mw:Image">
8413 <a href="File:Foobar.jpg">
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 without link
8425 [[Image:Foobar.jpg|link=]]
8428 <span class="mw-default-size" typeof="mw:Image">
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 specific link
8441 [[Image:Foobar.jpg|link=Main Page]]
8444 <span class="mw-default-size" typeof="mw:Image">
8445 <a href="Main_Page">
8446 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8453 Parsoid-specific image handling - simple image with size and middle alignment
8457 [[Image:Foobar.jpg|50px|middle]]
8460 <span class="mw-valign-middle" typeof="mw:Image">
8461 <a href="File:Foobar.jpg">
8462 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8469 Parsoid-specific image handling - simple image with both sizes, a baseline alignment, and a caption
8473 [[Image:Foobar.jpg|500x10px|baseline|caption]]
8476 <span class="mw-valign-baseline" 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/89px-Foobar.jpg" height="10" width="89">
8485 Parsoid-specific image handling - simple image with border and size spec
8489 [[Image:Foobar.jpg|50px|border|caption]]
8492 <span class="mw-image-border" typeof="mw:Image" data-mw="{"caption":"caption"}">
8493 <a href="File:Foobar.jpg">
8494 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50">
8501 Parsoid-specific image handling - thumbnail with halign, valign, and caption
8505 [[Image:Foobar.jpg|thumb|left|baseline|caption content]]
8507 <figure class="mw-default-size mw-halign-left mw-valign-baseline" typeof="mw:Image/Thumb">
8508 <a href="File:Foobar.jpg">
8509 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/180px-Foobar.jpg" height="21" width="180" />
8511 <figcaption>caption content</figcaption>
8516 Parsoid-specific image handling - thumbnail with specific size, halign, valign, and caption
8520 [[Image:Foobar.jpg|thumb|50x50px|right|middle|caption]]
8522 <figure class="mw-halign-right mw-valign-middle" typeof="mw:Image/Thumb">
8523 <a href="File:Foobar.jpg">
8524 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/50px-Foobar.jpg" height="6" width="50" />
8526 <figcaption>caption</figcaption>
8531 Parsoid-specific image handling - framed image with specific size and caption
8535 [[Image:Foobar.jpg|500x50px|frame|caption]]
8537 <figure typeof="mw:Image/Frame">
8538 <a href="File:Foobar.jpg">
8539 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8541 <figcaption>caption</figcaption>
8546 Parsoid-specific image handling - framed image with specific size, halign, valign, and caption
8550 [[Image:Foobar.jpg|500x50px|frame|left|baseline|caption]]
8552 <figure class="mw-halign-left mw-valign-baseline" typeof="mw:Image/Frame">
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" />
8556 <figcaption>caption</figcaption>
8561 Parsoid-specific image handling - frameless image with specific size, border, and caption
8565 [[Image:Foobar.jpg|frameless|500x50px|border|caption]]
8568 <span class="mw-image-border" typeof="mw:Image/Frameless" data-mw="{"caption":"caption"}">
8569 <a href="File:Foobar.jpg">
8570 <img resource="./File:Foobar.jpg" src="//upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg/442px-Foobar.jpg" height="50" width="442" />
8576 #Parsoid-specific image handling - simple image with a formatted caption
8580 #[[Image:Foobar.jpg|<table><tr><td>a</td><td>b</td></tr><tr><td>c</td></tr></table>]]
8583 #<span typeof="mw:Image">
8584 #<a class="mw-default-size" href="Image:Foobar.jpg">
8585 #<img alt="Foobar.jpg" class="mw-default-size" src="http://upload.wikimedia.org/wikipedia/commons/3/3a/Foobar.jpg" height="220" width="1941">
8596 Subpage test/subpage
8604 subpage title=[[Subpage test]]
8608 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a>
8613 Subpage noslash link
8615 subpage title=[[Subpage test]]
8619 <p><a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">subpage</a>
8623 # TODO: make this PHP-parser compatible!
8625 Relative subpage noslash link
8627 parsoid=wt2wt,wt2html,html2html
8628 subpage title=[[Subpage test/1/2/3/4]]
8634 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage/">subpage</a></p>
8635 <p><a rel="mw:WikiLink" href="Subpage_test/1/2/subpage">Subpage_test/1/2/subpage</a></p>
8638 # TODO: make this PHP-parser compatible!
8640 Parsoid: dot-slash prefixed wikilinks
8642 parsoid=wt2wt,wt2html,html2html
8650 <p><a rel="mw:WikiLink" href="./Foo">foo</a></p>
8651 <p><a rel="mw:WikiLink" href="./Bar">bar</a></p>
8652 <p><a rel="mw:WikiLink" href="./Baz/">baz/</a></p>
8660 <p><a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a>
8665 BUG 561: {{/Subpage}}
8667 subpage title=[[Page]]
8671 <p><a href="/index.php?title=Page/Subpage&action=edit&redlink=1" class="new" title="Page/Subpage (page does not exist)">Page/Subpage</a>
8679 Category:MediaWiki User's Guide
8687 [[:Category:MediaWiki User's Guide]]
8689 <p><a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">Category:MediaWiki User's Guide</a>
8698 [[Category:MediaWiki User's Guide]]
8700 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8704 PAGESINCATEGORY invalid title fatal (r33546 fix)
8706 {{PAGESINCATEGORY:<bogus>}}
8713 Category with different sort key
8717 [[Category:MediaWiki User's Guide|Foo]]
8719 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8723 Category with identical sort key
8727 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8729 <a href="/wiki/Category:MediaWiki_User%27s_Guide" title="Category:MediaWiki User's Guide">MediaWiki User's Guide</a>
8733 Category with empty sort key
8738 [[Category:MediaWiki User's Guide|]]
8740 [[Category:MediaWiki User's Guide|MediaWiki User's Guide]]
8744 Category with empty sort key and parentheses
8749 [[Category:Foo (bar)|]]
8751 [[Category:Foo (bar)|Foo]]
8755 Category with link tail
8760 123[[Category:Foo]]456
8762 123[[Category:Foo]]456
8766 Category with template
8771 [[Category:{{echo|Foo}}]]
8773 [[Category:{{echo|Foo}}]]
8777 Category with template in sort key
8782 [[Category:Foo|{{echo|Bar}}]]
8784 [[Category:Foo|{{echo|Bar}}]]
8788 Category with template in sort key and title
8793 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8795 [[Category:{{echo|Foo}}|{{echo|Bar}}]]
8799 Category / paragraph interactions
8801 Foo [[Category:Baz]] Bar
8803 Foo [[Category:Baz]]
8811 [[Category:Baz]] Bar
8824 {{echo|[[Category:Baz]]}}
8839 Parsoid: Serialize link to category page with colon escape
8845 [[:Category:Foo|Bar]]
8848 <a rel="mw:WikiLink" href="Category:Foo">Category:Foo</a>
8849 <a rel="mw:WikiLink" href="Category:Foo">Bar</a>
8854 Parsoid: Link prefix/suffixes aren't applied to category links
8856 parsoid=wt2html,wt2wt,html2html
8861 <p>x<link rel="mw:WikiLink/Category" href="Category:Foo">y</p>
8865 Parsoid: Serialize link to file page with colon escape
8871 [[:File:Foo.png|Bar]]
8874 <a rel="mw:WikiLink" href="File:Foo.png">File:Foo.png</a>
8875 <a rel="mw:WikiLink" href="File:Foo.png">Bar</a>
8880 Parsoid: Serialize a genuine category link without colon escape
8885 [[Category:Foo|Bar]]
8887 <link rel="mw:WikiLink/Category" href="Category:Foo">
8888 <link rel="mw:WikiLink/Category" href="Category:Foo#Bar">
8892 ### Inter-language links
8895 Inter-language links
8901 [[zh:食品]]
8903 es:Alimento fr:Nourriture zh:食品
8907 Duplicate interlanguage links (bug 24502)
8923 Basic section headings
8930 ===Smaller headline===
8933 <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>
8936 <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>
8939 <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>
8945 Section headings with TOC
8948 === Subheadline 1 ===
8949 ===== Skipping a level =====
8950 ====== Skipping a level ======
8954 ===Another headline===
8956 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
8958 <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a>
8960 <li class="toclevel-2 tocsection-2"><a href="#Subheadline_1"><span class="tocnumber">1.1</span> <span class="toctext">Subheadline 1</span></a>
8962 <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>
8964 <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>
8971 <li class="toclevel-1 tocsection-5"><a href="#Headline_2"><span class="tocnumber">2</span> <span class="toctext">Headline 2</span></a>
8973 <li class="toclevel-2 tocsection-6"><a href="#Another_headline"><span class="tocnumber">2.1</span> <span class="toctext">Another headline</span></a></li>
8978 <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>
8979 <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>
8980 <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>
8981 <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>
8982 <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>
8985 <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>
8989 # perl -e 'print "="x$_," Level $_ heading","="x$_,"\n" for 1..10'
8991 Handling of sections up to level 6 and beyond
8994 == Level 2 Heading==
8995 === Level 3 Heading===
8996 ==== Level 4 Heading====
8997 ===== Level 5 Heading=====
8998 ====== Level 6 Heading======
8999 ======= Level 7 Heading=======
9000 ======== Level 8 Heading========
9001 ========= Level 9 Heading=========
9002 ========== Level 10 Heading==========
9004 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9006 <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a>
9008 <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>
9010 <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>
9012 <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>
9014 <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>
9016 <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>
9017 <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>
9018 <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>
9019 <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>
9020 <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>
9033 <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>
9034 <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>
9035 <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>
9036 <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>
9037 <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>
9038 <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>
9039 <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>
9040 <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>
9041 <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>
9042 <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>
9047 TOC regression (bug 9764)
9051 ==== title 1.1.1 ====
9056 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9058 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9060 <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>
9062 <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>
9065 <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>
9068 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9070 <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>
9075 <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>
9076 <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>
9077 <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>
9078 <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>
9079 <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>
9080 <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>
9085 TOC with wgMaxTocLevel=3 (bug 6204)
9091 ==== title 1.1.1 ====
9096 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9098 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9100 <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>
9101 <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>
9104 <li class="toclevel-1 tocsection-5"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a>
9106 <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>
9111 <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>
9112 <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>
9113 <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>
9114 <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>
9115 <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>
9116 <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>
9121 TOC with wgMaxTocLevel=3 and two level four headings (bug 6204)
9127 ====Section 1.1.1====
9128 ====Section 1.1.1.1====
9131 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9133 <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a>
9135 <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>
9138 <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li>
9141 <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>
9142 <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>
9143 <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>
9144 <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>
9145 <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>
9151 Resolving duplicate section names
9156 <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>
9157 <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>
9162 Resolving duplicate section names with differing case (bug 10721)
9167 <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>
9168 <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>
9180 Template with sections, __NOTOC__
9187 <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>
9188 <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>
9189 <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>
9190 <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>
9195 __NOEDITSECTION__ keyword
9201 <h2><span class="mw-headline" id="Section_1">Section 1</span></h2>
9202 <h2><span class="mw-headline" id="Section_2">Section 2</span></h2>
9207 Link inside a section heading
9209 ==Section with a [[Main Page|link]] in it==
9211 <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>
9216 TOC regression (bug 12077)
9223 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9225 <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a>
9227 <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>
9230 <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li>
9233 <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>
9234 <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>
9235 <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>
9240 BUG 1219 URL next to image (good)
9242 http://example.com [[Image:foobar.jpg]]
9244 <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>
9249 Short headings with trailing space should match behavior of Parser::doHeadings (bug 19910)
9252 The line above must have a trailing space!
9255 But just in case it doesn't...
9257 <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>
9258 <p>The line above must have a trailing space!
9260 <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>
9261 <p>But just in case it doesn't...
9266 Header with special characters (bug 25462)
9268 The tooltips shall not show entities to the user (ie. be double escaped)
9285 <p>The tooltips shall not show entities to the user (ie. be double escaped)
9287 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9289 <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li>
9290 <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li>
9291 <li class="toclevel-1 tocsection-3"><a href="#text_.26_text"><span class="tocnumber">3</span> <span class="toctext">text & text</span></a></li>
9292 <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li>
9293 <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li>
9296 <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>
9299 <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>
9302 <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>
9305 <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>
9308 <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>
9314 Headers with excess '=' characters
9315 (Are similar tests necessary beyond the 1st level?)
9319 =''italic'' heading==
9320 ==''italic'' heading=
9322 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9324 <li class="toclevel-1 tocsection-1"><a href="#foo.3D"><span class="tocnumber">1</span> <span class="toctext">foo=</span></a></li>
9325 <li class="toclevel-1 tocsection-2"><a href="#.3Dfoo"><span class="tocnumber">2</span> <span class="toctext">=foo</span></a></li>
9326 <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>
9327 <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>
9330 <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>
9331 <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>
9332 <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>
9333 <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>
9338 HTML headers vs TOC (bug 23393)
9339 (__NOEDITSECTION__ for clearer output, doesn't matter here)
9351 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
9353 <li class="toclevel-1"><a href="#Header_1"><span class="tocnumber">1</span> <span class="toctext">Header 1</span></a>
9355 <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>
9356 <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>
9359 <li class="toclevel-1"><a href="#Header_2"><span class="tocnumber">2</span> <span class="toctext">Header 2</span></a>
9361 <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>
9362 <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>
9367 <h1><span class="mw-headline" id="Header_1">Header 1</span></h1>
9368 <h2><span class="mw-headline" id="Header_1.1">Header 1.1</span></h2>
9369 <h2><span class="mw-headline" id="Header_1.2">Header 1.2</span></h2>
9370 <h1><span class="mw-headline" id="Header_2">Header 2</span></h1>
9371 <h2><span class="mw-headline" id="Header_2.1">Header 2.1</span></h2>
9372 <h2><span class="mw-headline" id="Header_2.2">Header 2.2</span></h2>
9377 BUG 1219 URL next to image (broken)
9379 http://example.com[[Image:foobar.jpg]]
9381 <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>
9386 Bug 1186 news: in the middle of text
9388 http://en.wikinews.org/wiki/Wikinews:Workplace
9390 <p><a rel="nofollow" class="external free" href="http://en.wikinews.org/wiki/Wikinews:Workplace">http://en.wikinews.org/wiki/Wikinews:Workplace</a>
9396 Namespaced link must have a title
9405 Namespaced link must have a title (bad fragment version)
9407 [[Project:#fragment]]
9409 <p>[[Project:#fragment]]
9415 ### HTML tags and HTML attributes
9419 div with no attributes
9421 <div>HTML rocks</div>
9423 <div>HTML rocks</div>
9428 div with double-quoted attribute
9430 <div id="rock">HTML rocks</div>
9432 <div id="rock">HTML rocks</div>
9437 div with single-quoted attribute
9439 <div id='rock'>HTML rocks</div>
9441 <div id="rock">HTML rocks</div>
9446 div with unquoted attribute
9448 <div id=rock>HTML rocks</div>
9450 <div id="rock">HTML rocks</div>
9455 div with illegal double attributes
9457 <div id="a" id="b">HTML rocks</div>
9459 <div id="b">HTML rocks</div>
9463 # FIXME: produce empty string instead of "class" in the PHP parser, following
9466 div with empty attribute value, space before equals
9470 <div class =>HTML rocks</div>
9472 <div class="">HTML rocks</div>
9476 # The PHP parser escapes the opening brace to { for some reason, so
9477 # disabled this test for it.
9479 div with braces in attribute value
9483 <div title="{}">Foo</div>
9485 <div title="{}">Foo</div>
9488 # This it very inconsistent in the PHP parser: it returns
9489 # class="class" if there is a space between the name and the equal sign (see
9490 # 'div with empty attribute value, space before equals'), but strips the
9491 # attribute completely if the space is missing. We hope that not much content
9492 # depends on this, so are implementing the behavior below in Parsoid for
9493 # consistencies' sake. Disabled for the PHP parser.
9494 # FIXME: fix this behavior in the PHP parser?
9496 div with empty attribute value, no space before equals
9500 <div class=>HTML rocks</div>
9502 <div class="">HTML rocks</div>
9507 HTML multiple attributes correction
9509 <p class="error" class="awesome">Awesome!</p>
9511 <p class="awesome">Awesome!</p>
9516 Table multiple attributes correction
9519 !+ class="error" class="awesome"| status
9524 <th class="awesome"> status
9532 <DIV ID="x">HTML ROCKS</DIV>
9534 <div id="x">HTML ROCKS</div>
9539 Non-ASCII pseudo-tags are rendered as text
9548 Pseudo-tag with URL 'name' renders as url link
9550 <http://example.com/>
9552 <p><<a rel="nofollow" class="external free" href="http://example.com/">http://example.com/</a>>
9557 text with amp in the middle of nowhere
9561 <p>Remember AT&T?
9566 text with character entity: eacute
9568 I always thought é was a cute letter.
9570 <p>I always thought é was a cute letter.
9575 text with entity-escaped character entity-like string: eacute
9577 I always thought &eacute; was a cute letter.
9579 <p>I always thought &eacute; was a cute letter.
9584 text with undefined character entity: xacute
9586 I always thought &xacute; was a cute letter.
9588 <p>I always thought &xacute; was a cute letter.
9594 ### Nesting tests (see bug 41545, 50604, 51081)
9597 # This test case is fixed in Parsoid by domino 1.0.12. (bug 50604)
9598 # Note that html2wt is considerably more difficult if we use <b> in
9599 # the test case, instead of <big>
9601 Ensure that HTML adoption agency algorithm is properly implemented.
9603 <big>X<big>Y</big>Z</big>
9605 <p><big>X<big>Y</big>Z</big>
9609 # This was bug 41545 in the PHP parser.
9613 <kbd>X<kbd>Y</kbd>Z</kbd>
9615 <p><kbd>X<kbd>Y</kbd>Z</kbd>
9619 # The following cases were bug 51081 in the PHP parser.
9620 # Note that there are some other nestable tags (b, i, etc) which are
9621 # not covered; see bug 51081 for discussion.
9625 <em>X<em>Y</em>Z</em>
9627 <p><em>X<em>Y</em>Z</em>
9634 <strong>X<strong>Y</strong>Z</strong>
9636 <p><strong>X<strong>Y</strong>Z</strong>
9645 <p><q>X<q>Y</q>Z</q>
9652 <ruby>X<ruby>Y</ruby>Z</ruby>
9654 <p><ruby>X<ruby>Y</ruby>Z</ruby>
9661 <bdo>X<bdo>Y</bdo>Z</bdo>
9663 <p><bdo>X<bdo>Y</bdo>Z</bdo>
9675 [[Media:Foobar.jpg]]
9677 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">Media:Foobar.jpg</a>
9682 Media link with text
9684 [[Media:Foobar.jpg|A neat file to look at]]
9686 <p><a href="http://example.com/images/3/3a/Foobar.jpg" class="internal" title="Foobar.jpg">A neat file to look at</a>
9690 # FIXME: this is still bad HTML tag nesting
9692 Media link with nasty text
9693 fixme: doBlockLevels won't wrap this in a paragraph because it contains a div
9695 [[Media:Foobar.jpg|Safe Link<div style=display:none>" onmouseover="alert(document.cookie)" onfoo="</div>]]
9697 <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>
9702 Media link to nonexistent file (bug 1702)
9704 [[Media:No such.jpg]]
9706 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="No such.jpg">Media:No such.jpg</a>
9711 Image link to nonexistent file (bug 1850 - good)
9713 [[Image:No such.jpg]]
9715 <p><a href="/index.php?title=Special:Upload&wpDestFile=No_such.jpg" class="new" title="File:No such.jpg">File:No such.jpg</a>
9720 :Image link to nonexistent file (bug 1850 - bad)
9722 [[:Image:No such.jpg]]
9724 <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>
9731 Character reference normalization in link text (bug 1938)
9733 [[Main Page|this&that]]
9735 <p><a href="/wiki/Main_Page" title="Main Page">this&that</a>
9742 Test for unicode normalization
9744 The page's name is U+05d0 U+05b7, with non-canonical form U+FB2E
9748 (bug 19451) Links should refer to the normalized form.
9756 <p><a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9757 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9758 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9759 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9760 <a href="/wiki/%D7%90%D6%B7" title="אַ">אַ</a>
9765 Empty attribute crash test (bug 2067)
9767 <font color="">foo</font>
9769 <p><font color="">foo</font>
9774 Empty attribute crash test single-quotes (bug 2067)
9776 <font color=''>foo</font>
9778 <p><font color="">foo</font>
9783 Attribute test: equals, then nothing
9785 <font color=>foo</font>
9792 Attribute test: unquoted value
9794 <font color=x>foo</font>
9796 <p><font color="x">foo</font>
9801 Attribute test: unquoted but illegal value (hash)
9803 <font color=#x>foo</font>
9805 <p><font color="#x">foo</font>
9810 Attribute test: no value
9812 <font color>foo</font>
9814 <p><font color="color">foo</font>
9819 Bug 2095: link with three closing brackets
9823 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>]
9828 Bug 2095: link with pipe and three closing brackets
9832 <p><a href="/wiki/Main_Page" title="Main Page">link</a>]
9837 Bug 2095: link with pipe and three closing brackets, version 2
9839 [[Main Page|[http://example.com/]]]
9841 <p><a href="/wiki/Main_Page" title="Main Page">[http://example.com/]</a>
9851 Template:Dangerous attribute
9853 " onmouseover="alert(document.cookie)
9857 Template:Dangerous style attribute
9859 border-size: expression(alert(document.cookie))
9865 <div style="float: right; {{{1}}}">Magic div</div>
9869 Bug 2304: HTML attribute safety (safe template; regression bug 2309)
9871 <div title="{{test}}"></div>
9873 <div title="This is a test template"></div>
9878 Bug 2304: HTML attribute safety (dangerous template; 2309)
9880 <div title="{{dangerous attribute}}"></div>
9882 <div title=""></div>
9887 Bug 2304: HTML attribute safety (dangerous style template; 2309)
9889 <div style="{{dangerous style attribute}}"></div>
9891 <div style="/* insecure input */"></div>
9896 Bug 2304: HTML attribute safety (safe parameter; 2309)
9898 {{div style|width: 200px}}
9900 <div style="float: right; width: 200px">Magic div</div>
9905 Bug 2304: HTML attribute safety (unsafe parameter; 2309)
9907 {{div style|width: expression(alert(document.cookie))}}
9909 <div style="/* insecure input */">Magic div</div>
9914 Bug 2304: HTML attribute safety (unsafe breakout parameter; 2309)
9916 {{div style|"><script>alert(document.cookie)</script>}}
9918 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9923 Bug 2304: HTML attribute safety (unsafe breakout parameter 2; 2309)
9925 {{div style|" ><script>alert(document.cookie)</script>}}
9927 <div style="float: right;"><script>alert(document.cookie)</script>">Magic div</div>
9932 Bug 2304: HTML attribute safety (link)
9934 <div title="[[Main Page]]"></div>
9936 <div title="[[Main Page]]"></div>
9941 Bug 2304: HTML attribute safety (italics)
9943 <div title="''foobar''"></div>
9945 <div title="''foobar''"></div>
9950 Bug 2304: HTML attribute safety (bold)
9952 <div title="'''foobar'''"></div>
9954 <div title="'''foobar'''"></div>
9960 Bug 2304: HTML attribute safety (ISBN)
9962 <div title="ISBN 1234567890"></div>
9964 <div title="ISBN 1234567890"></div>
9969 Bug 2304: HTML attribute safety (RFC)
9971 <div title="RFC 1234"></div>
9973 <div title="RFC 1234"></div>
9978 Bug 2304: HTML attribute safety (PMID)
9980 <div title="PMID 1234567890"></div>
9982 <div title="PMID 1234567890"></div>
9987 Bug 2304: HTML attribute safety (web link)
9989 <div title="http://example.com/"></div>
9991 <div title="http://example.com/"></div>
9996 Bug 2304: HTML attribute safety (named web link)
9998 <div title="[http://example.com/ link]"></div>
10000 <div title="[http://example.com/ link]"></div>
10005 Bug 3244: HTML attribute safety (extension; safe)
10007 <div style="<nowiki>background:blue</nowiki>"></div>
10009 <div style="background:blue"></div>
10014 Bug 3244: HTML attribute safety (extension; unsafe)
10016 <div style="<nowiki>border-left:expression(alert(document.cookie))</nowiki>"></div>
10018 <div style="/* insecure input */"></div>
10022 # More MSIE fun discovered by Tom Gilder
10025 MSIE CSS safety test: spurious slash
10027 <div style="background-image:u\rl(javascript:alert('boo'))">evil</div>
10029 <div style="/* insecure input */">evil</div>
10034 MSIE CSS safety test: hex code
10036 <div style="background-image:u\72l(javascript:alert('boo'))">evil</div>
10038 <div style="/* insecure input */">evil</div>
10043 MSIE CSS safety test: comment in url
10045 <div style="background-image:u/**/rl(javascript:alert('boo'))">evil</div>
10047 <div style="background-image:u rl(javascript:alert('boo'))">evil</div>
10052 MSIE CSS safety test: comment in expression
10054 <div style="background-image:expres/**/sion(alert('boo4'))">evil4</div>
10056 <div style="background-image:expres sion(alert('boo4'))">evil4</div>
10062 Table attribute legitimate extension
10065 !+ style="<nowiki>color:blue</nowiki>"| status
10070 <th style="color:blue"> status
10076 Table attribute safety
10079 !+ style="<nowiki>border-width:expression(0+alert(document.cookie))</nowiki>"| status
10084 <th style="/* insecure input */"> status
10090 CSS line continuation 1
10092 <div style="background-image: u\ rl(test.jpg);"></div>
10094 <div style="/* insecure input */"></div>
10099 CSS line continuation 2
10101 <div style="background-image: u\ rl(test.jpg); "></div>
10103 <div style="/* insecure input */"></div>
10114 Expansion of multi-line templates in attribute values (bug 6255)
10116 <div style="background: {{identity|#00FF00}}">-</div>
10118 <div style="background: #00FF00">-</div>
10124 Expansion of multi-line templates in attribute values (bug 6255 sanity check)
10126 <div style="background:
10129 <div style="background: #00FF00">-</div>
10134 Expansion of multi-line templates in attribute values (bug 6255 sanity check 2)
10136 <div style="background: #00FF00">-</div>
10138 <div style="background: #00FF00">-</div>
10143 ### Parser hooks (see maintenance/parserTestsParserHook.php for the <tag> extension)
10146 Parser hook: empty input
10159 Parser hook: empty input using terminated empty elements
10172 Parser hook: empty input using terminated empty elements (space before)
10185 Parser hook: basic input
10199 Parser hook: case insensitive
10213 Parser hook: case insensitive, redux
10226 Parser hook: nested tags
10230 <tag><tag></tag></tag>
10241 Parser hook: basic arguments
10243 <tag width=200 height = "100" depth = '50' square></tag>
10251 'square' => 'square',
10258 Parser hook: argument containing a forward slash (bug 5344)
10260 <tag filename='/tmp/bla'></tag>
10265 'filename' => '/tmp/bla',
10272 Parser hook: empty input using terminated empty elements (bug 2374)
10285 # </tag> should be output literally since there is no matching tag that begins it
10287 Parser hook: basic arguments using terminated empty elements (bug 2374)
10289 <tag width=200 height = "100" depth = '50' square/>
10299 'square' => 'square',
10308 ### (see maintenance/parserTestsStaticParserHook.php for the <statictag> extension)
10312 Parser hook: static parser hook not inside a comment
10314 <statictag>hello, world</statictag>
10315 <statictag action=flush/>
10323 Parser hook: static parser hook inside a comment
10325 <!-- <statictag>hello, world</statictag> -->
10326 <statictag action=flush/>
10332 # Nested template calls; this case was broken by Parser.php rev 1.506,
10336 Template:One-parameter
10338 (My parameter is: {{{1}}})
10342 Template:Map-one-parameter
10344 {{{{{1}}}|{{{2}}}}}
10348 Nested template calls
10350 {{Map-one-parameter|One-parameter|param}}
10352 <p>(My parameter is: param)
10361 Sanitizer: Closing of open tags
10363 <s></s><table></table>
10365 <s></s><table></table>
10370 Sanitizer: Closing of open but not closed tags
10379 Sanitizer: Closing of closed but not open tags
10388 Sanitizer: Closing of closed but not open table tags
10390 Table not started</td></tr></table>
10392 <p>Table not started</td></tr></table>
10397 Sanitizer: Escaping of spaces, multibyte characters, colons & other stuff in id=""
10399 <span id="æ: v">byte</span>[[#æ: v|backlink]]
10401 <p><span id=".C3.A6:_v">byte</span><a href="#.C3.A6:_v">backlink</a>
10406 Sanitizer: Validating the contents of the id attribute (bug 4515)
10412 Something, but definitely not <br id="9" />...
10416 Sanitizer: Validating id attribute uniqueness (bug 4515, bug 6301)
10420 <br id="foo" /><br id="foo" />
10422 Something need to be done. foo-2 ?
10426 Sanitizer: Validating that <meta> and <link> work, but only for Microdata
10429 <meta itemprop="hello" content="world">
10430 <meta http-equiv="refresh" content="5">
10431 <meta itemprop="hello" http-equiv="refresh" content="5">
10432 <link itemprop="hello" href="{{SERVER}}">
10433 <link rel="stylesheet" href="{{SERVER}}">
10434 <link rel="stylesheet" itemprop="hello" href="{{SERVER}}">
10437 <div itemscope="itemscope">
10438 <p> <meta itemprop="hello" content="world" />
10439 <meta http-equiv="refresh" content="5">
10440 <meta itemprop="hello" content="5" />
10442 <link itemprop="hello" href="http://example.org" />
10443 <link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>">
10444 <link itemprop="hello" href="http://example.org" />
10450 Language converter: output gets cut off unexpectedly (bug 5757)
10454 this bit is safe: }-
10456 but if we add a conversion instance: -{zh-cn:xxx;zh-tw:yyy}-
10458 then we get cut off here: }-
10460 all additional text is vanished
10462 <p>this bit is safe: }-
10463 </p><p>but if we add a conversion instance: xxx
10464 </p><p>then we get cut off here: }-
10465 </p><p>all additional text is vanished
10470 Self closed html pairs (bug 5487)
10473 <center><font id="bug" />Centered text</center>
10474 <div><font id="bug2" />In div text</div>
10476 <center><font id="bug" />Centered text</center>
10477 <div><font id="bug2" />In div text</div>
10486 Punctuation: nbsp before exclamation
10490 <p>C'est grave !
10495 Punctuation: CSS !important (bug 11874)
10497 <div style="width:50% !important">important</div>
10499 <div style="width:50% !important">important</div>
10504 Punctuation: CSS ! important (bug 11874; with space after)
10506 <div style="width:50% ! important">important</div>
10508 <div style="width:50% ! important">important</div>
10514 HTML bullet list, closed tags (bug 5497)
10529 HTML bullet list, unclosed tags (bug 5497)
10546 HTML ordered list, closed tags (bug 5497)
10561 HTML ordered list, unclosed tags (bug 5497)
10578 HTML nested bullet list, closed tags (bug 5497)
10603 HTML nested bullet list, open tags (bug 5497)
10628 HTML nested ordered list, closed tags (bug 5497)
10653 HTML nested ordered list, open tags (bug 5497)
10678 HTML ordered list item with parameters oddity
10680 <ol><li id="fragment">One</li></ol>
10682 <ol><li id="fragment">One</li></ol>
10687 bug 5918: autonumbering
10689 [http://first/] [http://second] [ftp://ftp]
10693 [mailto:enclosed@mail.tld With target]
10695 [mailto:enclosed@mail.tld]
10697 mailto:inline@mail.tld
10699 <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>
10700 </p><p><a rel="nofollow" class="external free" href="ftp://inlineftp">ftp://inlineftp</a>
10701 </p><p><a rel="nofollow" class="external text" href="mailto:enclosed@mail.tld">With target</a>
10702 </p><p><a rel="nofollow" class="external autonumber" href="mailto:enclosed@mail.tld">[4]</a>
10703 </p><p><a rel="nofollow" class="external free" href="mailto:inline@mail.tld">mailto:inline@mail.tld</a>
10709 # Security and HTML correctness
10710 # From Nick Jenkins' fuzz testing
10714 Fuzz testing: Parser13
10729 Fuzz testing: Parser14
10734 <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>
10735 http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
10737 <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li>
10744 Fuzz testing: Parser14-table
10749 <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>
10750 <table style="__TOC__">
10756 # Known to produce bogus xml (extra </td>)
10758 Fuzz testing: Parser16
10778 Fuzz testing: Parser21
10781 ! irc://{{ftp://a" onmouseover="alert('hello world');"
10786 <th> <a rel="nofollow" class="external free" href="irc://{{ftp://a">irc://{{ftp://a</a>" onmouseover="alert('hello world');"
10796 Fuzz testing: Parser22
10798 http://===r:::https://b
10802 <p><a rel="nofollow" class="external free" href="http://===r:::https://b">http://===r:::https://b</a>
10810 # Known to produce bad XML for now
10812 Fuzz testing: Parser24
10819 | {{{{SSSll!!!!!!!VVVV)]]][[Special:*xxxxxxx--><noinclude>}}}} >
10820 <br style="onmouseover='alert(document.cookie);' " />
10822 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10827 <u class="|">}}}} >
10828 <br style="onmouseover='alert(document.cookie);'" />
10830 MOVE YOUR MOUSE CURSOR OVER THIS TEXT
10839 # Note: the current result listed for this is not what the original one was,
10840 # but the original bug was JavaScript injection, which is fixed in any case.
10841 # It's not clear that the original result listed was any more correct than the
10842 # current one. Original result:
10845 # <li class="||">
10846 # }}}blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10848 Fuzz testing: Parser25 (bug 6055)
10854 }}}blah" onmouseover="alert('hello world');" align="left"'''MOVE MOUSE CURSOR OVER HERE
10856 <p><LI CLASS=blah" onmouseover="alert('hello world');" align="left"<b>MOVE MOUSE CURSOR OVER HERE</b>
10861 Fuzz testing: URL adjacent extension (with space, clean)
10864 http://example.com <nowiki>junk</nowiki>
10866 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a> junk
10871 Fuzz testing: URL adjacent extension (no space, dirty; nowiki)
10874 http://example.com<nowiki>junk</nowiki>
10876 <p><a rel="nofollow" class="external free" href="http://example.com">http://example.com</a>junk
10881 Fuzz testing: URL adjacent extension (no space, dirty; pre)
10884 http://example.com<pre>junk</pre>
10886 <a rel="nofollow" class="external free" href="http://example.com">http://example.com</a><pre>junk</pre>
10891 Fuzz testing: image with bogus manual thumbnail
10893 [[Image:foobar.jpg|thumbnail= ]]
10895 <div class="thumb tright"><div class="thumbinner" style="width:182px;">Error creating thumbnail: <div class="thumbcaption"></div></div></div>
10900 Fuzz testing: encoded newline in generated HTML replacements (bug 6577)
10902 <pre dir=" "></pre>
10904 <pre dir=" "></pre>
10909 Parsing optional HTML elements (Bug 6171)
10914 <td> Some tabular data</td>
10915 <td> More tabular data ...
10916 <td> And yet som tabular data</td>
10922 <td> Some tabular data</td>
10923 <td> More tabular data ...
10924 </td><td> And yet som tabular data</td>
10931 Correct handling of <td>, <tr> (Bug 6171)
10936 <td> Some tabular data</td>
10937 <td> More tabular data ...</td>
10938 <td> And yet som tabular data</td>
10944 <td> Some tabular data</td>
10945 <td> More tabular data ...</td>
10946 <td> And yet som tabular data</td>
10954 Parsing crashing regression (fr:JavaScript)
10958 <p></body></x>
10963 Inline wiki vs wiki block nesting
10969 <p><b>Bold paragraph</b>
10970 </p><p>New wiki paragraph
10975 Inline HTML vs wiki block nesting
10983 <p><b>Bold paragraph</b>
10984 </p><p>New wiki paragraph
10988 # Original result was this:
10989 # <p><b>bold</b><b>bold<i>bolditalics</i></b>
10991 # While that might be marginally more intuitive, maybe, the six-apostrophe
10992 # construct is clearly pathological and the result stated here (which is what
10993 # the parser actually does) is about as reasonable as anything.
10995 Mixing markup for italics and bold
10998 '''bold''''''bold''bolditalics'''''
11000 <p>'<i>bold'</i><b>bold<i>bolditalics</i></b>
11008 Article for special page transclusion test
11012 Special page transclusion
11015 {{Special:Prefixindex/Xyzzyx}}
11017 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11022 Special page transclusion twice (bug 5021)
11025 {{Special:Prefixindex/Xyzzyx}}
11026 {{Special:Prefixindex/Xyzzyx}}
11028 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11029 <table id="mw-prefixindex-list-table"><tr><td><a href="/wiki/Xyzzyx" title="Xyzzyx">Xyzzyx</a></td></tr></table>
11034 Transclusion of default MediaWiki message
11036 {{MediaWiki:Mainpage}}
11043 Transclusion of nonexistent MediaWiki message
11045 {{MediaWiki:Mainpagexxx}}
11047 <p><a href="/index.php?title=MediaWiki:Mainpagexxx&action=edit&redlink=1" class="new" title="MediaWiki:Mainpagexxx (page does not exist)">MediaWiki:Mainpagexxx</a>
11052 Transclusion of MediaWiki message with underscore
11054 {{MediaWiki:history_short}}
11061 Transclusion of MediaWiki message with space
11063 {{MediaWiki:history short}}
11070 Invalid header with following text
11080 Section extraction test (section 0)
11100 Section extraction test (section 1)
11122 Section extraction test (section 2)
11143 Section extraction test (section 3)
11163 Section extraction test (section 4)
11187 Section extraction test (section 5)
11207 Section extraction test (section 6)
11228 Section extraction test (section 7)
11248 Section extraction test (section 8)
11268 Section extraction test (section 9)
11289 Section extraction test (section 10)
11309 Section extraction test (nonexistent section 11)
11328 Section extraction test with bogus heading (section 1)
11333 ==bogus== not a legal section
11337 ==bogus== not a legal section
11341 Section extraction test with bogus heading (section 2)
11346 ==bogus== not a legal section
11353 Section extraction test with comment after heading (section 1)
11365 Section extraction test with comment after heading (section 2)
11377 Section extraction test with bogus <nowiki> heading (section 1)
11382 ==bogus== <nowiki>not a legal section</nowiki>
11386 ==bogus== <nowiki>not a legal section</nowiki>
11390 Section extraction test with bogus <nowiki> heading (section 2)
11395 ==bogus== <nowiki>not a legal section</nowiki>
11402 # Formerly testing for bug 2587, now resolved by the use of unmarked sections
11403 # instead of respecting commented sections
11405 Section extraction prefixed by comment (section 1)
11416 Section extraction prefixed by comment (section 2)
11427 # Formerly testing for bug 2607, now resolved by the use of unmarked sections
11428 # instead of respecting HTML-style headings
11430 Section extraction, mixed wiki and html (section 1)
11446 Section extraction, mixed wiki and html (section 2)
11462 # Formerly testing for bug 3342
11464 Section extraction, heading surrounded by <noinclude>
11468 <noinclude>==unmarked==</noinclude>
11474 # Test behavior of bug 19910
11476 Sectiion with all-equals
11481 The line above must have a trailing space
11484 But just in case it doesn't...
11488 But just in case it doesn't...
11492 Section replacement test (section 0)
11523 Section replacement test (section 1)
11552 Section replacement test (section 2)
11582 Section replacement test (section 3)
11613 Section replacement test (section 4)
11640 Section replacement test (section 5)
11671 Section replacement test (section 6)
11701 Section replacement test (section 7)
11732 Section replacement test (section 8)
11763 Section replacement test (section 9)
11792 Section replacement test (section 10)
11822 Section replacement test with initial whitespace (bug 13728)
11826 Preformatted initial line
11830 Preformatted initial line
11837 Section extraction, heading followed by pre with 20 spaces (bug 6398)
11849 Section extraction, heading followed by pre with 19 spaces (bug 6398 sanity check)
11862 Section extraction, <pre> around bogus header (bug 10309)
11879 Section replacement, <pre> around bogus header (bug 10309)
11881 noxml replace=2,"xxx"
11902 Handling of 
 in URLs
11906 <ul><li><ul><li><a rel="nofollow" class="external free" href="irc://%0Aa">irc://%0Aa</a>
11913 5 quotes, code coverage +1 line (php)
11920 # The PHP parser strips the empty tags out for giggles; parsoid doesn't.
11922 5 quotes, code coverage +1 line (parsoid)
11928 <p><i><b></b></i></p>
11932 Special:Search page linking.
11936 <p><a href="/wiki/Special:Search" title="Special:Search">Special:Search</a>
11948 * {{ROOTPAGENAMEE}}
11950 * {{BASEPAGENAMEE}}
11952 * {{TALKPAGENAMEE}}
11953 * {{SUBJECTPAGENAME}}
11954 * {{SUBJECTPAGENAMEE}}
11960 * {{SUBJECTSPACEE}}
11961 * {{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}
11963 <ul><li> Parser test
11964 </li><li> Parser test
11965 </li><li> Parser test
11966 </li><li> Parser_test
11967 </li><li> Parser test
11968 </li><li> Parser_test
11969 </li><li> Parser test
11970 </li><li> Parser_test
11971 </li><li> Talk:Parser test
11972 </li><li> Talk:Parser_test
11973 </li><li> Parser test
11974 </li><li> Parser_test
11981 </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>
11985 ### Note: Above tests excludes the "{{NUMBEROFADMINS}}" magic word because it generates a MySQL error when included.
11995 image4 |300px| centre
11996 image5.svg| http://///////
12001 <ul class="gallery">
12002 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12003 <div style="height: 150px;">Image1.png</div>
12004 <div class="gallerytext">
12007 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12008 <div style="height: 150px;">Image2.gif</div>
12009 <div class="gallerytext">
12014 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12015 <div style="height: 150px;">Image3</div>
12016 <div class="gallerytext">
12019 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12020 <div style="height: 150px;">Image4</div>
12021 <div class="gallerytext">
12026 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12027 <div style="height: 150px;">Image5.svg</div>
12028 <div class="gallerytext">
12029 <p><a rel="nofollow" class="external free" href="http://///////">http://///////</a>
12033 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12034 <div style="height: 150px;">* image6</div>
12035 <div class="gallerytext">
12043 Gallery (with options)
12045 <gallery widths='70px' heights='40px' perrow='2' caption='Foo [[Main Page]]' >
12046 File:Nonexistant.jpg|caption
12047 File:Nonexistant.jpg
12048 image:foobar.jpg|some '''caption''' [[Main Page]]
12050 image:foobar.jpg|Blabla|alt=This is a foo-bar.|blabla.
12053 <ul class="gallery" style="max-width: 226px;_width: 226px;">
12054 <li class='gallerycaption'>Foo <a href="/wiki/Main_Page" title="Main Page">Main Page</a></li>
12055 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12056 <div style="height: 70px;">Nonexistant.jpg</div>
12057 <div class="gallerytext">
12062 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12063 <div style="height: 70px;">Nonexistant.jpg</div>
12064 <div class="gallerytext">
12067 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12068 <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>
12069 <div class="gallerytext">
12070 <p>some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12074 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12075 <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>
12076 <div class="gallerytext">
12079 <li class="gallerybox" style="width: 105px"><div style="width: 105px">
12080 <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>
12081 <div class="gallerytext">
12091 Gallery with wikitext inside caption
12094 File:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=inneralt]]|alt=galleryalt
12095 File:foobar.jpg|{{Test|unamedParam|alt=param}}|alt=galleryalt
12098 <ul class="gallery">
12099 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12100 <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>
12101 <div class="gallerytext">
12102 <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>
12106 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12107 <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>
12108 <div class="gallerytext">
12109 <p>This is a test template
12118 gallery (with showfilename option)
12120 <gallery showfilename>
12121 File:Nonexistant.jpg|caption
12122 File:Nonexistant.jpg
12123 image:foobar.jpg|some '''caption''' [[Main Page]]
12127 <ul class="gallery">
12128 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12129 <div style="height: 150px;">Nonexistant.jpg</div>
12130 <div class="gallerytext">
12131 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12136 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12137 <div style="height: 150px;">Nonexistant.jpg</div>
12138 <div class="gallerytext">
12139 <p><a href="/wiki/File:Nonexistant.jpg" title="File:Nonexistant.jpg">Nonexistant.jpg</a><br />
12143 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12144 <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>
12145 <div class="gallerytext">
12146 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12147 some <b>caption</b> <a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12151 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12152 <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>
12153 <div class="gallerytext">
12154 <p><a href="/wiki/File:Foobar.jpg" title="File:Foobar.jpg">Foobar.jpg</a><br />
12163 Gallery (with namespace-less filenames)
12166 File:Nonexistant.jpg
12172 <ul class="gallery">
12173 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12174 <div style="height: 150px;">Nonexistant.jpg</div>
12175 <div class="gallerytext">
12178 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12179 <div style="height: 150px;">Nonexistant.jpg</div>
12180 <div class="gallerytext">
12183 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12184 <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>
12185 <div class="gallerytext">
12188 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
12189 <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>
12190 <div class="gallerytext">
12198 HTML Hex character encoding (spells the word "JavaScript")
12200 JavaScript
12202 <p>JavaScript
12207 HTML Hex character encoding bogus encoding (bug 26437 regression check)
12211 <p>&#xsee;&#XSEE;
12216 HTML Hex character encoding mixed case
12225 __FORCETOC__ override
12237 ISBN 978-0-1234-56 789
12239 <p><a href="/wiki/Special:BookSources/9780123456" class="internal mw-magiclink-isbn">ISBN 978-0-1234-56</a> 789
12244 ISBN followed by 5 spaces
12255 ISBN ISBN 1234567890
12257 <p>ISBN <a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12262 Bug 22905: <abbr> followed by ISBN followed by </a>
12264 <abbr>(fr)</abbr> ISBN 2753300917 [http://www.example.com example.com]
12266 <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>
12275 <p>RFC <a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc1234">RFC 1234</a>
12280 Double RFC with a wiki link
12284 <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>
12293 <p><a class="external mw-magiclink-rfc" rel="nofollow" href="//tools.ietf.org/html/rfc983">RFC 983</a> 987
12298 Centre-aligned image
12300 [[Image:foobar.jpg|centre]]
12302 <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>
12309 [[Image:foobar.jpg|none]]
12311 <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>
12316 Width + Height sized image (using px) (height is ignored)
12318 [[Image:foobar.jpg|640x480px]]
12320 <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>
12325 Width-sized image (using px, no following whitespace)
12327 [[Image:foobar.jpg|640px]]
12329 <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>
12334 Width-sized image (using px, with following whitespace - test regression from r39467)
12336 [[Image:foobar.jpg|640px ]]
12338 <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>
12343 Width-sized image (using px, with preceding whitespace - test regression from r39467)
12345 [[Image:foobar.jpg| 640px]]
12347 <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>
12352 Another italics / bold test
12360 # Note the results may be incorrect, as parserTest output included this:
12361 # XML error: Mismatched tag at byte 6120:
12362 # ...<dd> </dt></dl> </dd...
12370 <dl><dd><dl><dt><dl><dt><dl><dt><dl><dd><dl><dd>
12381 # Images with the "|" character in external URLs in comment tags; Eats half the comment, leaves unmatched "</a>" tag.
12383 Images with the "|" character in the comment
12385 [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]]
12387 <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>
12392 [Before] HTML without raw HTML enabled ($wgRawHtml==false)
12394 <html><script>alert(1);</script></html>
12396 <p><html><script>alert(1);</script></html>
12401 HTML with raw HTML ($wgRawHtml==true)
12405 <html><script>alert(1);</script></html>
12407 <p><script>alert(1);</script>
12412 Parents of subpages, one level up
12414 subpage title=[[Subpage test/L1/L2/L3]]
12418 <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>
12424 Parents of subpages, one level up, not named
12426 subpage title=[[Subpage test/L1/L2/L3]]
12430 <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>
12437 Parents of subpages, two levels up
12439 subpage title=[[Subpage test/L1/L2/L3]]
12445 <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
12446 </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>
12451 Parents of subpages, two levels up, without trailing slash or name.
12453 subpage title=[[Subpage test/L1/L2/L3]]
12462 Parents of subpages, two levels up, with lots of extra trailing slashes.
12464 subpage title=[[Subpage test/L1/L2/L3]]
12468 <p><a href="/index.php?title=Subpage_test/L1////&action=edit&redlink=1" class="new" title="Subpage test/L1//// (page does not exist)">///</a>
12473 Subpage test/L1/L2/L3Sibling
12479 Transclusion of a sibling page (one level up)
12481 subpage title=[[Subpage test/L1/L2/L3]]
12490 Transclusion of a child page
12492 subpage title=[[Subpage test/L1/L2]]
12501 Non-transclusion because of too many up levels
12503 subpage title=[[Subpage test/L1/L2/L3]]
12505 {{../../../../More than parent}}
12507 <p>{{../../../../More than parent}}
12512 Definition list code coverage
12518 <dl><dt> title  </dt><dd> def
12519 </dd><dt> title </dt><dd> def
12520 </dd><dt>title</dt><dd> def
12526 Don't fall for the self-closing div
12528 <div>hello world</div/>
12530 <div>hello world</div>
12539 <p>[[:Template:Msg]]
12548 <p><a href="/index.php?title=Template:QUERTY&action=edit&redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
12552 # This isn't needed for XHTML conformance, but would be handy as a fallback security measure
12554 Always escape literal '>' in output, not just after '<'
12568 <p>This is a test template
12569 This is a test template
12581 Inclusion of !userCanEdit() content
12585 <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>
12591 Out-of-order TOC heading levels
12600 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
12602 <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a>
12604 <li class="toclevel-2 tocsection-2"><a href="#6"><span class="tocnumber">1.1</span> <span class="toctext">6</span></a></li>
12605 <li class="toclevel-2 tocsection-3"><a href="#3"><span class="tocnumber">1.2</span> <span class="toctext">3</span></a></li>
12608 <li class="toclevel-1 tocsection-4"><a href="#1"><span class="tocnumber">2</span> <span class="toctext">1</span></a>
12610 <li class="toclevel-2 tocsection-5"><a href="#5"><span class="tocnumber">2.1</span> <span class="toctext">5</span></a></li>
12611 <li class="toclevel-2 tocsection-6"><a href="#2_2"><span class="tocnumber">2.2</span> <span class="toctext">2</span></a></li>
12616 <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>
12617 <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>
12618 <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>
12619 <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>
12620 <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>
12621 <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>
12627 ISBN with a dummy number
12637 ISBN with space-delimited number
12641 <p><a href="/wiki/Special:BookSources/9290170328" class="internal mw-magiclink-isbn">ISBN 92 9017 032 8</a>
12647 ISBN with multiple spaces, no number
12666 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1234567890</a>
12667 </p><p>ISBN 12345678901
12673 ISBN with trailing year (bug 8110)
12675 ISBN 1-234-56789-0 - 2006
12677 ISBN 1 234 56789 0 - 2006
12679 <p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1-234-56789-0</a> - 2006
12680 </p><p><a href="/wiki/Special:BookSources/1234567890" class="internal mw-magiclink-isbn">ISBN 1 234 56789 0</a> - 2006
12688 {{anchorencode:foo bar©#%n}}
12690 <p>foo_bar.C2.A9.23.25n
12695 anchorencode trims spaces
12697 {{anchorencode: __pretty__please__}}
12704 anchorencode deals with links
12706 {{anchorencode: [[hello|world]] [[hi]]}}
12713 anchorencode deals with templates
12715 {{anchorencode: {{Foo}} }}
12722 anchorencode encodes like the TOC generator: (bug 18431)
12724 === _ +:.3A%3A&&]] ===
12725 {{anchorencode: _ +:.3A%3A&&]] }}
12728 <h3><span class="mw-headline" id=".2B:.3A.253A.26.26.5D.5D">_ +:.3A%3A&&]]</span></h3>
12729 <p>.2B:.3A.253A.26.26.5D.5D
12733 # Expected output in the following test is not necessarily expected (there
12734 # should probably be <p> tags inside the <blockquote> in the output) -- it's
12735 # only testing for well-formedness.
12737 Bug 6200: blockquotes and paragraph formatting
12757 Bug 8293: Use of center tag ruins paragraph formatting
12778 Parsing of overlapping (improperly nested) inline html tags (PHP parser)
12782 <span><s>x</span></s>
12784 <p><span><s>x</span></s></span>
12789 Parsing of overlapping (improperly nested) inline html tags (Parsoid)
12793 <span><s>x</span></s>
12795 <p><span><s>x</s></span><s></s>
12800 ### Language variants related tests
12803 Self-link in language variants
12805 title=[[Dunav]] language=sr
12807 Both [[Dunav]] and [[Дунав]] are names for this river.
12809 <p>Both <strong class="selflink">Dunav</strong> and <strong class="selflink">Дунав</strong> are names for this river.
12820 Link to another existing title shouldn't be parsed as self-link even if it's a variant of this title
12822 title=[[Duna]] language=sr
12824 [[Дуна]] is not a self-link while [[Duna]] and [[Dуна]] are still self-links.
12826 <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.
12831 Link to pages in language variants
12835 Main Page can be written as [[Маин Паге]]
12837 <p>Main Page can be written as <a href="/wiki/Main_Page" title="Main Page">Маин Паге</a>
12843 Multiple links to pages in language variants
12847 [[Main Page]] can be written as [[Маин Паге]] same as [[Маин Паге]].
12849 <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>.
12855 Simple template in language variants
12861 <p>This is a test template
12867 Template with explicit namespace in language variants
12873 <p>This is a test template
12879 Basic test for template parameter in language variants
12883 {{парамтест|param=foo}}
12885 <p>This is a test template with parameter foo
12891 Simple category in language variants
12895 [[Category:МедиаWики Усер'с Гуиде]]
12897 <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>
12914 Don't convert blue categorylinks to another variant (bug 33210)
12918 [[A]][[Category:分类]]
12920 <a href="/wiki/Category:%E5%88%86%E7%B1%BB" title="Category:分类">分类</a>
12925 Stripping -{}- tags (language variants)
12929 Latin proverb: -{Ne nuntium necare}-
12931 <p>Latin proverb: Ne nuntium necare
12937 Prevent conversion with -{}- tags (language variants)
12939 language=sr variant=sr-ec
12941 Latinski: -{Ne nuntium necare}-
12943 <p>Латински: Ne nuntium necare
12949 Prevent conversion of text with -{}- tags (language variants)
12951 language=sr variant=sr-ec
12953 Latinski: -{Ne nuntium necare}-
12955 <p>Латински: Ne nuntium necare
12961 Prevent conversion of links with -{}- tags (language variants)
12963 language=sr variant=sr-ec
12967 <p><a href="/wiki/Main_Page" title="Main Page">Main Page</a>
12973 -{}- tags within headlines (within html for parserConvert())
12975 language=sr variant=sr-ec
12979 <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>
12985 Explicit definition of language variant alternatives
12987 language=zh variant=zh-tw
12989 -{zh:China;zh-tw:Taiwan}-, not China
12991 <p>Taiwan, not China
12997 Conversion around HTML tags
12999 language=sr variant=sr-ec
13001 -{H|span=>sr-ec:script;title=>sr-ec:src;}-
13002 <span title="La-{sr-el:L;sr-ec:C;}-tin">ski</span>
13005 <span title="ЛаCтин">ски</span>
13011 Explicit session-wise language variant mapping (A flag and - flag)
13013 language=zh variant=zh-tw
13015 Taiwan is not China.
13016 But -{A|zh:China;zh-tw:Taiwan}- is China,
13017 (This-{-|zh:China;zh-tw:Taiwan}- should be stripped!)
13018 and -{China}- is China.
13020 <p>Taiwan is not China.
13021 But Taiwan is Taiwan,
13022 (This should be stripped!)
13023 and China is China.
13028 Explicit session-wise language variant mapping (H flag for hide)
13030 language=zh variant=zh-tw
13032 (This-{H|zh:China;zh-tw:Taiwan}- should be stripped!)
13035 <p>(This should be stripped!)
13041 Adding explicit conversion rule for title (T flag)
13043 language=zh variant=zh-tw showtitle
13045 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13048 <p>Should be stripped!
13053 Testing that changing the language variant here in the tests actually works
13055 language=zh variant=zh showtitle
13057 Should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13060 <p>Should be stripped!
13065 Recursive conversion of alt and title attrs shouldn't clear converter state
13067 language=zh variant=zh-cn showtitle
13069 -{H|zh-cn:Exclamation;zh-tw:exclamation;}-
13070 Should be stripped-{T|zh-cn:China;zh-tw:Taiwan}-<span title="exclamation">!</span>
13074 Should be stripped<span title="Exclamation">!</span>
13079 Bug 24072: more test on conversion rule for title
13081 language=zh variant=zh-tw showtitle
13083 This should be stripped-{T|zh:China;zh-tw:Taiwan}-!
13084 This won't take interferes with the title rule-{H|zh:Beijing;zh-tw:Taipei}-.
13087 <p>This should be stripped!
13088 This won't take interferes with the title rule.
13093 Partly disable title conversion if variant == main language code
13095 language=zh variant=zh title=[[ZH]] showtitle
13097 -{T|zh-cn:CN;zh-tw:TW}-
13105 Partly disable title conversion if variant == main language code, more
13107 language=zh variant=zh title=[[ZH]] showtitle
13117 Raw output of variant escape tags (R flag)
13119 language=zh variant=zh-tw
13121 Raw: -{R|zh:China;zh-tw:Taiwan}-
13123 <p>Raw: zh:China;zh-tw:Taiwan
13128 Nested using of manual convert syntax
13130 language=zh variant=zh-hk
13132 Nested: -{zh-hans:Hi -{zh-cn:China;zh-sg:Singapore;}-;zh-hant:Hello -{zh-tw:Taiwan;zh-hk:H-{ong}- K-{}-ong;}-;}-!
13134 <p>Nested: Hello Hong Kong!
13139 Proper conversion of text in external links
13141 language=sr variant=sr-ec
13143 http://www.google.com
13144 gopher://www.google.com
13145 [http://www.google.com http://www.google.com]
13146 [gopher://www.google.com gopher://www.google.com]
13147 [https://www.google.com irc://www.google.com]
13148 [ftp://www.google.com www.google.com/ftp://dir]
13149 [//www.google.com www.google.com]
13151 <p><a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13152 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13153 <a rel="nofollow" class="external free" href="http://www.google.com">http://www.google.com</a>
13154 <a rel="nofollow" class="external free" href="gopher://www.google.com">gopher://www.google.com</a>
13155 <a rel="nofollow" class="external text" href="https://www.google.com">irc://www.google.com</a>
13156 <a rel="nofollow" class="external text" href="ftp://www.google.com">www.гоогле.цом/фтп://дир</a>
13157 <a rel="nofollow" class="external text" href="//www.google.com">www.гоогле.цом</a>
13162 Do not convert roman numbers to language variants
13164 language=sr variant=sr-ec
13168 <p>Фридрих IV је цар.
13173 Unclosed language converter markup "-{"
13184 Don't convert raw rule "-{R|=>}-" to "=>"
13201 Bug 529: Uncovered bullet
13211 # Plain MediaWiki does not remove empty lists, but tidy actually does.
13212 # Templates in Wikipedia rely on this behavior, as tidy has always been
13213 # enabled there. These tests are normally run *without* tidy, so specify the
13214 # full output here.
13215 # To test realistic parsing behavior, apply a tidy-like transformation to both
13216 # the expected output and your parser's output.
13218 Bug 529: Uncovered bullet leaving empty list, normally removed by tidy
13220 ******* Foo {{bullet}}
13222 <ul><li><ul><li><ul><li><ul><li><ul><li><ul><li><ul><li> Foo
13235 Bug 529: Uncovered table already at line-start
13258 Bug 529: Uncovered bullet in parser function result
13260 * Foo {{lc:{{bullet}} }}
13269 Bug 5678: Double-parsed template argument
13271 {{lc:{{{1}}}|hello}}
13278 Bug 5678: Double-parsed template invocation
13280 {{lc:{{paramtest {{!}} param = hello }} }}
13282 <p>{{paramtest | param = hello }}
13287 Case insensitivity of parser functions for non-ASCII characters (bug 8143)
13290 title=[[Main Page]]
13292 {{PRVNÍVELKÉ:ěščř}}
13293 {{prvnívelké:ěščř}}
13313 Morwen/13: Unclosed link followed by heading
13320 <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>
13325 HHP2.1: Heuristics for headings in preprocessor parenthetical structures
13332 <h1><span class="mw-headline" id="heading">heading</span></h1>
13337 HHP2.2: Heuristics for headings in preprocessor parenthetical structures
13344 <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>
13359 Paragraphs inside divs (no extra line breaks)
13371 Paragraphs inside divs (extra line break on open)
13386 Paragraphs inside divs (extra line break on close)
13401 Paragraphs inside divs (extra line break on open and close)
13418 Nesting tags, paragraphs on lines which begin with <div>
13422 <div></div><strong>A
13431 # Bug 6200: <blockquote> should behave like <div> with respect to line breaks
13433 Bug 6200: paragraphs inside blockquotes (no extra line breaks)
13437 <blockquote>Line one
13439 Line two</blockquote>
13441 <blockquote>Line one
13442 Line two</blockquote>
13447 Bug 6200: paragraphs inside blockquotes (extra line break on open)
13454 Line two</blockquote>
13459 Line two</blockquote>
13464 Bug 6200: paragraphs inside blockquotes (extra line break on close)
13468 <blockquote>Line one
13473 <blockquote>Line one
13481 Bug 6200: paragraphs inside blockquotes (extra line break on open and close)
13500 Paragraphs inside blockquotes/divs (no extra line breaks)
13502 <blockquote><div>Line one
13504 Line two</div></blockquote>
13506 <blockquote><div>Line one
13507 Line two</div></blockquote>
13512 Paragraphs inside blockquotes/divs (extra line break on open)
13517 Line two</div></blockquote>
13522 Line two</div></blockquote>
13527 Paragraphs inside blockquotes/divs (extra line break on close)
13529 <blockquote><div>Line one
13532 </div></blockquote>
13534 <blockquote><div>Line one
13537 </div></blockquote>
13542 Paragraphs inside blockquotes/divs (extra line break on open and close)
13548 </div></blockquote>
13554 </div></blockquote>
13559 Interwiki links trounced by replaceExternalLinks after early LinkHolderArray expansion
13561 wgLinkHolderBatchSize=0
13567 <p><a href="http://www.usemod.com/cgi-bin/mb.pl?1" class="extiw" title="meatball:1">meatball:1</a>
13568 <a href="http://www.usemod.com/cgi-bin/mb.pl?2" class="extiw" title="meatball:2">meatball:2</a>
13569 <a href="http://www.usemod.com/cgi-bin/mb.pl?3" class="extiw" title="meatball:3">meatball:3</a>
13574 Free external link invading image caption
13576 [[Image:Foobar.jpg|thumb|http://x|hello]]
13578 <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>
13583 Bug 15196: localised external link numbers
13587 [http://en.wikipedia.org/]
13589 <p><a rel="nofollow" class="external autonumber" href="http://en.wikipedia.org/">[۱]</a>
13594 Multibyte character in padleft
13596 {{padleft:-Hello|7|Æ}}
13603 Multibyte character in padright
13605 {{padright:Hello-|7|Æ}}
13612 formatdate parser function
13614 {{#formatdate:2009-03-24}}
13616 <p><span class="mw-formatted-date" title="2009-03-24">2009-03-24</span>
13621 formatdate parser function, with default format
13623 {{#formatdate:2009-03-24|mdy}}
13625 <p><span class="mw-formatted-date" title="2009-03-24">March 24, 2009</span>
13630 Spacing of numbers in formatted dates
13632 {{#formatdate:January 15}}
13634 <p><span class="mw-formatted-date" title="01-15">January 15</span>
13639 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
13641 language=nl title=[[MediaWiki:Common.css]]
13643 {{#formatdate:2009-03-24|dmy}}
13645 <p><span class="mw-formatted-date" title="2009-03-24">24 March 2009</span>
13658 Edit comment with link
13662 I like the [[Main Page]] a lot
13664 I like the <a href="/wiki/Main_Page" title="Main Page">Main Page</a> a lot
13668 Edit comment with link and link text
13672 I like the [[Main Page|best pages]] a lot
13674 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13678 Edit comment with link and link text with suffix
13682 I like the [[Main Page|best page]]s a lot
13684 I like the <a href="/wiki/Main_Page" title="Main Page">best pages</a> a lot
13688 Edit comment with section link (non-local, eg in history list)
13690 comment title=[[Main Page]]
13692 /* External links */ removed bogus entries
13694 <a href="/wiki/Main_Page#External_links" title="Main Page">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13698 Edit comment with section link and text before it (non-local, eg in history list)
13700 comment title=[[Main Page]]
13702 pre-comment text /* External links */ removed bogus entries
13704 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>
13708 Edit comment with section link (local, eg in diff view)
13710 comment local title=[[Main Page]]
13712 /* External links */ removed bogus entries
13714 <a href="#External_links">→</a><span dir="auto"><span class="autocomment">External links: </span> removed bogus entries</span>
13718 Edit comment with subpage link (bug 14080)
13722 title=[[Subpage test]]
13724 Poked at a [[/subpage]] here...
13726 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">/subpage</a> here...
13730 Edit comment with subpage link and link text (bug 14080)
13734 title=[[Subpage test]]
13736 Poked at a [[/subpage|neat little page]] here...
13738 Poked at a <a href="/wiki/Subpage_test/subpage" title="Subpage test/subpage">neat little page</a> here...
13742 Edit comment with bogus subpage link in non-subpage NS (bug 14080)
13745 title=[[Subpage test]]
13747 Poked at a [[/subpage]] here...
13749 Poked at a <a href="/index.php?title=/subpage&action=edit&redlink=1" class="new" title="/subpage (page does not exist)">/subpage</a> here...
13753 Edit comment with bare anchor link (local, as on diff)
13757 title=[[Main Page]]
13761 <a href="#section">#section</a>
13765 Edit comment with bare anchor link (non-local, as on history)
13768 title=[[Main Page]]
13772 <a href="/wiki/Main_Page#section" title="Main Page">#section</a>
13776 Anchor starting with underscore
13780 <p><a href="#_ref">One</a>
13785 Id starting with underscore
13787 <div id="_ref"></div>
13789 <div id="_ref"></div>
13794 Space normalisation on autocomment (bug 22784)
13797 title=[[Main Page]]
13799 /* __hello__world__ */
13801 <a href="/wiki/Main_Page#hello_world" title="Main Page">→</a><span dir="auto"><span class="autocomment">__hello__world__</span></span>
13805 percent-encoding and + signs in comments (Bug 26410)
13809 [[ABC%33D% ++]] [[ABC%33D% ++|+%20]]
13811 <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>
13815 Bad images - basic functionality
13824 Bad images - bug 16039: text after bad image disappears
13838 Verify that displaytitle works (bug #22501) no displaytitle
13842 wgAllowDisplayTitle=true
13843 wgRestrictDisplayTitle=false
13845 this is not the the title
13848 <p>this is not the the title
13853 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
13858 wgAllowDisplayTitle=true
13859 wgRestrictDisplayTitle=false
13861 this is not the the title
13862 {{DISPLAYTITLE:whatever}}
13865 <p>this is not the the title
13870 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
13875 wgAllowDisplayTitle=true
13876 wgRestrictDisplayTitle=true
13878 this is not the the title
13879 {{DISPLAYTITLE:whatever}}
13882 <p>this is not the the title
13887 Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
13892 wgAllowDisplayTitle=true
13893 wgRestrictDisplayTitle=true
13895 this is not the the title
13896 {{DISPLAYTITLE:screen}}
13899 <p>this is not the the title
13904 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
13909 wgAllowDisplayTitle=false
13911 this is not the the title
13912 {{DISPLAYTITLE:screen}}
13915 <p>this is not the the title
13916 <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>
13921 Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
13926 wgAllowDisplayTitle=false
13928 this is not the the title
13931 <p>this is not the the title
13936 Verify that displaytitle handles inline CSS styles (bug 26547) - rejected value
13941 wgAllowDisplayTitle=true
13942 wgRestrictDisplayTitle=true
13944 this is not the the title
13945 {{DISPLAYTITLE:<span style="display: none;">s</span>creen}}
13947 <span style="/* attempt to bypass $wgRestrictDisplayTitle */">s</span>creen
13948 <p>this is not the the title
13953 Verify that displaytitle handles inline CSS styles (bug 26547) - accepted value
13958 wgAllowDisplayTitle=true
13959 wgRestrictDisplayTitle=true
13961 this is not the the title
13962 {{DISPLAYTITLE:<span style="color: red;">s</span>creen}}
13964 <span style="color: red;">s</span>creen
13965 <p>this is not the the title
13970 preload: check <noinclude> and <includeonly>
13974 Hello <noinclude>cruel</noinclude><includeonly>kind</includeonly> world.
13980 preload: check <onlyinclude>
13984 Goodbye <onlyinclude>Hello world</onlyinclude>
13990 preload: can pass tags through if we want to
13994 <includeonly><</includeonly>includeonly>Hello world<includeonly><</includeonly>/includeonly>
13996 <includeonly>Hello world</includeonly>
14000 preload: check that it doesn't try to do tricks
14004 * <!-- Hello --> ''{{world}}'' {{<includeonly>subst:</includeonly>How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14006 * <!-- Hello --> ''{{world}}'' {{subst:How are you}}{{ {{{|safesubst:}}} #if:1|2|3}}
14010 Play a bit with r67090 and bug 3158
14014 <div style="width:50% !important"> </div>
14015 <div style="width:50% !important"> </div>
14016 <div style="width:50% !important"> </div>
14017 <div style="border : solid;"> </div>
14019 <div style="width:50% !important"> </div>
14020 <div style="width:50% !important"> </div>
14021 <div style="width:50% !important"> </div>
14022 <div style="border : solid;"> </div>
14027 HTML5 data attributes
14029 <span data-foo="bar">Baz</span>
14030 <p data-abc-def_hij="">Quuz</p>
14032 <p><span data-foo="bar">Baz</span>
14034 <p data-abc-def_hij="">Quuz</p>
14039 percent-encoding and + signs in internal links (Bug 26410)
14041 [[User:+%]] [[Page+title%]]
14042 [[%+]] [[%+|%20]] [[%+ ]] [[%+r]]
14043 [[%]] [[+]] [[image:%+abc%39|foo|[[bar]]]]
14044 [[%33%45]] [[%33%45+]]
14046 <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>
14047 <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>
14048 <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>
14049 <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>
14054 Special characters in embedded file links (bug 27679)
14056 [[File:Contains & ampersand.jpg]]
14057 [[File:Does not exist.jpg|Title with & ampersand]]
14059 <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>
14060 <a href="/index.php?title=Special:Upload&wpDestFile=Does_not_exist.jpg" class="new" title="File:Does not exist.jpg">Title with & ampersand</a>
14066 Confirm that 'apos' named character reference doesn't make it to output (not legal in HTML 4)
14068 Text's been normalized?
14070 <p>Text's been normalized?
14075 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate free external links
14077 http://www.example.org/ <-- U+3000 (vim: ^Vu3000)
14079 <p><a rel="nofollow" class="external free" href="http://www.example.org/">http://www.example.org/</a> <-- U+3000 (vim: ^Vu3000)
14084 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links
14086 [http://www.example.org/ ideograms]
14088 <p><a rel="nofollow" class="external text" href="http://www.example.org/">ideograms</a>
14093 Bug 19052 U+3000 IDEOGRAPHIC SPACE should terminate external images links
14095 http://www.example.org/pic.png <-- U+3000 (vim: ^Vu3000)
14097 <p><img src="http://www.example.org/pic.png" alt="pic.png" /> <-- U+3000 (vim: ^Vu3000)
14121 Bug 31098 Template which includes system messages which includes the template
14125 <p><span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14126 <span class="error">Template loop detected: <a href="/wiki/Template:Identical" title="Template:Identical">Template:Identical</a></span>
14131 Bug31490 Turkish: ucfirst 'blah'
14142 Bug31490 Turkish: ucfirst 'ix'
14153 Bug31490 Turkish: lcfirst 'BLAH'
14164 Bug31490 Turkish: ucfırst (with a dotless i)
14170 <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>
14175 Bug31490 ucfırst (with a dotless i) with English language
14181 <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>
14186 Bug 26375: TOC with italics
14188 title=[[Main Page]]
14191 == ''Lost'' episodes ==
14193 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14195 <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>
14198 <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>
14203 Bug 26375: TOC with bold
14205 title=[[Main Page]]
14208 == '''should be bold''' then normal text ==
14210 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14212 <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>
14215 <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>
14220 Bug 33845: Headings become cursive in TOC when they contain an image
14222 title=[[Main Page]]
14225 == Image [[Image:foobar.jpg]] ==
14227 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14229 <li class="toclevel-1 tocsection-1"><a href="#Image"><span class="tocnumber">1</span> <span class="toctext">Image</span></a></li>
14232 <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>
14237 Bug 33845 (2): Headings become bold in TOC when they contain a blockquote
14239 title=[[Main Page]]
14242 == <blockquote>Quote</blockquote> ==
14244 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14246 <li class="toclevel-1 tocsection-1"><a href="#Quote"><span class="tocnumber">1</span> <span class="toctext">Quote</span></a></li>
14249 <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>
14254 Unclosed tags in TOC
14256 title=[[Main Page]]
14260 <small>Hanc marginis exiguitas non caperet.</small>
14263 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14265 <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>
14268 <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>
14269 <p><small>Hanc marginis exiguitas non caperet.</small>
14275 Multiple tags in TOC
14278 == <i>Foo</i> <b>Bar</b> ==
14280 == <i>Foo</i> <blockquote>Bar</blockquote> ==
14282 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14284 <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>
14285 <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>
14288 <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>
14289 <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>
14294 Tags with parameters in TOC
14297 == <sup class="in-h2">Hello</sup> ==
14299 == <sup class="a > b">Evilbye</sup> ==
14301 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14303 <li class="toclevel-1 tocsection-1"><a href="#Hello"><span class="tocnumber">1</span> <span class="toctext"><sup>Hello</sup></span></a></li>
14304 <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>
14307 <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>
14308 <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>
14313 span tags with directionality in TOC
14316 == <span dir="ltr">C++</span> ==
14318 == <span dir="rtl">זבנג!</span> ==
14320 == <span style="font-style: italic">The attributes on these span tags must be deleted from the TOC</span> ==
14322 == <span style="font-style: italic" dir="ltr">All attributes on these span tags must be deleted from the TOC</span> ==
14324 == <span dir="ltr" style="font-style: italic">Attributes after dir on these span tags must be deleted from the TOC</span> ==
14326 <div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div>
14328 <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>
14329 <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>
14330 <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>
14331 <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>
14332 <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>
14335 <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>
14336 <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>
14337 <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>
14338 <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>
14339 <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>
14346 == {{int:headline_sample}} ==
14350 Bug 32057: Title needed when expanding <h> nodes.
14352 title=[[Main Page]]
14356 <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>
14361 Strip marker in urlencode
14363 {{urlencode:x<nowiki/>y}}
14364 {{urlencode:x<nowiki/>y|wiki}}
14365 {{urlencode:x<nowiki/>y|path}}
14392 Strip marker in formatNum
14394 {{formatnum:1<nowiki/>2}}
14395 {{formatnum:1<nowiki/>2|R}}
14403 Check noCommafy in formatNum
14407 {{formatnum:123456.78}}
14408 {{formatnum:123456.78|NOSEP}}
14416 Strip marker in grammar
14420 {{grammar:elative|foo<nowiki/>bar}}
14427 Strip marker in padleft
14429 {{padleft:|2|x<nowiki/>y}}
14436 Strip marker in padright
14438 {{padright:|2|x<nowiki/>y}}
14445 Strip marker in anchorencode
14447 {{anchorencode:x<nowiki/>y}}
14454 nowiki inside link inside heading (bug 18295)
14456 ==[[foo|x<nowiki>y</nowiki>z]]==
14458 <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>
14463 new support for bdi element (bug 31817)
14465 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14467 <p dir="rtl" lang="he">ולדימיר לנין (ברוסית: <bdi lang="ru">Владимир Ленин</bdi>, 24 באפריל 1870–22 בינואר 1924) הוא מנהיג פוליטי קומוניסטי רוסי.</p>
14472 Ignore pipe between table row attributes
14476 |- id=foo | style='color: red'
14484 <tr id="foo" style="color: red">
14491 Gallery override link with WikiLink (bug 34852)
14494 File:foobar.jpg|caption|alt=galleryalt|link=InterWikiLink
14497 <ul class="gallery">
14498 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14499 <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>
14500 <div class="gallerytext">
14510 Gallery override link with absolute external link (bug 34852)
14513 File:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org
14516 <ul class="gallery">
14517 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14518 <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>
14519 <div class="gallerytext">
14529 Gallery override link with malicious javascript (bug 34852)
14532 File:foobar.jpg|caption|alt=galleryalt|link=" onclick="alert('malicious javascript code!');
14535 <ul class="gallery">
14536 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14537 <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>
14538 <div class="gallerytext">
14548 Gallery with invalid title as link (bug 43964)
14551 File:foobar.jpg|link=<
14554 <ul class="gallery">
14555 <li class="gallerybox" style="width: 155px"><div style="width: 155px">
14556 <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>
14557 <div class="gallerytext">
14565 Language parser function
14574 Padleft and padright as substr
14576 {{padleft:|3|abcde}}
14577 {{padright:|3|abcde}}
14585 Special parser function
14587 {{#special:RandomPage}}
14588 {{#special:BaDtItLe}}
14589 {{#special:Foobar}}
14598 Bug 34939 - Case insensitive link parsing ([HttP://])
14600 [HttP://MediaWiki.Org/]
14602 <p><a rel="nofollow" class="external autonumber" href="HttP://MediaWiki.Org/">[1]</a>
14607 Bug 34939 - Case insensitive link parsing ([HttP:// title])
14609 [HttP://MediaWiki.Org/ MediaWiki]
14611 <p><a rel="nofollow" class="external text" href="HttP://MediaWiki.Org/">MediaWiki</a>
14616 Bug 34939 - Case insensitive link parsing (HttP://)
14618 HttP://MediaWiki.Org/
14620 <p><a rel="nofollow" class="external free" href="HttP://MediaWiki.Org/">HttP://MediaWiki.Org/</a>
14626 ### Parsoids-specific tests
14627 ### Parsoid-PHP parser incompatibilities
14630 1. SOL-sensitive wikitext tokens as template-args
14632 parsoid=wt2html,wt2wt
14638 <span about="#mwt1" typeof="mw:Transclusion">
14639 </span><ul about="#mwt1"><li>a</li></ul>
14640 <span about="#mwt2" typeof="mw:Transclusion">
14641 </span><ol about="#mwt2"><li>a</li></ol>
14642 <span about="#mwt3" typeof="mw:Transclusion">
14643 </span><dl about="#mwt3"><dd>a</dd></dl>
14646 #### ----------------------------------------------------------------
14647 #### Parsoid-only testing of Parsoid's impl of <ref> and <references>
14648 #### tags. Parsoid's output for these tags differs from that of the
14650 #### ----------------------------------------------------------------
14653 Ref: 1. ref-location should be replaced with an index span
14658 B <ref name="x">foo</ref>
14661 <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>
14662 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>
14663 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>
14667 Ref: 2. ref-tags with identical names should all get the same index
14671 A <ref name="x">foo</ref>
14674 <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>
14675 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>
14679 Ref: 3. spaces in ref-names should be ignored
14683 A <ref name="x">foo</ref>
14684 B <ref name=" x " />
14687 <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>
14688 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>
14689 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>
14693 Ref: 4. 'constructor' should be accepted as a valid ref-name
14694 (NOTE: constructor is a predefined property in JS and constructor as a ref-name can clash with it if not handled properly)
14698 A <ref name="constructor">foo</ref>
14700 <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>
14704 Ref: 5. body should accept generic wikitext
14709 This is a '''[[bolded link]]''' and this is a {{echo|transclusion}}
14714 <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>
14716 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14717 <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>
14722 Ref: 6. indent-pres should not be output in ref-body
14734 <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>
14736 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14737 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14744 Ref: 6. No p-wrapping in ref-body
14763 <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>
14765 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14766 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo
14780 Ref: 8. transclusion wikitext has lower precedence
14784 A <ref> foo {{echo|</ref> B C}}
14788 <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>
14790 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14791 <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>
14795 Ref: 9. unclosed comments should not leak out of ref-body
14799 A <ref> foo <!--</ref> B C
14803 <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>
14805 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14806 <li about="#cite_note-1" id="cite_note-1"><span rel="mw:referencedBy"><a href="#cite_ref-1-0">↑</a></span> foo <!----></li></ol>
14810 Ref: 10. Unclosed HTML tags should not leak out of ref-body
14814 A <ref> <b> foo </ref> B C
14818 <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>
14820 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references">
14821 <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>
14825 Ref: 11. ref-tags acts like an inline element wrt P-wrapping
14832 <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
14833 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>
14837 Ref: 12. ref-tags act as trailing newline migration barrier
14841 <!--the newline at the end of this line moves out of the p-tag-->a
14843 b<!--the newline at the end of this line stays inside the p-tag--> <ref />
14848 <p><!--the newline at the end of this line moves out of the p-tag-->a</p>
14851 <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>
14852 <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>
14859 Ref: 13. ref-tags are not SOL-transparent and block indent-pres
14867 <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
14868 <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>
14872 Ref: 14. A nested ref-tag should be emitted as plain text
14876 <ref>foo <ref>bar</ref> baz</ref>
14880 <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>
14882 <ol class="references" typeof="mw:Extension/references" about="#mwt2" data-mw="{"name":"references","attrs":{}}">
14883 <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>
14887 Ref: 15. ref-tags with identical names should get identical indexes
14891 A1 <ref name="a">foo</ref> A2 <ref name="a" />
14892 B1 <ref name="b" /> B2 <ref name="b">bar</ref>
14896 <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>
14897 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>
14899 <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>
14903 References: 1. references tag without any refs should be handled properly
14909 <ol about="#mwt2" class="references" data-mw='{"name":"references","attrs":{}}' typeof="mw:Extension/references"></ol>
14913 References: 2. references tag with group only outputs references from that group
14917 A <ref group="a">foo</ref>
14918 B <ref group="b">bar</ref>
14920 <references group='a' />
14922 <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>
14923 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>
14925 <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>
14929 References: 3. ref list should be cleared after processing references
14941 <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>
14943 <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>
14945 <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>
14947 <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>
14951 References: 4. only referenced group should be cleared after processing references
14955 A <ref group="a">afoo</ref>
14958 <references group="a"/>
14964 <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>
14965 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>
14967 <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>
14969 <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>
14971 <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>
14975 References: 5. ref tags in references should be processed while ignoring all other content
14980 B <ref name="b">bar</ref>
14983 <ref name="a">foo</ref>
14984 This should just get lost.
14987 <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>
14988 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>
14990 <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>
14994 References: 6. <references /> from a transclusion
14998 {{echo|<references />}}
15000 <ol class="references" about="#mwt2" typeof="mw:Transclusion" data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"<references />"}},"i":0}'></ol>
15003 #### ----------------------------------------------------------------
15004 #### The following section of tests are primarily to test
15005 #### wikitext escaping capabilities of Parsoid. Given that
15006 #### escaping can be done any number of ways, the wikitext (input)
15007 #### is always adjusted to reflect how Parsoid adds nowiki
15010 #### We are marking several tests as parsoid-only since the
15011 #### HTML in the result section is different from what the
15012 #### PHP parser generates for it.
15013 #### ----------------------------------------------------------------
15016 #### --------------- Headings ---------------
15018 #### 1. Nested inside html <h1>=foo=</h1>
15019 #### 2. Outside heading nest on a single line <h1>foo</h1>*bar
15020 #### 3. Nested inside html with wikitext split by html tags
15021 #### 4. No escape needed
15022 #### 5. Empty headings <h1></h1>
15023 #### 6. Heading chars in SOL context
15024 #### ----------------------------------------
15026 Headings: 0. Unnested
15030 <nowiki>=foo=</nowiki>
15032 <nowiki> =foo= </nowiki>
15034 <nowiki>=foo=</nowiki>
15036 =foo''a''<nowiki>=</nowiki>
15038 <p><span typeof="mw:Nowiki">=foo=</span></p>
15040 <p><span typeof="mw:Nowiki"> =foo= </span>
15042 <span typeof="mw:Nowiki">=foo=</span></p>
15044 <p>=foo<i>a</i><span typeof="mw:Nowiki">=</span></p>
15048 Headings: 1. Nested inside html
15052 =<nowiki>=foo=</nowiki>=
15054 ==<nowiki>=foo=</nowiki>==
15056 ===<nowiki>=foo=</nowiki>===
15058 ====<nowiki>=foo=</nowiki>====
15060 =====<nowiki>=foo=</nowiki>=====
15062 ======<nowiki>=foo=</nowiki>======
15064 <h1><span typeof="mw:Nowiki">=foo=</span></h1>
15065 <h2><span typeof="mw:Nowiki">=foo=</span></h2>
15066 <h3><span typeof="mw:Nowiki">=foo=</span></h3>
15067 <h4><span typeof="mw:Nowiki">=foo=</span></h4>
15068 <h5><span typeof="mw:Nowiki">=foo=</span></h5>
15069 <h6><span typeof="mw:Nowiki">=foo=</span></h6>
15073 Headings: 2. Outside heading nest on a single line <h1>foo</h1>*bar
15078 <nowiki>*</nowiki>bar
15084 <nowiki>=bar=</nowiki>
15092 Headings: 3. Nested inside html with wikitext split by html tags
15096 =='''bold'''<nowiki>foo=</nowiki>=
15098 <h1>=<b>bold</b><span typeof="mw:Nowiki">foo=</span></h1>
15102 Headings: 4a. No escaping needed (testing just h1 and h2)
15120 =<nowiki>=</nowiki>=
15128 <h1><i>=</i>foo=</h1>
15129 <h1><span typeof="mw:Nowiki">=</span></h1>
15133 Headings: 4b. No escaping needed (inside p-tags)
15148 Headings: 5. Empty headings
15160 =====<nowiki/>=====
15162 ======<nowiki/>======
15173 Headings: 6a. Heading chars in SOL context (with trailing spaces)
15177 <nowiki>=a=</nowiki>
15179 <nowiki>=a=</nowiki>
15181 <nowiki>=a=</nowiki>
15183 <nowiki>=a=</nowiki>
15192 Headings: 6b. Heading chars in SOL context (with trailing newlines)
15220 Headings: 6c. Heading chars in SOL context (leading newline break)
15225 <nowiki>=b=</nowiki>
15232 Headings: 6d. Heading chars in SOL context (with interspersed comments)
15236 <!--c0--><nowiki>=a=</nowiki>
15238 <nowiki>=a=</nowiki> <!--c2--> <!--c3-->
15240 <p><!--c0-->=a=</p>
15241 <p><!--c1-->=a= <!--c2--> <!--c3--></p>
15245 Headings: 6d. Heading chars in SOL context (No escaping needed)
15254 #### --------------- Lists ---------------
15255 #### 0. Outside nests (*foo, etc.)
15256 #### 1. Nested inside html <ul><li>*foo</li></ul>
15257 #### 2. Inside definition lists
15258 #### 3. Only bullets at start should be escaped
15259 #### 4. No escapes needed
15260 #### 5. No unnecessary escapes
15261 #### 6. Escape bullets in SOL position
15262 #### 7. Escape bullets in a multi-line context
15263 #### ----------------------------------------
15266 Lists: 0. Outside nests
15268 <nowiki>*</nowiki>foo
15270 <nowiki>#</nowiki>foo
15278 Lists: 1. Nested inside html
15280 *<nowiki>*foo</nowiki>
15282 *<nowiki>#foo</nowiki>
15284 *<nowiki>:foo</nowiki>
15286 *<nowiki>;foo</nowiki>
15288 #<nowiki>*foo</nowiki>
15290 #<nowiki>#foo</nowiki>
15292 #<nowiki>:foo</nowiki>
15294 #<nowiki>;foo</nowiki>
15316 Lists: 2. Inside definition lists
15318 ;<nowiki>;foo</nowiki>
15320 ;<nowiki>:foo</nowiki>
15322 ;<nowiki>:foo</nowiki>
15325 :<nowiki>:foo</nowiki>
15340 Lists: 3. Only bullets at start of text should be escaped
15342 *<nowiki>*foo*bar</nowiki>
15344 *<nowiki>*foo</nowiki>''it''*bar
15348 <ul><li>*foo<i>it</i>*bar
15354 Lists: 4. No escapes needed
15366 <ul><li><i>foo</i>*bar
15368 <ul><li><a rel="mw:WikiLink" href="Foo">Foo</a>: bar
15373 Lists: 5. No unnecessary escapes
15375 * bar <span><nowiki>[[foo]]</nowiki></span>
15377 *=bar <span><nowiki>[[foo]]</nowiki></span>
15379 *[[bar <span><nowiki>[[foo]]</nowiki></span>
15381 *]]bar <span><nowiki>[[foo]]</nowiki></span>
15383 *=bar <span>foo]]</span>=
15387 <ul><li> bar <span>[[foo]]</span>
15389 <ul><li>=bar <span>[[foo]]</span>
15391 <ul><li>[[bar <span>[[foo]]</span>
15393 <ul><li>]]bar <span>[[foo]]</span>
15395 <ul><li>=bar <span>foo]]</span>=
15397 <ul><li> <s></s>: a
15403 Lists: 6. Escape bullets in SOL position
15407 <!--cmt--><nowiki>*foo</nowiki>
15409 <p><!--cmt--><span typeof="mw:Nowiki">*foo</span></p>
15413 Lists: 7. Escape bullets in a multi-line context
15416 <nowiki>*</nowiki>b
15423 #### --------------- HRs ---------------
15424 #### 1. Single line
15425 #### -----------------------------------
15428 HRs: 1. Single line
15432 ----<nowiki>----</nowiki>
15436 <hr><span typeof="mw:Nowiki">----</span>
15441 #### --------------- Tables ---------------
15442 #### 1a. Simple example
15443 #### 1b. No escaping needed (!foo)
15444 #### 1c. No escaping needed (|foo)
15445 #### 1d. No escaping needed (|}foo)
15447 #### 2a. Nested in td (<td>foo|bar</td>)
15448 #### 2b. Nested in td (<td>foo||bar</td>)
15449 #### 2c. Nested in td -- no escaping needed(<td>foo!!bar</td>)
15451 #### 3a. Nested in th (<th>foo!bar</th>)
15452 #### 3b. Nested in th (<th>foo!!bar</th>)
15453 #### 3c. Nested in th -- no escaping needed(<th>foo||bar</th>)
15457 #### 4c. No escaping needed
15458 #### --------------------------------------
15461 Tables: 1a. Simple example
15472 Tables: 1b. No escaping needed
15481 Tables: 1c. No escaping needed
15490 Tables: 1d. No escaping needed
15499 Tables: 2a. Nested in td
15504 |<nowiki>foo|bar</nowiki>
15508 <td><span typeof="mw:Nowiki">foo|bar</span></td></tr></tbody></table>
15512 Tables: 2b. Nested in td
15517 |<nowiki>foo||bar</nowiki>
15518 |''it''<nowiki>foo||bar</nowiki>
15522 <td><span typeof="mw:Nowiki">foo||bar</span></td>
15523 <td><i>it</i><span typeof="mw:Nowiki">foo||bar</span></td></tr></tbody></table>
15527 Tables: 2c. Nested in td -- no escaping needed
15535 <table><tbody><tr><td>foo!!bar
15536 </td></tr></tbody></table>
15541 Tables: 3a. Nested in th
15549 <table><tbody><tr><th>foo!bar
15550 </th></tr></tbody></table>
15555 Tables: 3b. Nested in th
15560 !<nowiki>foo!!bar</nowiki>
15564 <tbody><tr><th><span typeof="mw:Nowiki">foo!!bar</span></th></tr>
15569 Tables: 3c. Nested in th -- no escaping needed
15574 !<nowiki>foo||bar</nowiki>
15578 <th><span typeof="mw:Nowiki">foo||bar</span></th></tr></tbody></table>
15582 Tables: 4a. Escape -
15590 |<nowiki>-bar</nowiki>
15594 <tr><th>-bar</th></tr>
15596 <td><span typeof="mw:Nowiki">-bar</span></td></tr></tbody></table>
15600 Tables: 4b. Escape +
15608 |<nowiki>+bar</nowiki>
15612 <tr><th>+bar</th></tr>
15614 <td><span typeof="mw:Nowiki">+bar</span></td></tr></tbody></table>
15618 Tables: 4c. No escaping needed
15632 <tr><td>foo-bar</td><td>foo+bar</td></tr>
15633 <tr><td><i>foo</i>-bar</td><td><i>foo</i>+bar</td></tr>
15637 ### SSS FIXME: Disabled right now because accurate html2wt
15638 ### on this snippet requires data-parsoid flags that we've
15639 ### stripped out of these tests. We should scheme how we
15640 ### we want to handle these kind of tests that require
15641 ### data-parsoid flags for accurate html2wt serialization
15644 Tables: 4d. No escaping needed
15662 #### --------------- Links ----------------
15663 #### 1. Quote marks in link text
15664 #### 2. Wikilinks: Escapes needed
15665 #### 3. Wikilinks: No escapes needed
15666 #### 4. Extlinks: Escapes needed
15667 #### 5. Extlinks: No escapes needed
15668 #### --------------------------------------
15670 Links 1. Quote marks in link text
15674 [[Foo|Foo<nowiki>''boo''</nowiki>]]
15676 <a rel="mw:WikiLink" href="Foo">Foo''boo''</a>
15680 Links 2. WikiLinks: Escapes needed
15684 [[Foo|<nowiki>[Foobar]</nowiki>]]
15685 [[Foo|<nowiki>Foobar]</nowiki>]]
15686 [[Foo|x [Foobar] x]]
15687 [[Foo|<nowiki>x [http://google.com g] x</nowiki>]]
15688 [[Foo|<nowiki>[[Bar]]</nowiki>]]
15689 [[Foo|<nowiki>x [[Bar]] x</nowiki>]]
15690 [[Foo|<nowiki>|Bar</nowiki>]]
15691 [[Foo|<nowiki>]]bar</nowiki>]]
15692 [[Foo|<nowiki>[[bar</nowiki>]]
15693 [[Foo|<nowiki>x ]] y [[ z</nowiki>]]
15695 <a href="Foo" rel="mw:WikiLink">[Foobar]</a>
15696 <a href="Foo" rel="mw:WikiLink">Foobar]</a>
15697 <a href="Foo" rel="mw:WikiLink">x [Foobar] x</a>
15698 <a href="Foo" rel="mw:WikiLink">x [http://google.com g] x</a>
15699 <a href="Foo" rel="mw:WikiLink">[[Bar]]</a>
15700 <a href="Foo" rel="mw:WikiLink">x [[Bar]] x</a>
15701 <a href="Foo" rel="mw:WikiLink">|Bar</a>
15702 <a href="Foo" rel="mw:WikiLink">]]bar</a>
15703 <a href="Foo" rel="mw:WikiLink">[[bar</a>
15704 <a href="Foo" rel="mw:WikiLink">x ]] y [[ z</a>
15708 Links 3. WikiLinks: No escapes needed
15715 <a href="Foo" rel="mw:WikiLink">[Foobar</a>
15716 <a href="Foo" rel="mw:WikiLink">foo|bar</a>
15720 Links 4. ExtLinks: Escapes needed
15724 [http://google.com <nowiki>[google]</nowiki>]
15725 [http://google.com <nowiki>google]</nowiki>]
15727 <a href="http://google.com" rel="mw:ExtLink">[google]</a>
15728 <a href="http://google.com" rel="mw:ExtLink">google]</a>
15732 Links 5. ExtLinks: No escapes needed
15736 [http://google.com [google]
15738 <a href="http://google.com" rel="mw:ExtLink">[google</a>
15741 #### --------------- Quotes ---------------
15742 #### 1. Quotes inside <b> and <i>
15743 #### 2. Link fragments separated by <i> and <b> tags
15744 #### 3. Link fragments inside <i> and <b>
15745 #### --------------------------------------
15747 1. Quotes inside <b> and <i>
15749 ''<nowiki>'foo'</nowiki>''
15750 ''<nowiki>''foo''</nowiki>''
15751 ''<nowiki>'''foo'''</nowiki>''
15752 ''foo''<nowiki>'s</nowiki>
15753 '''<nowiki>'foo'</nowiki>'''
15754 '''<nowiki>''foo''</nowiki>'''
15755 '''<nowiki>'''foo'''</nowiki>'''
15756 '''<nowiki>foo'</nowiki>''<nowiki>bar'</nowiki>''baz'''
15757 '''foo'''<nowiki>'s</nowiki>
15766 <b>foo'<i>bar'</i>baz</b>
15772 2. Link fragments separated by <i> and <b> tags
15774 [[''foo''<nowiki>hello]]</nowiki>
15776 [['''foo'''<nowiki>hello]]</nowiki>
15778 <p>[[<i>foo</i>hello]]
15779 </p><p>[[<b>foo</b>hello]]
15784 2. Link fragments inside <i> and <b>
15785 (FIXME: Escaping one or both of [[ and ]] is also acceptable --
15786 this is one of the shortcomings of this format)
15788 ''[[foo''<nowiki>]]</nowiki>
15790 '''[[foo'''<nowiki>]]</nowiki>
15793 </p><p><b>[[foo</b>]]
15797 #### ----------- Paragraphs ---------------
15798 #### 1. No unnecessary escapes
15799 #### --------------------------------------
15802 1. No unnecessary escapes
15804 bar <span><nowiki>[[foo]]</nowiki></span>
15806 =bar <span><nowiki>[[foo]]</nowiki></span>
15808 [[bar <span><nowiki>[[foo]]</nowiki></span>
15810 ]]bar <span><nowiki>[[foo]]</nowiki></span>
15812 =bar <span>foo]]</span><nowiki>=</nowiki>
15814 <p>bar <span>[[foo]]</span>
15815 </p><p>=bar <span>[[foo]]</span>
15816 </p><p>[[bar <span>[[foo]]</span>
15817 </p><p>]]bar <span>[[foo]]</span>
15818 </p><p>=bar <span>foo]]</span>=
15822 #### ----------------------- PRE --------------------------
15823 #### 1. Leading whitespace in SOL context should be escaped
15824 #### ------------------------------------------------------
15826 1. Leading whitespace in SOL context should be escaped
15830 <nowiki> </nowiki>a
15832 <nowiki> </nowiki> a
15834 <nowiki> </nowiki>a(tab)
15836 <nowiki> </nowiki> a
15838 <nowiki> </nowiki> a
15841 <nowiki> </nowiki>b
15844 <nowiki> </nowiki>b
15847 <nowiki> </nowiki> b
15853 <p><!--cmt--> a</p>
15862 #### --------------- HTML tags ---------------
15865 #### 3. multi-line html tag
15866 #### -----------------------------------------
15872 <a href="http://google.com">google</a>
15874 <a href="http://google.com">google</a>
15880 <nowiki><div>foo</div>
15881 <div style="color:red">foo</div></nowiki>
15883 <p><div>foo</div>
15884 <div style="color:red">foo</div>
15889 3. multi-line html tag
15904 <nowiki><ref>foo</ref></nowiki>
15906 <p><ref>foo</ref>
15910 #### --------------- Others ---------------
15914 <nowiki>foo</nowiki>
15916 <p><nowiki>foo</nowiki>
15921 Tag-like HTML structures are passed through as text
15943 </p><p>1<d e>f
15948 # This fails in the PHP parser (see bug 40670,
15949 # https://bugzilla.wikimedia.org/show_bug.cgi?id=40670), so disabled for it.
15951 Tag names followed by punctuation should not be recognized as tags
15957 <p><s.ome> text
15962 HTML tag with necessary entities in attributes
15964 <span title="&amp;">foo</span>
15966 <p><span title="&amp;">foo</span>
15971 HTML tag with 'unnecessary' entity encoding in attributes
15973 <span title="&">foo</span>
15975 <p><span title="&">foo</span>
15980 HTML tag with broken attribute value quoting
15982 <span title="Hello world>Foo</span>
15984 <p><span>Foo</span>
15989 Parsoid-only: HTML tag with broken attribute value quoting
15993 <span title="Hello world>Foo</span>
15995 <p><span title="Hello world">Foo</span>
16000 Table with broken attribute value quoting
16003 | title="Hello world|Foo
16014 Table with broken attribute value quoting on consecutive lines
16017 | title="Hello world|Foo
16018 | style="color:red|Bar
16031 Parsoid-only: Table with broken attribute value quoting on consecutive lines
16036 | title="Hello world|Foo
16037 | style="color:red|Bar
16042 <td title="Hello world">Foo
16043 </td><td style="color: red">Bar
16044 </td></tr></tbody></table>
16049 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16059 Parsoid-only: Don't wrap broken template tags in <nowiki> on wt2wt (Bug 42353)
16069 Accept empty td cell attribute
16072 | align="center" | foo || |
16077 <td align="center"> foo </td>
16084 Non-empty attributes in th-cells
16087 ! Foo !! style="color: red" | Bar
16093 <th style="color: red"> Bar
16099 Accept empty attributes in th-cells
16114 Empty table rows go away
16135 ### Parsoid-centric tests for testing RTing of inter-element separators
16136 ### Edge cases not tested by existing parser tests and specific to
16137 ### Parsoid-specific serialization strategies.
16141 RT-ed inter-element separators should be valid separators
16154 Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out
16155 (Parsoid-only since PHP parser relies on Tidy for correct output)
16171 Empty TD followed by TD with tpl-generated attribute
16176 |{{echo|style='color:red'}}|foo
16190 Indented table with an empty td
16209 Empty TR followed by a template-generated TR
16210 (Parsoid-specific since PHP parser doesn't handle this mixed tbl-wikitext)
16212 parsoid=wt2html,wt2wt
16216 {{echo|<tr><td>foo</td></tr>}}
16222 <tr typeof="mw:Transclusion">
16223 <td>foo</td></tr></tbody></table>
16226 ## PHP and parsoid output differ for this, and since this is primarily
16227 ## for testing Parsoid's serializer, marking this Parsoid only
16229 Empty TR followed by mixed-ws-comment line should RT correctly
16243 <td> <!--c--></td></tr>
16245 <td><!--c--> <!--d--></td></tr>
16251 Multi-line image caption generated by templates with/without trailing newlines
16255 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}]]
16256 [[File:foo.jpg|thumb|300px|foo\n{{echo|A}}\n{{echo|B}}\n{{echo|C}}\n\n]]
16258 <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>
16259 <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>
16263 ## PHP emits broken html for this, and since this is primarily
16264 ## a Parsoid serializer test, marking this Parsoid only
16266 Improperly nested inline or quotes tags with whitespace in between
16270 <span> <s>x</span> </s>
16273 <p><span> <s>x</s></span><s> </s>
16274 <b> <i>x</i></b><i> </i>
16278 # -----------------------------------------------------------------
16279 # The following section of tests are primarily to spec requirements
16280 # around serialization of new/edited content.
16282 # All these tests are marked Parsoid html2wt and html2html only
16283 # ----------------------------------------------------------------
16286 Image: Modifying size of an image
16290 [[Image:Wiki.png|230x230px]]
16292 <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>
16296 Image: New block level image should have \n before and after
16301 [[File:Wiki.png|right|thumb|150x150px]]
16304 <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>
16308 Lists: Add space after bullets
16315 * <span> baz</span>
16320 <li><span> baz</span></li>
16325 Parsoid: Serialize positional parameters with = in them as named parameter
16331 <p about="#mwt1" typeof="mw:Transclusion"
16332 data-mw='{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"f=oo"}},"i":0}'
16336 # -----------------------------------------------------------------
16337 # End of section for Parsoid-only html2wt tests for serialization
16339 # -----------------------------------------------------------------
16346 Try for 100% code coverage