document.querySelectorAll('[rel="prev"]')[0].innerHTML = "Older posts";
//find first element with "someAttr" attribute document.querySelector('[someAttr]')
//find all elements with "someAttr" attribute document.querySelectorAll('[someAttr]')