Index: trunk/phase3/skins/vector/screen.css |
— | — | @@ -884,7 +884,8 @@ |
885 | 885 | .toc ul { |
886 | 886 | list-style-type: none; |
887 | 887 | list-style-image: none; |
888 | | - padding: 0 .4em; |
| 888 | + margin-left: 0; |
| 889 | + padding-left: 0; |
889 | 890 | text-align: left; |
890 | 891 | } |
891 | 892 | #toc ul ul, |
Index: trunk/phase3/skins/monobook/main.css |
— | — | @@ -348,7 +348,8 @@ |
349 | 349 | .toc ul { |
350 | 350 | list-style-type: none; |
351 | 351 | list-style-image: none; |
352 | | - padding: 0 .4em; |
| 352 | + margin-left: 0; |
| 353 | + padding-left: 0; |
353 | 354 | text-align: left; |
354 | 355 | } |
355 | 356 | #toc ul ul, |
Index: trunk/phase3/skins/modern/main.css |
— | — | @@ -556,6 +556,11 @@ |
557 | 557 | border: solid 1px #bbb; |
558 | 558 | } |
559 | 559 | |
| 560 | +#toc tr, #toc td { |
| 561 | + margin: 0; |
| 562 | + padding: 0; |
| 563 | +} |
| 564 | + |
560 | 565 | #toctitle { |
561 | 566 | border-bottom: solid 1px #3c78b5; |
562 | 567 | background-color: #ddd; |
— | — | @@ -582,7 +587,7 @@ |
583 | 588 | list-style-type: none; |
584 | 589 | list-style-image: none; |
585 | 590 | margin: 0 1em; |
586 | | - padding: 0; |
| 591 | + padding-left: 0; |
587 | 592 | text-align: left; |
588 | 593 | } |
589 | 594 | |
Index: trunk/phase3/skins/common/shared.css |
— | — | @@ -784,14 +784,4 @@ |
785 | 785 | } |
786 | 786 | |
787 | 787 | /* bug 12205 */ |
788 | | -#mw-credits a { |
789 | | - unicode-bidi: embed; |
790 | | -} |
791 | | - |
792 | | -/* Standard toc */ |
793 | | -#toc { |
794 | | - display: inline-block; |
795 | | - /* IE6+7 workaround */ |
796 | | - zoom: 1; |
797 | | - display: inline !ie; |
798 | | -} |
\ No newline at end of file |
| 788 | +#mw-credits a { unicode-bidi: embed; } |
\ No newline at end of file |
Index: trunk/phase3/tests/parser/parserTests.txt |
— | — | @@ -4560,7 +4560,7 @@ |
4561 | 4561 | Some text |
4562 | 4562 | ===Another headline=== |
4563 | 4563 | !! result |
4564 | | -<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 4564 | +<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
4565 | 4565 | <ul> |
4566 | 4566 | <li class="toclevel-1 tocsection-1"><a href="#Headline_1"><span class="tocnumber">1</span> <span class="toctext">Headline 1</span></a> |
4567 | 4567 | <ul> |
— | — | @@ -4581,7 +4581,7 @@ |
4582 | 4582 | </ul> |
4583 | 4583 | </li> |
4584 | 4584 | </ul> |
4585 | | -</div> |
| 4585 | +</td></tr></table> |
4586 | 4586 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Headline 1">edit</a>]</span> <span class="mw-headline" id="Headline_1"> Headline 1 </span></h2> |
4587 | 4587 | <h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Subheadline 1">edit</a>]</span> <span class="mw-headline" id="Subheadline_1"> Subheadline 1 </span></h3> |
4588 | 4588 | <h5><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Skipping a level">edit</a>]</span> <span class="mw-headline" id="Skipping_a_level"> Skipping a level </span></h5> |
— | — | @@ -4608,7 +4608,7 @@ |
4609 | 4609 | ========= Level 9 Heading========= |
4610 | 4610 | ========== Level 10 Heading========== |
4611 | 4611 | !! result |
4612 | | -<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 4612 | +<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
4613 | 4613 | <ul> |
4614 | 4614 | <li class="toclevel-1 tocsection-1"><a href="#Level_1_Heading"><span class="tocnumber">1</span> <span class="toctext">Level 1 Heading</span></a> |
4615 | 4615 | <ul> |
— | — | @@ -4636,7 +4636,7 @@ |
4637 | 4637 | </ul> |
4638 | 4638 | </li> |
4639 | 4639 | </ul> |
4640 | | -</div> |
| 4640 | +</td></tr></table> |
4641 | 4641 | <h1><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Level 1 Heading">edit</a>]</span> <span class="mw-headline" id="Level_1_Heading"> Level 1 Heading</span></h1> |
4642 | 4642 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Level 2 Heading">edit</a>]</span> <span class="mw-headline" id="Level_2_Heading"> Level 2 Heading</span></h2> |
4643 | 4643 | <h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Level 3 Heading">edit</a>]</span> <span class="mw-headline" id="Level_3_Heading"> Level 3 Heading</span></h3> |
— | — | @@ -4660,7 +4660,7 @@ |
4661 | 4661 | == title 2 == |
4662 | 4662 | === title 2.1 === |
4663 | 4663 | !! result |
4664 | | -<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 4664 | +<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
4665 | 4665 | <ul> |
4666 | 4666 | <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a> |
4667 | 4667 | <ul> |
— | — | @@ -4678,7 +4678,7 @@ |
4679 | 4679 | </ul> |
4680 | 4680 | </li> |
4681 | 4681 | </ul> |
4682 | | -</div> |
| 4682 | +</td></tr></table> |
4683 | 4683 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2> |
4684 | 4684 | <h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3> |
4685 | 4685 | <h4><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4> |
— | — | @@ -4700,7 +4700,7 @@ |
4701 | 4701 | == title 2 == |
4702 | 4702 | === title 2.1 === |
4703 | 4703 | !! result |
4704 | | -<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 4704 | +<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
4705 | 4705 | <ul> |
4706 | 4706 | <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a> |
4707 | 4707 | <ul> |
— | — | @@ -4714,7 +4714,7 @@ |
4715 | 4715 | </ul> |
4716 | 4716 | </li> |
4717 | 4717 | </ul> |
4718 | | -</div> |
| 4718 | +</td></tr></table> |
4719 | 4719 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2> |
4720 | 4720 | <h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3> |
4721 | 4721 | <h4><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 1.1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1.1"> title 1.1.1 </span></h4> |
— | — | @@ -4735,7 +4735,7 @@ |
4736 | 4736 | ====Section 1.1.1.1==== |
4737 | 4737 | ==Section 2== |
4738 | 4738 | !! result |
4739 | | -<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 4739 | +<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
4740 | 4740 | <ul> |
4741 | 4741 | <li class="toclevel-1 tocsection-1"><a href="#Section_1"><span class="tocnumber">1</span> <span class="toctext">Section 1</span></a> |
4742 | 4742 | <ul> |
— | — | @@ -4744,7 +4744,7 @@ |
4745 | 4745 | </li> |
4746 | 4746 | <li class="toclevel-1 tocsection-5"><a href="#Section_2"><span class="tocnumber">2</span> <span class="toctext">Section 2</span></a></li> |
4747 | 4747 | </ul> |
4748 | | -</div> |
| 4748 | +</td></tr></table> |
4749 | 4749 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: Section 1">edit</a>]</span> <span class="mw-headline" id="Section_1">Section 1</span></h2> |
4750 | 4750 | <h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: Section 1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1">Section 1.1</span></h3> |
4751 | 4751 | <h4><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: Section 1.1.1">edit</a>]</span> <span class="mw-headline" id="Section_1.1.1">Section 1.1.1</span></h4> |
— | — | @@ -4827,7 +4827,7 @@ |
4828 | 4828 | === title 1.1 === |
4829 | 4829 | == title 2 == |
4830 | 4830 | !! result |
4831 | | -<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 4831 | +<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
4832 | 4832 | <ul> |
4833 | 4833 | <li class="toclevel-1 tocsection-1"><a href="#title_1"><span class="tocnumber">1</span> <span class="toctext">title 1</span></a> |
4834 | 4834 | <ul> |
— | — | @@ -4836,7 +4836,7 @@ |
4837 | 4837 | </li> |
4838 | 4838 | <li class="toclevel-1 tocsection-3"><a href="#title_2"><span class="tocnumber">2</span> <span class="toctext">title 2</span></a></li> |
4839 | 4839 | </ul> |
4840 | | -</div> |
| 4840 | +</td></tr></table> |
4841 | 4841 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: title 1">edit</a>]</span> <span class="mw-headline" id="title_1"> title 1 </span></h2> |
4842 | 4842 | <h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: title 1.1">edit</a>]</span> <span class="mw-headline" id="title_1.1"> title 1.1 </span></h3> |
4843 | 4843 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: title 2">edit</a>]</span> <span class="mw-headline" id="title_2"> title 2 </span></h2> |
— | — | @@ -4891,7 +4891,7 @@ |
4892 | 4892 | !! result |
4893 | 4893 | <p>The tooltips shall not show entities to the user (ie. be double escaped) |
4894 | 4894 | </p> |
4895 | | -<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 4895 | +<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
4896 | 4896 | <ul> |
4897 | 4897 | <li class="toclevel-1 tocsection-1"><a href="#text_.3E_text"><span class="tocnumber">1</span> <span class="toctext">text > text</span></a></li> |
4898 | 4898 | <li class="toclevel-1 tocsection-2"><a href="#text_.3C_text"><span class="tocnumber">2</span> <span class="toctext">text < text</span></a></li> |
— | — | @@ -4899,7 +4899,7 @@ |
4900 | 4900 | <li class="toclevel-1 tocsection-4"><a href="#text_.27_text"><span class="tocnumber">4</span> <span class="toctext">text ' text</span></a></li> |
4901 | 4901 | <li class="toclevel-1 tocsection-5"><a href="#text_.22_text"><span class="tocnumber">5</span> <span class="toctext">text " text</span></a></li> |
4902 | 4902 | </ul> |
4903 | | -</div> |
| 4903 | +</td></tr></table> |
4904 | 4904 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: text > text">edit</a>]</span> <span class="mw-headline" id="text_.3E_text"> text > text </span></h2> |
4905 | 4905 | <p>section 1 |
4906 | 4906 | </p> |
— | — | @@ -6119,11 +6119,11 @@ |
6120 | 6120 | http://__TOC__ |
6121 | 6121 | !! result |
6122 | 6122 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: onmouseover=">edit</a>]</span> <span class="mw-headline" id="onmouseover.3D"> onmouseover= </span></h2> |
6123 | | -http://<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 6123 | +http://<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
6124 | 6124 | <ul> |
6125 | 6125 | <li class="toclevel-1 tocsection-1"><a href="#onmouseover.3D"><span class="tocnumber">1</span> <span class="toctext">onmouseover=</span></a></li> |
6126 | 6126 | </ul> |
6127 | | -</div> |
| 6127 | +</td></tr></table> |
6128 | 6128 | |
6129 | 6129 | !! end |
6130 | 6130 | |
— | — | @@ -7953,7 +7953,7 @@ |
7954 | 7954 | =====5===== |
7955 | 7955 | ==2== |
7956 | 7956 | !! result |
7957 | | -<div id="toc" class="toc"><div id="toctitle"><h2>Contents</h2></div> |
| 7957 | +<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>Contents</h2></div> |
7958 | 7958 | <ul> |
7959 | 7959 | <li class="toclevel-1 tocsection-1"><a href="#2"><span class="tocnumber">1</span> <span class="toctext">2</span></a> |
7960 | 7960 | <ul> |
— | — | @@ -7968,7 +7968,7 @@ |
7969 | 7969 | </ul> |
7970 | 7970 | </li> |
7971 | 7971 | </ul> |
7972 | | -</div> |
| 7972 | +</td></tr></table> |
7973 | 7973 | <h2><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=1" title="Edit section: 2">edit</a>]</span> <span class="mw-headline" id="2">2</span></h2> |
7974 | 7974 | <h6><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=2" title="Edit section: 6">edit</a>]</span> <span class="mw-headline" id="6">6</span></h6> |
7975 | 7975 | <h3><span class="editsection">[<a href="https://www.mediawiki.org/index.php?title=Parser_test&action=edit&section=3" title="Edit section: 3">edit</a>]</span> <span class="mw-headline" id="3">3</span></h3> |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -28,7 +28,6 @@ |
29 | 29 | $wgUploadMissingFileUrl is not set. The first was used for this |
30 | 30 | until the second was introduced in 1.17. |
31 | 31 | * (bug 25355) Parser generates edit section links for special pages |
32 | | -* (bug 13766) Change table of content syntax to be semantically correct |
33 | 32 | |
34 | 33 | === API changes in 1.19 === |
35 | 34 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1456,10 +1456,10 @@ |
1457 | 1457 | static function tocList( $toc, $lang = false ) { |
1458 | 1458 | $title = wfMsgExt( 'toc', array( 'language' => $lang, 'escape' ) ); |
1459 | 1459 | return |
1460 | | - '<div id="toc" class="toc">' |
| 1460 | + '<table id="toc" class="toc"><tr><td>' |
1461 | 1461 | . '<div id="toctitle"><h2>' . $title . "</h2></div>\n" |
1462 | 1462 | . $toc |
1463 | | - . "</ul>\n</div>\n"; |
| 1463 | + . "</ul>\n</td></tr></table>\n"; |
1464 | 1464 | } |
1465 | 1465 | |
1466 | 1466 | /** |