Bartosz Dziewoński has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/156125

Change subject: IndexPager: Don't generate rel=first and rel=last
......................................................................

IndexPager: Don't generate rel=first and rel=last

These values for the "rel" attribute (aliases for 'begin' and 'end',
respectively) have only appeared as proposals for the HTML4
specification, but were then explicitly dropped.

The story of them and more links are available on
<http://microformats.org/wiki/existing-rel-values> (search for
'first', 'last', 'begin', 'end'). The gist is that they were
intentionally dropped and therefore should not be used.

Change-Id: I33afd1364bf9ccf79c11a2a050ad0c4ff52c447a
---
M includes/pager/IndexPager.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/25/156125/1

diff --git a/includes/pager/IndexPager.php b/includes/pager/IndexPager.php
index 1d93c27..2142227 100644
--- a/includes/pager/IndexPager.php
+++ b/includes/pager/IndexPager.php
@@ -457,7 +457,7 @@
                }
 
                $attrs = array();
-               if ( in_array( $type, array( 'first', 'prev', 'next', 'last' ) 
) ) {
+               if ( in_array( $type, array( 'prev', 'next' ) ) ) {
                        # HTML5 rel attributes
                        $attrs['rel'] = $type;
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/156125
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I33afd1364bf9ccf79c11a2a050ad0c4ff52c447a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to