Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -441,7 +441,7 @@ |
442 | 442 | !! input |
443 | 443 | ; http://example.com/ : definition |
444 | 444 | !! result |
445 | | -<dl><dt> <a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> </dt><dd> definition |
| 445 | +<dl><dt> <a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> </dt><dd> definition |
446 | 446 | </dd></dl> |
447 | 447 | |
448 | 448 | !! end |
— | — | @@ -451,7 +451,7 @@ |
452 | 452 | !! input |
453 | 453 | ;[http://www.example.com/ Example]:Something about it |
454 | 454 | !! result |
455 | | -<dl><dt><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow">Example</a></dt><dd>Something about it |
| 455 | +<dl><dt><a href="http://www.example.com/" class="external text" rel="nofollow">Example</a></dt><dd>Something about it |
456 | 456 | </dd></dl> |
457 | 457 | |
458 | 458 | !! end |
— | — | @@ -472,7 +472,7 @@ |
473 | 473 | !! input |
474 | 474 | ; news:alt.wikipedia.rox: This isn't even a real newsgroup! |
475 | 475 | !! result |
476 | | -<dl><dt> <a href="news:alt.wikipedia.rox" class="external free" title="news:alt.wikipedia.rox" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup! |
| 476 | +<dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a></dt><dd> This isn't even a real newsgroup! |
477 | 477 | </dd></dl> |
478 | 478 | |
479 | 479 | !! end |
— | — | @@ -482,7 +482,7 @@ |
483 | 483 | !! input |
484 | 484 | ; news:alt.wikipedia.rox -- don't crash or enter an infinite loop |
485 | 485 | !! result |
486 | | -<dl><dt> <a href="news:alt.wikipedia.rox" class="external free" title="news:alt.wikipedia.rox" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop |
| 486 | +<dl><dt> <a href="news:alt.wikipedia.rox" class="external free" rel="nofollow">news:alt.wikipedia.rox</a> -- don't crash or enter an infinite loop |
487 | 487 | </dt></dl> |
488 | 488 | |
489 | 489 | !! end |
— | — | @@ -492,7 +492,7 @@ |
493 | 493 | !! input |
494 | 494 | ; [http://www.wikipedia2.org/ Wikipedia : The Next Generation]: OK, I made that up |
495 | 495 | !! result |
496 | | -<dl><dt> <a href="http://www.wikipedia2.org/" class="external text" title="http://www.wikipedia2.org/" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up |
| 496 | +<dl><dt> <a href="http://www.wikipedia2.org/" class="external text" rel="nofollow">Wikipedia : The Next Generation</a></dt><dd> OK, I made that up |
497 | 497 | </dd></dl> |
498 | 498 | |
499 | 499 | !! end |
— | — | @@ -527,7 +527,7 @@ |
528 | 528 | !! input |
529 | 529 | Non-bracketed: http://example.com |
530 | 530 | !! result |
531 | | -<p>Non-bracketed: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> |
| 531 | +<p>Non-bracketed: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> |
532 | 532 | </p> |
533 | 533 | !! end |
534 | 534 | |
— | — | @@ -538,9 +538,9 @@ |
539 | 539 | Numbered: [http://example.net] |
540 | 540 | Numbered: [http://example.com] |
541 | 541 | !! result |
542 | | -<p>Numbered: <a href="http://example.com" class="external autonumber" title="http://example.com" rel="nofollow">[1]</a> |
543 | | -Numbered: <a href="http://example.net" class="external autonumber" title="http://example.net" rel="nofollow">[2]</a> |
544 | | -Numbered: <a href="http://example.com" class="external autonumber" title="http://example.com" rel="nofollow">[3]</a> |
| 542 | +<p>Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[1]</a> |
| 543 | +Numbered: <a href="http://example.net" class="external autonumber" rel="nofollow">[2]</a> |
| 544 | +Numbered: <a href="http://example.com" class="external autonumber" rel="nofollow">[3]</a> |
545 | 545 | </p> |
546 | 546 | !!end |
547 | 547 | |
— | — | @@ -549,7 +549,7 @@ |
550 | 550 | !! input |
551 | 551 | Specified text: [http://example.com link] |
552 | 552 | !! result |
553 | | -<p>Specified text: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow">link</a> |
| 553 | +<p>Specified text: <a href="http://example.com" class="external text" rel="nofollow">link</a> |
554 | 554 | </p> |
555 | 555 | !!end |
556 | 556 | |
— | — | @@ -558,7 +558,7 @@ |
559 | 559 | !! input |
560 | 560 | Linktrails should not work for external links: [http://example.com link]s |
561 | 561 | !! result |
562 | | -<p>Linktrails should not work for external links: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow">link</a>s |
| 562 | +<p>Linktrails should not work for external links: <a href="http://example.com" class="external text" rel="nofollow">link</a>s |
563 | 563 | </p> |
564 | 564 | !! end |
565 | 565 | |
— | — | @@ -567,7 +567,7 @@ |
568 | 568 | !! input |
569 | 569 | http://example.com/1$2345 |
570 | 570 | !! result |
571 | | -<p><a href="http://example.com/1$2345" class="external free" title="http://example.com/1$2345" rel="nofollow">http://example.com/1$2345</a> |
| 571 | +<p><a href="http://example.com/1$2345" class="external free" rel="nofollow">http://example.com/1$2345</a> |
572 | 572 | </p> |
573 | 573 | !! end |
574 | 574 | |
— | — | @@ -576,7 +576,7 @@ |
577 | 577 | !! input |
578 | 578 | [http://example.com/1$2345] |
579 | 579 | !! result |
580 | | -<p><a href="http://example.com/1$2345" class="external autonumber" title="http://example.com/1$2345" rel="nofollow">[1]</a> |
| 580 | +<p><a href="http://example.com/1$2345" class="external autonumber" rel="nofollow">[1]</a> |
581 | 581 | </p> |
582 | 582 | !!end |
583 | 583 | |
— | — | @@ -585,7 +585,7 @@ |
586 | 586 | !! input |
587 | 587 | http://example.com/1[2345 |
588 | 588 | !! result |
589 | | -<p><a href="http://example.com/1" class="external free" title="http://example.com/1" rel="nofollow">http://example.com/1</a>[2345 |
| 589 | +<p><a href="http://example.com/1" class="external free" rel="nofollow">http://example.com/1</a>[2345 |
590 | 590 | </p> |
591 | 591 | !! end |
592 | 592 | |
— | — | @@ -594,7 +594,7 @@ |
595 | 595 | !! input |
596 | 596 | [http://example.com/1[2345] |
597 | 597 | !! result |
598 | | -<p><a href="http://example.com/1" class="external text" title="http://example.com/1" rel="nofollow">[2345</a> |
| 598 | +<p><a href="http://example.com/1" class="external text" rel="nofollow">[2345</a> |
599 | 599 | </p> |
600 | 600 | !!end |
601 | 601 | |
— | — | @@ -603,7 +603,7 @@ |
604 | 604 | !!input |
605 | 605 | [http://example.com/ <nowiki>''example site''</nowiki>] |
606 | 606 | !! result |
607 | | -<p><a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">''example site''</a> |
| 607 | +<p><a href="http://example.com/" class="external text" rel="nofollow">''example site''</a> |
608 | 608 | </p> |
609 | 609 | !! end |
610 | 610 | |
— | — | @@ -613,7 +613,7 @@ |
614 | 614 | [http://example.com/ first |
615 | 615 | second] |
616 | 616 | !! result |
617 | | -<p>[<a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> first |
| 617 | +<p>[<a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> first |
618 | 618 | second] |
619 | 619 | </p> |
620 | 620 | !!end |
— | — | @@ -641,7 +641,7 @@ |
642 | 642 | !! input |
643 | 643 | Link to non-http image, no img tag: ftp://example.com/test.jpg |
644 | 644 | !! result |
645 | | -<p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class="external free" title="ftp://example.com/test.jpg" rel="nofollow">ftp://example.com/test.jpg</a> |
| 645 | +<p>Link to non-http image, no img tag: <a href="ftp://example.com/test.jpg" class="external free" rel="nofollow">ftp://example.com/test.jpg</a> |
646 | 646 | </p> |
647 | 647 | !! end |
648 | 648 | |
— | — | @@ -650,7 +650,7 @@ |
651 | 651 | !! input |
652 | 652 | Terminating separator: http://example.com/thing, |
653 | 653 | !! result |
654 | | -<p>Terminating separator: <a href="http://example.com/thing" class="external free" title="http://example.com/thing" rel="nofollow">http://example.com/thing</a>, |
| 654 | +<p>Terminating separator: <a href="http://example.com/thing" class="external free" rel="nofollow">http://example.com/thing</a>, |
655 | 655 | </p> |
656 | 656 | !! end |
657 | 657 | |
— | — | @@ -659,7 +659,7 @@ |
660 | 660 | !! input |
661 | 661 | Intervening separator: http://example.com/1,2,3 |
662 | 662 | !! result |
663 | | -<p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" title="http://example.com/1,2,3" rel="nofollow">http://example.com/1,2,3</a> |
| 663 | +<p>Intervening separator: <a href="http://example.com/1,2,3" class="external free" rel="nofollow">http://example.com/1,2,3</a> |
664 | 664 | </p> |
665 | 665 | !! end |
666 | 666 | |
— | — | @@ -668,7 +668,7 @@ |
669 | 669 | !! input |
670 | 670 | Old bug with URL in query: [http://example.com/thing?url=http://example.com link] |
671 | 671 | !! result |
672 | | -<p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class="external text" title="http://example.com/thing?url=http://example.com" rel="nofollow">link</a> |
| 672 | +<p>Old bug with URL in query: <a href="http://example.com/thing?url=http://example.com" class="external text" rel="nofollow">link</a> |
673 | 673 | </p> |
674 | 674 | !! end |
675 | 675 | |
— | — | @@ -677,7 +677,7 @@ |
678 | 678 | !! input |
679 | 679 | And again with mixed protocols: [ftp://example.com?url=http://example.com link] |
680 | 680 | !! result |
681 | | -<p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class="external text" title="ftp://example.com?url=http://example.com" rel="nofollow">link</a> |
| 681 | +<p>And again with mixed protocols: <a href="ftp://example.com?url=http://example.com" class="external text" rel="nofollow">link</a> |
682 | 682 | </p> |
683 | 683 | !!end |
684 | 684 | |
— | — | @@ -686,7 +686,7 @@ |
687 | 687 | !! input |
688 | 688 | URL in text: [http://example.com http://example.com] |
689 | 689 | !! result |
690 | | -<p>URL in text: <a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> |
| 690 | +<p>URL in text: <a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> |
691 | 691 | </p> |
692 | 692 | !! end |
693 | 693 | |
— | — | @@ -695,7 +695,7 @@ |
696 | 696 | !! input |
697 | 697 | ja-style clickable images: [http://example.com http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png] |
698 | 698 | !! result |
699 | | -<p>ja-style clickable images: <a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a> |
| 699 | +<p>ja-style clickable images: <a href="http://example.com" class="external text" rel="nofollow"><img src="http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png" alt="Ncwikicol.png" /></a> |
700 | 700 | </p> |
701 | 701 | !!end |
702 | 702 | |
— | — | @@ -704,7 +704,7 @@ |
705 | 705 | !! input |
706 | 706 | Old & use: http://x&y |
707 | 707 | !! result |
708 | | -<p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a> |
| 708 | +<p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a> |
709 | 709 | </p> |
710 | 710 | !! end |
711 | 711 | |
— | — | @@ -713,7 +713,7 @@ |
714 | 714 | !! input |
715 | 715 | Old & use: http://x&y |
716 | 716 | !! result |
717 | | -<p>Old & use: <a href="http://x&y" class="external free" title="http://x&y" rel="nofollow">http://x&y</a> |
| 717 | +<p>Old & use: <a href="http://x&y" class="external free" rel="nofollow">http://x&y</a> |
718 | 718 | </p> |
719 | 719 | !! end |
720 | 720 | |
— | — | @@ -722,7 +722,7 @@ |
723 | 723 | !! input |
724 | 724 | http://example.com/?foo=bar |
725 | 725 | !! result |
726 | | -<p><a href="http://example.com/?foo=bar" class="external free" title="http://example.com/?foo=bar" rel="nofollow">http://example.com/?foo=bar</a> |
| 726 | +<p><a href="http://example.com/?foo=bar" class="external free" rel="nofollow">http://example.com/?foo=bar</a> |
727 | 727 | </p> |
728 | 728 | !! end |
729 | 729 | |
— | — | @@ -731,7 +731,7 @@ |
732 | 732 | !! input |
733 | 733 | Old & use: [http://x&y] |
734 | 734 | !! result |
735 | | -<p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a> |
| 735 | +<p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a> |
736 | 736 | </p> |
737 | 737 | !! end |
738 | 738 | |
— | — | @@ -740,7 +740,7 @@ |
741 | 741 | !! input |
742 | 742 | Old & use: [http://x&y] |
743 | 743 | !! result |
744 | | -<p>Old & use: <a href="http://x&y" class="external autonumber" title="http://x&y" rel="nofollow">[1]</a> |
| 744 | +<p>Old & use: <a href="http://x&y" class="external autonumber" rel="nofollow">[1]</a> |
745 | 745 | </p> |
746 | 746 | !! end |
747 | 747 | |
— | — | @@ -749,7 +749,7 @@ |
750 | 750 | !! input |
751 | 751 | [http://example.com/?foo=bar] |
752 | 752 | !! result |
753 | | -<p><a href="http://example.com/?foo=bar" class="external autonumber" title="http://example.com/?foo=bar" rel="nofollow">[1]</a> |
| 753 | +<p><a href="http://example.com/?foo=bar" class="external autonumber" rel="nofollow">[1]</a> |
754 | 754 | </p> |
755 | 755 | !! end |
756 | 756 | |
— | — | @@ -758,7 +758,7 @@ |
759 | 759 | !! input |
760 | 760 | [http://e‌xample.com/] |
761 | 761 | !! result |
762 | | -<p><a href="http://example.com/" class="external autonumber" title="http://example.com/" rel="nofollow">[1]</a> |
| 762 | +<p><a href="http://example.com/" class="external autonumber" rel="nofollow">[1]</a> |
763 | 763 | </p> |
764 | 764 | !! end |
765 | 765 | |
— | — | @@ -767,7 +767,7 @@ |
768 | 768 | !! input |
769 | 769 | http://e‌xample.com/ |
770 | 770 | !! result |
771 | | -<p><a href="http://example.com/" class="external free" title="http://example.com/" rel="nofollow">http://example.com/</a> |
| 771 | +<p><a href="http://example.com/" class="external free" rel="nofollow">http://example.com/</a> |
772 | 772 | </p> |
773 | 773 | !! end |
774 | 774 | |
— | — | @@ -776,7 +776,7 @@ |
777 | 777 | !! input |
778 | 778 | http://www.jpeg.org |
779 | 779 | !!result |
780 | | -<p><a href="http://www.jpeg.org" class="external free" title="http://www.jpeg.org" rel="nofollow">http://www.jpeg.org</a> |
| 780 | +<p><a href="http://www.jpeg.org" class="external free" rel="nofollow">http://www.jpeg.org</a> |
781 | 781 | </p> |
782 | 782 | !! end |
783 | 783 | |
— | — | @@ -785,7 +785,7 @@ |
786 | 786 | !! input |
787 | 787 | [http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp] |
788 | 788 | !! result |
789 | | -<p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" title="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" rel="nofollow">[1]</a> |
| 789 | +<p><a href="http://www.unausa.org/newindex.asp?place=http://www.unausa.org/programs/mun.asp" class="external autonumber" rel="nofollow">[1]</a> |
790 | 790 | </p> |
791 | 791 | !! end |
792 | 792 | |
— | — | @@ -794,7 +794,7 @@ |
795 | 795 | !! input |
796 | 796 | [http://www.example.com/foo http://www.example.com/bar] |
797 | 797 | !! result |
798 | | -<p><a href="http://www.example.com/foo" class="external text" title="http://www.example.com/foo" rel="nofollow">http://www.example.com/bar</a> |
| 798 | +<p><a href="http://www.example.com/foo" class="external text" rel="nofollow">http://www.example.com/bar</a> |
799 | 799 | </p> |
800 | 800 | !! end |
801 | 801 | |
— | — | @@ -803,7 +803,7 @@ |
804 | 804 | !! input |
805 | 805 | http://www.example.com/foo?=http://www.example.com/bar |
806 | 806 | !! result |
807 | | -<p><a href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" title="http://www.example.com/foo?=http://www.example.com/bar" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a> |
| 807 | +<p><a href="http://www.example.com/foo?=http://www.example.com/bar" class="external free" rel="nofollow">http://www.example.com/foo?=http://www.example.com/bar</a> |
808 | 808 | </p> |
809 | 809 | !! end |
810 | 810 | |
— | — | @@ -812,7 +812,7 @@ |
813 | 813 | !! input |
814 | 814 | http://www.example.com/<hello> |
815 | 815 | !! result |
816 | | -<p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><hello> |
| 816 | +<p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><hello> |
817 | 817 | </p> |
818 | 818 | !!end |
819 | 819 | |
— | — | @@ -821,7 +821,7 @@ |
822 | 822 | !! input |
823 | 823 | http://www.example.com/<b>html</b> |
824 | 824 | !! result |
825 | | -<p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a><b>html</b> |
| 825 | +<p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a><b>html</b> |
826 | 826 | </p> |
827 | 827 | !!end |
828 | 828 | |
— | — | @@ -830,7 +830,7 @@ |
831 | 831 | !! input |
832 | 832 | [http://www.example.com/<hello> stuff] |
833 | 833 | !! result |
834 | | -<p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><hello> stuff</a> |
| 834 | +<p><a href="http://www.example.com/" class="external text" rel="nofollow"><hello> stuff</a> |
835 | 835 | </p> |
836 | 836 | !!end |
837 | 837 | |
— | — | @@ -839,7 +839,7 @@ |
840 | 840 | !! input |
841 | 841 | [http://www.example.com/<b>html</b> stuff] |
842 | 842 | !! result |
843 | | -<p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow"><b>html</b> stuff</a> |
| 843 | +<p><a href="http://www.example.com/" class="external text" rel="nofollow"><b>html</b> stuff</a> |
844 | 844 | </p> |
845 | 845 | !!end |
846 | 846 | |
— | — | @@ -848,7 +848,7 @@ |
849 | 849 | !! input |
850 | 850 | http://www.example.com/"hello" |
851 | 851 | !! result |
852 | | -<p><a href="http://www.example.com/" class="external free" title="http://www.example.com/" rel="nofollow">http://www.example.com/</a>"hello" |
| 852 | +<p><a href="http://www.example.com/" class="external free" rel="nofollow">http://www.example.com/</a>"hello" |
853 | 853 | </p> |
854 | 854 | !!end |
855 | 855 | |
— | — | @@ -857,7 +857,7 @@ |
858 | 858 | !! input |
859 | 859 | [http://www.example.com/"hello" stuff] |
860 | 860 | !! result |
861 | | -<p><a href="http://www.example.com/" class="external text" title="http://www.example.com/" rel="nofollow">"hello" stuff</a> |
| 861 | +<p><a href="http://www.example.com/" class="external text" rel="nofollow">"hello" stuff</a> |
862 | 862 | </p> |
863 | 863 | !!end |
864 | 864 | |
— | — | @@ -869,7 +869,7 @@ |
870 | 870 | !! input |
871 | 871 | [http://www.example.com test] |
872 | 872 | !! result |
873 | | -<p>[<a href="http://www.example.com" class="external free" title="http://www.example.com" rel="nofollow">http://www.example.com</a> test] |
| 873 | +<p>[<a href="http://www.example.com" class="external free" rel="nofollow">http://www.example.com</a> test] |
874 | 874 | </p> |
875 | 875 | !! end |
876 | 876 | |
— | — | @@ -878,7 +878,7 @@ |
879 | 879 | !! input |
880 | 880 | [http://www.example.com test] |
881 | 881 | !! result |
882 | | -<p><a href="http://www.example.com" class="external text" title="http://www.example.com" rel="nofollow">test</a> |
| 882 | +<p><a href="http://www.example.com" class="external text" rel="nofollow">test</a> |
883 | 883 | </p> |
884 | 884 | !! end |
885 | 885 | |
— | — | @@ -887,7 +887,7 @@ |
888 | 888 | !! input |
889 | 889 | [http://example.com [[wikilink]] embedded in ext link] |
890 | 890 | !! result |
891 | | -<p><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"></a><a href="https://www.mediawiki.org/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"> embedded in ext link</a> |
| 891 | +<p><a href="http://example.com" class="external text" rel="nofollow"></a><a href="https://www.mediawiki.org/index.php?title=Wikilink&action=edit&redlink=1" class="new" title="Wikilink (page does not exist)">wikilink</a><a href="http://example.com" class="external text" rel="nofollow"> embedded in ext link</a> |
892 | 892 | </p> |
893 | 893 | !! end |
894 | 894 | |
— | — | @@ -912,11 +912,11 @@ |
913 | 913 | ''Something [http://example.com mixed''''', even bold]''' |
914 | 914 | '''''Now [http://example.com both'''''] |
915 | 915 | !! result |
916 | | -<p><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>text</i></a> |
917 | | -<a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><b>text</b></a> |
918 | | -<i>Something </i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>in italic</i></a> |
919 | | -<i>Something </i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i>mixed</i><b>, even bold</b></a> |
920 | | -<i><b>Now </b></i><a href="http://example.com" class="external text" title="http://example.com" rel="nofollow"><i><b>both</b></i></a> |
| 916 | +<p><a href="http://example.com" class="external text" rel="nofollow"><i>text</i></a> |
| 917 | +<a href="http://example.com" class="external text" rel="nofollow"><b>text</b></a> |
| 918 | +<i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>in italic</i></a> |
| 919 | +<i>Something </i><a href="http://example.com" class="external text" rel="nofollow"><i>mixed</i><b>, even bold</b></a> |
| 920 | +<i><b>Now </b></i><a href="http://example.com" class="external text" rel="nofollow"><i><b>both</b></i></a> |
921 | 921 | </p> |
922 | 922 | !! end |
923 | 923 | |
— | — | @@ -926,7 +926,7 @@ |
927 | 927 | !! input |
928 | 928 | http://www.example.com/?title=AT%26T |
929 | 929 | !! result |
930 | | -<p><a href="http://www.example.com/?title=AT%26T" class="external free" title="http://www.example.com/?title=AT%26T" rel="nofollow">http://www.example.com/?title=AT%26T</a> |
| 930 | +<p><a href="http://www.example.com/?title=AT%26T" class="external free" rel="nofollow">http://www.example.com/?title=AT%26T</a> |
931 | 931 | </p> |
932 | 932 | !! end |
933 | 933 | |
— | — | @@ -935,7 +935,7 @@ |
936 | 936 | !! input |
937 | 937 | http://www.example.com/?title=100%25_Bran |
938 | 938 | !! result |
939 | | -<p><a href="http://www.example.com/?title=100%25_Bran" class="external free" title="http://www.example.com/?title=100%25_Bran" rel="nofollow">http://www.example.com/?title=100%25_Bran</a> |
| 939 | +<p><a href="http://www.example.com/?title=100%25_Bran" class="external free" rel="nofollow">http://www.example.com/?title=100%25_Bran</a> |
940 | 940 | </p> |
941 | 941 | !! end |
942 | 942 | |
— | — | @@ -944,7 +944,7 @@ |
945 | 945 | !! input |
946 | 946 | http://www.example.com/?title=Ben-Hur_%281959_film%29 |
947 | 947 | !! result |
948 | | -<p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a> |
| 948 | +<p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external free" rel="nofollow">http://www.example.com/?title=Ben-Hur_%281959_film%29</a> |
949 | 949 | </p> |
950 | 950 | !! end |
951 | 951 | |
— | — | @@ -954,7 +954,7 @@ |
955 | 955 | !! input |
956 | 956 | [http://www.example.com/?title=AT%26T] |
957 | 957 | !! result |
958 | | -<p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" title="http://www.example.com/?title=AT%26T" rel="nofollow">[1]</a> |
| 958 | +<p><a href="http://www.example.com/?title=AT%26T" class="external autonumber" rel="nofollow">[1]</a> |
959 | 959 | </p> |
960 | 960 | !! end |
961 | 961 | |
— | — | @@ -963,7 +963,7 @@ |
964 | 964 | !! input |
965 | 965 | [http://www.example.com/?title=100%25_Bran] |
966 | 966 | !! result |
967 | | -<p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" title="http://www.example.com/?title=100%25_Bran" rel="nofollow">[1]</a> |
| 967 | +<p><a href="http://www.example.com/?title=100%25_Bran" class="external autonumber" rel="nofollow">[1]</a> |
968 | 968 | </p> |
969 | 969 | !! end |
970 | 970 | |
— | — | @@ -972,7 +972,7 @@ |
973 | 973 | !! input |
974 | 974 | [http://www.example.com/?title=Ben-Hur_%281959_film%29] |
975 | 975 | !! result |
976 | | -<p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">[1]</a> |
| 976 | +<p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external autonumber" rel="nofollow">[1]</a> |
977 | 977 | </p> |
978 | 978 | !! end |
979 | 979 | |
— | — | @@ -982,7 +982,7 @@ |
983 | 983 | !! input |
984 | 984 | [http://www.example.com/?title=AT%26T link] |
985 | 985 | !! result |
986 | | -<p><a href="http://www.example.com/?title=AT%26T" class="external text" title="http://www.example.com/?title=AT%26T" rel="nofollow">link</a> |
| 986 | +<p><a href="http://www.example.com/?title=AT%26T" class="external text" rel="nofollow">link</a> |
987 | 987 | </p> |
988 | 988 | !! end |
989 | 989 | |
— | — | @@ -991,7 +991,7 @@ |
992 | 992 | !! input |
993 | 993 | [http://www.example.com/?title=100%25_Bran link] |
994 | 994 | !! result |
995 | | -<p><a href="http://www.example.com/?title=100%25_Bran" class="external text" title="http://www.example.com/?title=100%25_Bran" rel="nofollow">link</a> |
| 995 | +<p><a href="http://www.example.com/?title=100%25_Bran" class="external text" rel="nofollow">link</a> |
996 | 996 | </p> |
997 | 997 | !! end |
998 | 998 | |
— | — | @@ -1000,7 +1000,7 @@ |
1001 | 1001 | !! input |
1002 | 1002 | [http://www.example.com/?title=Ben-Hur_%281959_film%29 link] |
1003 | 1003 | !! result |
1004 | | -<p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" title="http://www.example.com/?title=Ben-Hur_%281959_film%29" rel="nofollow">link</a> |
| 1004 | +<p><a href="http://www.example.com/?title=Ben-Hur_%281959_film%29" class="external text" rel="nofollow">link</a> |
1005 | 1005 | </p> |
1006 | 1006 | !! end |
1007 | 1007 | |
— | — | @@ -1009,7 +1009,7 @@ |
1010 | 1010 | !! input |
1011 | 1011 | Some [http://example.com/ pretty ''italics'' and stuff]! |
1012 | 1012 | !! result |
1013 | | -<p>Some <a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow">pretty <i>italics</i> and stuff</a>! |
| 1013 | +<p>Some <a href="http://example.com/" class="external text" rel="nofollow">pretty <i>italics</i> and stuff</a>! |
1014 | 1014 | </p> |
1015 | 1015 | !! end |
1016 | 1016 | |
— | — | @@ -1018,7 +1018,7 @@ |
1019 | 1019 | !! input |
1020 | 1020 | ''Some [http://example.com/ pretty ''italics'' and stuff]!'' |
1021 | 1021 | !! result |
1022 | | -<p><i>Some </i><a href="http://example.com/" class="external text" title="http://example.com/" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i> |
| 1022 | +<p><i>Some </i><a href="http://example.com/" class="external text" rel="nofollow"><i>pretty </i>italics<i> and stuff</i></a><i>!</i> |
1023 | 1023 | </p> |
1024 | 1024 | !! end |
1025 | 1025 | |
— | — | @@ -1499,7 +1499,7 @@ |
1500 | 1500 | !! input |
1501 | 1501 | [[http://www.example.com]] |
1502 | 1502 | !! result |
1503 | | -<p>[<a href="http://www.example.com" class="external autonumber" title="http://www.example.com" rel="nofollow">[1]</a>] |
| 1503 | +<p>[<a href="http://www.example.com" class="external autonumber" rel="nofollow">[1]</a>] |
1504 | 1504 | </p> |
1505 | 1505 | !! end |
1506 | 1506 | |
— | — | @@ -1510,7 +1510,7 @@ |
1511 | 1511 | # ---- |
1512 | 1512 | # I'm changing it to match the current output--it arguably makes more |
1513 | 1513 | # sense in the light of the test above. Old expected result was: |
1514 | | -#<p>Piped link to URL: <a href="https://www.mediawiki.org/index.php?title=Http://www.example.com&action=edit" class="new" title="Http://www.example.com">an example URL</a> |
| 1514 | +#<p>Piped link to URL: <a href="https://www.mediawiki.org/index.php?title=Http://www.example.com&action=edit" class="new">an example URL</a> |
1515 | 1515 | #</p> |
1516 | 1516 | # But I think this test is bordering on "garbage in, garbage out" anyway. |
1517 | 1517 | # -- wtm |
— | — | @@ -1519,7 +1519,7 @@ |
1520 | 1520 | !! input |
1521 | 1521 | Piped link to URL: [[http://www.example.com|an example URL]] |
1522 | 1522 | !! result |
1523 | | -<p>Piped link to URL: [<a href="http://www.example.com|an" class="external text" title="http://www.example.com|an" rel="nofollow">example URL</a>] |
| 1523 | +<p>Piped link to URL: [<a href="http://www.example.com|an" class="external text" rel="nofollow">example URL</a>] |
1524 | 1524 | </p> |
1525 | 1525 | !! end |
1526 | 1526 | |
— | — | @@ -2030,7 +2030,7 @@ |
2031 | 2031 | !! input |
2032 | 2032 | {{SERVER}} |
2033 | 2033 | !! result |
2034 | | -<p><a href="http://localhost" class="external free" title="http://localhost" rel="nofollow">http://localhost</a> |
| 2034 | +<p><a href="http://localhost" class="external free" rel="nofollow">http://localhost</a> |
2035 | 2035 | </p> |
2036 | 2036 | !! end |
2037 | 2037 | |
— | — | @@ -2180,7 +2180,7 @@ |
2181 | 2181 | !! input |
2182 | 2182 | RFC 822 |
2183 | 2183 | !! result |
2184 | | -<p><a href="http://tools.ietf.org/html/rfc822" class="external" title="http://tools.ietf.org/html/rfc822">RFC 822</a> |
| 2184 | +<p><a href="http://tools.ietf.org/html/rfc822" class="external">RFC 822</a> |
2185 | 2185 | </p> |
2186 | 2186 | !! end |
2187 | 2187 | |
— | — | @@ -2198,7 +2198,7 @@ |
2199 | 2199 | !! input |
2200 | 2200 | PMID 1234 |
2201 | 2201 | !! result |
2202 | | -<p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external" title="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract">PMID 1234</a> |
| 2202 | +<p><a href="http://www.ncbi.nlm.nih.gov/pubmed/1234?dopt=Abstract" class="external">PMID 1234</a> |
2203 | 2203 | </p> |
2204 | 2204 | !! end |
2205 | 2205 | |
— | — | @@ -3269,7 +3269,7 @@ |
3270 | 3270 | !! input |
3271 | 3271 | [[Image:foobar.jpg|thumb|http://example.com]] |
3272 | 3272 | !! result |
3273 | | -<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a></div></div></div> |
| 3273 | +<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div> |
3274 | 3274 | |
3275 | 3275 | !! end |
3276 | 3276 | |
— | — | @@ -3278,7 +3278,7 @@ |
3279 | 3279 | !! input |
3280 | 3280 | [[Image:foobar.jpg|thumb|http://example.com|alt=Alteration]] |
3281 | 3281 | !! result |
3282 | | -<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a></div></div></div> |
| 3282 | +<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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="http://example.com" class="external free" rel="nofollow">http://example.com</a></div></div></div> |
3283 | 3283 | |
3284 | 3284 | !! end |
3285 | 3285 | |
— | — | @@ -3296,7 +3296,7 @@ |
3297 | 3297 | !! input |
3298 | 3298 | [[Image:foobar.jpg|thumb|This is RFC 12354]] |
3299 | 3299 | !! result |
3300 | | -<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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 href="http://tools.ietf.org/html/rfc12354" class="external" title="http://tools.ietf.org/html/rfc12354">RFC 12354</a></div></div></div> |
| 3300 | +<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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 href="http://tools.ietf.org/html/rfc12354" class="external">RFC 12354</a></div></div></div> |
3301 | 3301 | |
3302 | 3302 | !! end |
3303 | 3303 | |
— | — | @@ -3305,7 +3305,7 @@ |
3306 | 3306 | !! input |
3307 | 3307 | [[Image:foobar.jpg|thumb|Please mailto:nobody@example.com]] |
3308 | 3308 | !! result |
3309 | | -<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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 href="mailto:nobody@example.com" class="external free" title="mailto:nobody@example.com" rel="nofollow">mailto:nobody@example.com</a></div></div></div> |
| 3309 | +<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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 href="mailto:nobody@example.com" class="external free" rel="nofollow">mailto:nobody@example.com</a></div></div></div> |
3310 | 3310 | |
3311 | 3311 | !! end |
3312 | 3312 | |
— | — | @@ -3419,7 +3419,7 @@ |
3420 | 3420 | !! input |
3421 | 3421 | [[Image:Foobar.jpg|thumb|200px|This caption has [irc://example.net irc] and [https://example.com Secure] ext links in it.]] |
3422 | 3422 | !! result |
3423 | | -<div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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 href="irc://example.net" class="external text" title="irc://example.net" rel="nofollow">irc</a> and <a href="https://example.com" class="external text" title="https://example.com" rel="nofollow">Secure</a> ext links in it.</div></div></div> |
| 3423 | +<div class="thumb tright"><div class="thumbinner" style="width:202px;"><a href="https://www.mediawiki.org/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" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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 href="irc://example.net" class="external text" rel="nofollow">irc</a> and <a href="https://example.com" class="external text" rel="nofollow">Secure</a> ext links in it.</div></div></div> |
3424 | 3424 | |
3425 | 3425 | !! end |
3426 | 3426 | |
— | — | @@ -3822,7 +3822,7 @@ |
3823 | 3823 | !! input |
3824 | 3824 | http://example.com [[Image:foobar.jpg]] |
3825 | 3825 | !! result |
3826 | | -<p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> <a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> |
| 3826 | +<p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> <a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> |
3827 | 3827 | </p> |
3828 | 3828 | !!end |
3829 | 3829 | |
— | — | @@ -3831,7 +3831,7 @@ |
3832 | 3832 | !! input |
3833 | 3833 | http://example.com[[Image:foobar.jpg]] |
3834 | 3834 | !! result |
3835 | | -<p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a><a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> |
| 3835 | +<p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" class="image"><img alt="Foobar.jpg" src="http://example.com/images/3/3a/Foobar.jpg" width="1941" height="220" /></a> |
3836 | 3836 | </p> |
3837 | 3837 | !!end |
3838 | 3838 | |
— | — | @@ -3840,7 +3840,7 @@ |
3841 | 3841 | !! input |
3842 | 3842 | http://en.wikinews.org/wiki/Wikinews:Workplace |
3843 | 3843 | !! result |
3844 | | -<p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" title="http://en.wikinews.org/wiki/Wikinews:Workplace" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a> |
| 3844 | +<p><a href="http://en.wikinews.org/wiki/Wikinews:Workplace" class="external free" rel="nofollow">http://en.wikinews.org/wiki/Wikinews:Workplace</a> |
3845 | 3845 | </p> |
3846 | 3846 | !!end |
3847 | 3847 | |
— | — | @@ -4946,11 +4946,11 @@ |
4947 | 4947 | |
4948 | 4948 | mailto:inline@mail.tld |
4949 | 4949 | !! result |
4950 | | -<p><a href="http://first/" class="external autonumber" title="http://first/" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" title="http://second" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" title="ftp://ftp" rel="nofollow">[3]</a> |
4951 | | -</p><p><a href="ftp://inlineftp" class="external free" title="ftp://inlineftp" rel="nofollow">ftp://inlineftp</a> |
4952 | | -</p><p><a href="mailto:enclosed@mail.tld" class="external text" title="mailto:enclosed@mail.tld" rel="nofollow">With target</a> |
4953 | | -</p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" title="mailto:enclosed@mail.tld" rel="nofollow">[4]</a> |
4954 | | -</p><p><a href="mailto:inline@mail.tld" class="external free" title="mailto:inline@mail.tld" rel="nofollow">mailto:inline@mail.tld</a> |
| 4950 | +<p><a href="http://first/" class="external autonumber" rel="nofollow">[1]</a> <a href="http://second" class="external autonumber" rel="nofollow">[2]</a> <a href="ftp://ftp" class="external autonumber" rel="nofollow">[3]</a> |
| 4951 | +</p><p><a href="ftp://inlineftp" class="external free" rel="nofollow">ftp://inlineftp</a> |
| 4952 | +</p><p><a href="mailto:enclosed@mail.tld" class="external text" rel="nofollow">With target</a> |
| 4953 | +</p><p><a href="mailto:enclosed@mail.tld" class="external autonumber" rel="nofollow">[4]</a> |
| 4954 | +</p><p><a href="mailto:inline@mail.tld" class="external free" rel="nofollow">mailto:inline@mail.tld</a> |
4955 | 4955 | </p> |
4956 | 4956 | !! end |
4957 | 4957 | |
— | — | @@ -5030,7 +5030,7 @@ |
5031 | 5031 | !! result |
5032 | 5032 | <table> |
5033 | 5033 | <tr> |
5034 | | -<th> <a href="irc://{{ftp://a" class="external free" title="irc://{{ftp://a" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');" |
| 5034 | +<th> <a href="irc://{{ftp://a" class="external free" rel="nofollow">irc://{{ftp://a</a>" onmouseover="alert('hello world');" |
5035 | 5035 | </th><td> |
5036 | 5036 | </td> |
5037 | 5037 | </tr> |
— | — | @@ -5045,7 +5045,7 @@ |
5046 | 5046 | |
5047 | 5047 | {| |
5048 | 5048 | !!result |
5049 | | -<p><a href="http://===r:::https://b" class="external free" title="http://===r:::https://b" rel="nofollow">http://===r:::https://b</a> |
| 5049 | +<p><a href="http://===r:::https://b" class="external free" rel="nofollow">http://===r:::https://b</a> |
5050 | 5050 | </p> |
5051 | 5051 | <table> |
5052 | 5052 | <tr><td></td></tr> |
— | — | @@ -5109,7 +5109,7 @@ |
5110 | 5110 | !! input |
5111 | 5111 | http://example.com <nowiki>junk</nowiki> |
5112 | 5112 | !! result |
5113 | | -<p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a> junk |
| 5113 | +<p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a> junk |
5114 | 5114 | </p> |
5115 | 5115 | !!end |
5116 | 5116 | |
— | — | @@ -5119,7 +5119,7 @@ |
5120 | 5120 | !! input |
5121 | 5121 | http://example.com<nowiki>junk</nowiki> |
5122 | 5122 | !! result |
5123 | | -<p><a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a>junk |
| 5123 | +<p><a href="http://example.com" class="external free" rel="nofollow">http://example.com</a>junk |
5124 | 5124 | </p> |
5125 | 5125 | !!end |
5126 | 5126 | |
— | — | @@ -5129,7 +5129,7 @@ |
5130 | 5130 | !! input |
5131 | 5131 | http://example.com<pre>junk</pre> |
5132 | 5132 | !! result |
5133 | | -<a href="http://example.com" class="external free" title="http://example.com" rel="nofollow">http://example.com</a><pre>junk</pre> |
| 5133 | +<a href="http://example.com" class="external free" rel="nofollow">http://example.com</a><pre>junk</pre> |
5134 | 5134 | |
5135 | 5135 | !!end |
5136 | 5136 | |
— | — | @@ -6137,7 +6137,7 @@ |
6138 | 6138 | !! input |
6139 | 6139 | **irc://
a |
6140 | 6140 | !! result |
6141 | | -<ul><li><ul><li><a href="irc://%0Aa" class="external free" title="irc://%0Aa" rel="nofollow">irc://%0Aa</a> |
| 6141 | +<ul><li><ul><li><a href="irc://%0Aa" class="external free" rel="nofollow">irc://%0Aa</a> |
6142 | 6142 | </li></ul> |
6143 | 6143 | </li></ul> |
6144 | 6144 | |
— | — | @@ -6247,7 +6247,7 @@ |
6248 | 6248 | <td><div class="gallerybox" style="width: 155px;"> |
6249 | 6249 | <div style="height: 152px;">Image5.svg</div> |
6250 | 6250 | <div class="gallerytext"> |
6251 | | -<p><a href="http://///////" class="external free" title="http://///////" rel="nofollow">http://///////</a> |
| 6251 | +<p><a href="http://///////" class="external free" rel="nofollow">http://///////</a> |
6252 | 6252 | </p> |
6253 | 6253 | </div> |
6254 | 6254 | </div></td> |
— | — | @@ -6312,7 +6312,7 @@ |
6313 | 6313 | !! input |
6314 | 6314 | RFC RFC 1234 |
6315 | 6315 | !! result |
6316 | | -<p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external" title="http://tools.ietf.org/html/rfc1234">RFC 1234</a> |
| 6316 | +<p>RFC <a href="http://tools.ietf.org/html/rfc1234" class="external">RFC 1234</a> |
6317 | 6317 | </p> |
6318 | 6318 | !! end |
6319 | 6319 | |
— | — | @@ -6330,7 +6330,7 @@ |
6331 | 6331 | !! input |
6332 | 6332 | RFC 983 987 |
6333 | 6333 | !! result |
6334 | | -<p><a href="http://tools.ietf.org/html/rfc983" class="external" title="http://tools.ietf.org/html/rfc983">RFC 983</a> 987 |
| 6334 | +<p><a href="http://tools.ietf.org/html/rfc983" class="external">RFC 983</a> 987 |
6335 | 6335 | </p> |
6336 | 6336 | !! end |
6337 | 6337 | |
— | — | @@ -6422,7 +6422,7 @@ |
6423 | 6423 | !! input |
6424 | 6424 | [[image:Foobar.jpg|thumb|An [http://test/?param1=|left|¶m2=|x external] URL]] |
6425 | 6425 | !! result |
6426 | | -<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" class="image"><img alt="An external URL" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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 href="http://test/?param1=|left|&param2=|x" class="external text" title="http://test/?param1=|left|&param2=|x" rel="nofollow">external</a> URL</div></div></div> |
| 6426 | +<div class="thumb tright"><div class="thumbinner" style="width:182px;"><a href="https://www.mediawiki.org/wiki/File:Foobar.jpg" class="image"><img alt="An external URL" src="http://example.com/images/thumb/3/3a/Foobar.jpg/180px-Foobar.jpg" width="180" height="20" class="thumbimage" /></a> <div class="thumbcaption"><div class="magnify"><a href="https://www.mediawiki.org/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 href="http://test/?param1=|left|&param2=|x" class="external text" rel="nofollow">external</a> URL</div></div></div> |
6427 | 6427 | |
6428 | 6428 | !!end |
6429 | 6429 | |
— | — | @@ -7238,7 +7238,7 @@ |
7239 | 7239 | !! input |
7240 | 7240 | [http://en.wikipedia.org/] |
7241 | 7241 | !! result |
7242 | | -<p><a href="http://en.wikipedia.org/" class="external autonumber" title="http://en.wikipedia.org/" rel="nofollow">[۱]</a> |
| 7242 | +<p><a href="http://en.wikipedia.org/" class="external autonumber" rel="nofollow">[۱]</a> |
7243 | 7243 | </p> |
7244 | 7244 | !! end |
7245 | 7245 | |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -961,7 +961,7 @@ |
962 | 962 | } |
963 | 963 | $url = wfMsg( $urlmsg, $id); |
964 | 964 | $sk = $this->mOptions->getSkin(); |
965 | | - $la = $sk->getExternalLinkAttributes( $url, $keyword.$id ); |
| 965 | + $la = $sk->getExternalLinkAttributes(); |
966 | 966 | return "<a href=\"{$url}\"{$la}>{$keyword} {$id}</a>"; |
967 | 967 | } elseif ( isset( $m[5] ) && $m[5] !== '' ) { |
968 | 968 | # ISBN |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -21,13 +21,11 @@ |
22 | 22 | * Get the appropriate HTML attributes to add to the "a" element of an ex- |
23 | 23 | * ternal link, as created by [wikisyntax]. |
24 | 24 | * |
25 | | - * @param string $title The (unescaped) title text for the link |
26 | | - * @param string $unused Unused |
27 | 25 | * @param string $class The contents of the class attribute; if an empty |
28 | 26 | * string is passed, which is the default value, defaults to 'external'. |
29 | 27 | */ |
30 | | - function getExternalLinkAttributes( $title, $unused = null, $class='' ) { |
31 | | - return $this->getLinkAttributesInternal( $title, $class, 'external' ); |
| 28 | + function getExternalLinkAttributes( $class = 'external' ) { |
| 29 | + return $this->getLinkAttributesInternal( '', $class ); |
32 | 30 | } |
33 | 31 | |
34 | 32 | /** |
— | — | @@ -40,7 +38,7 @@ |
41 | 39 | * @param string $class The contents of the class attribute; if an empty |
42 | 40 | * string is passed, which is the default value, defaults to 'external'. |
43 | 41 | */ |
44 | | - function getInterwikiLinkAttributes( $title, $unused = null, $class='' ) { |
| 42 | + function getInterwikiLinkAttributes( $title, $unused = null, $class = 'external' ) { |
45 | 43 | global $wgContLang; |
46 | 44 | |
47 | 45 | # FIXME: We have a whole bunch of handling here that doesn't happen in |
— | — | @@ -49,7 +47,7 @@ |
50 | 48 | $title = $wgContLang->checkTitleEncoding( $title ); |
51 | 49 | $title = preg_replace( '/[\\x00-\\x1f]/', ' ', $title ); |
52 | 50 | |
53 | | - return $this->getLinkAttributesInternal( $title, $class, 'external' ); |
| 51 | + return $this->getLinkAttributesInternal( $title, $class ); |
54 | 52 | } |
55 | 53 | |
56 | 54 | /** |
— | — | @@ -87,14 +85,8 @@ |
88 | 86 | /** |
89 | 87 | * Common code for getLinkAttributesX functions |
90 | 88 | */ |
91 | | - private function getLinkAttributesInternal( $title, $class, $classDefault = false ) { |
| 89 | + private function getLinkAttributesInternal( $title, $class ) { |
92 | 90 | $title = htmlspecialchars( $title ); |
93 | | - if ( $class === '' and $classDefault !== false ) { |
94 | | - # FIXME: Parameter defaults the hard way! We should just have |
95 | | - # $class = 'external' or whatever as the default in the externally- |
96 | | - # exposed functions, not $class = ''. |
97 | | - $class = $classDefault; |
98 | | - } |
99 | 91 | $class = htmlspecialchars( $class ); |
100 | 92 | $r = ''; |
101 | 93 | if ( $class != '' ) { |
— | — | @@ -749,7 +741,7 @@ |
750 | 742 | * hook play with them, *then* expand it all at once. |
751 | 743 | */ |
752 | 744 | function makeExternalLink( $url, $text, $escape = true, $linktype = '', $attribs = array() ) { |
753 | | - $attribsText = $this->getExternalLinkAttributes( $url, $text, 'external ' . $linktype ); |
| 745 | + $attribsText = $this->getExternalLinkAttributes( 'external ' . $linktype ); |
754 | 746 | $url = htmlspecialchars( $url ); |
755 | 747 | if( $escape ) { |
756 | 748 | $text = htmlspecialchars( $text ); |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1844,7 +1844,7 @@ |
1845 | 1845 | $text = $wgContLang->getLanguageName( $nt->getInterwiki() ); |
1846 | 1846 | |
1847 | 1847 | if ( '' == $text ) { $text = $l; } |
1848 | | - $style = $this->getExternalLinkAttributes( $l, $text ); |
| 1848 | + $style = $this->getExternalLinkAttributes(); |
1849 | 1849 | $s .= "<a href=\"{$url}\"{$style}>{$text}</a>"; |
1850 | 1850 | } |
1851 | 1851 | if( $wgContLang->isRTL() ) $s .= '</span>'; |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -119,13 +119,10 @@ |
120 | 120 | * Leading > is now syntax for <blockquote>. |
121 | 121 | * (bug 19576) Moved id attribues from anchors accompanying section headers to |
122 | 122 | the section headers themselves, removing the redundant anchor elements. |
123 | | -* Removed name attribute from <a id="top"></a>. |
124 | 123 | * Parser::setFunctionTagHook now can be used to add a new tag which is parsed at |
125 | 124 | preprocesor level. |
126 | 125 | * Added $wgShowArchiveThumbnails, allowing sysadmins to disable thumbnail |
127 | 126 | display for old versions of images. |
128 | | -* Remove five-year-old KHTMLFixes.css, which is unlikely to be relevant anymore |
129 | | - and was causing problems. |
130 | 127 | |
131 | 128 | === Bug fixes in 1.16 === |
132 | 129 | |
— | — | @@ -248,6 +245,10 @@ |
249 | 246 | * (bug 19602) PubMed Magic links now use updated NIH url |
250 | 247 | * (bug 19637) externallinks have links to self |
251 | 248 | * Don't load Opera 9.5 RTL fixes for Opera 9.6 |
| 249 | +* Removed name attribute from <a id="top"></a>. |
| 250 | +* Remove five-year-old KHTMLFixes.css, which is unlikely to be relevant anymore |
| 251 | + and was causing problems. |
| 252 | +* Removed repetition of URIs in the title attributes of external links. |
252 | 253 | |
253 | 254 | == API changes in 1.16 == |
254 | 255 | |