Consider only anchor tags as pagination items

Due to additional elements (created for example by PIE css3 on IE8) the "current" class isn't set correctly on pagination children items