Use <link rel="license"> instead of <link rel="copyright">
authorFomafix <fomafix@googlemail.com>
Wed, 7 Jun 2017 12:11:08 +0000 (14:11 +0200)
committerKrinkle <krinklemail@gmail.com>
Mon, 10 Jul 2017 00:48:50 +0000 (00:48 +0000)
"copyright" is not in the list of the allowed values for the attribut rel:
https://w3c.github.io/html/single-page.html#allowed-keywords-and-their-meanings

Bug: T167284
Change-Id: I09205bb146001d1d1d90e6a0f25d21851f3f697c

includes/OutputPage.php

index 24a506c..969171d 100644 (file)
@@ -295,7 +295,7 @@ class OutputPage extends ContextSource {
        private $mEnableSectionEditLinks = true;
 
        /**
-        * @var string|null The URL to send in a <link> element with rel=copyright
+        * @var string|null The URL to send in a <link> element with rel=license
         */
        private $copyrightUrl;
 
@@ -3446,7 +3446,7 @@ class OutputPage extends ContextSource {
 
                if ( $copyright ) {
                        $tags['copyright'] = Html::element( 'link', [
-                               'rel' => 'copyright',
+                               'rel' => 'license',
                                'href' => $copyright ]
                        );
                }