From: Kevin Israel Date: Sun, 1 Mar 2015 11:05:25 +0000 (-0500) Subject: Remove rel="archives" from HTML output X-Git-Tag: 1.31.0-rc.0~12171 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=3702223dda048bcf17e5b651be3d81145d5315c2;p=lhc%2Fweb%2Fwiklou.git Remove rel="archives" from HTML output Follows-up fab055d6a1. Introduced in 4299d27956 (r45988) That link type was removed from HTML5 in 2011. It is not recognized by the W3C Markup Validator. https://html5.org/r/5925 https://www.w3.org/Bugs/Public/show_bug.cgi?id=11486 https://html.spec.whatwg.org/multipage/semantics.html#linkTypes Change-Id: I61ddd7ee3df41bfb62423d0498217d31e7952902 --- diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25 index 642fef852f..efaaafabf7 100644 --- a/RELEASE-NOTES-1.25 +++ b/RELEASE-NOTES-1.25 @@ -166,6 +166,8 @@ production. (instead of returning incorrect results) even when the page ID is known. * (T74070) Duplicate search for archived files on file upload now omits the extension. This requires the fa_sha1 field being populated. +* Removed rel="archives" from the "View history" link, as it did not pass + HTML validation. === Action API changes in 1.25 === * (T67403) XML tag highlighting is now only performed for formats diff --git a/includes/page/Article.php b/includes/page/Article.php index 817b4b6682..cc87a10fcf 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -1634,7 +1634,7 @@ class Article implements Page { $context->msg( 'historywarning' )->numParams( $revisions )->parse() . $context->msg( 'word-separator' )->escaped() . Linker::linkKnown( $title, $context->msg( 'history' )->escaped(), - array( 'rel' => 'archives' ), + array(), array( 'action' => 'history' ) ) . '' ); diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index 98a1b03d7f..b0390e9363 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -948,7 +948,6 @@ class SkinTemplate extends Skin { 'text' => wfMessageFallback( "$skname-view-history", 'history_short' ) ->setContext( $this->getContext() )->text(), 'href' => $title->getLocalURL( 'action=history' ), - 'rel' => 'archives', ); if ( $title->quickUserCan( 'delete', $user ) ) {