FIX: with vanilla js .href and getAttribute("href") are not equal (PR #12609)

With a link having an empty href: <a href>foo</a> doing element.hrefwill give you the URL of the document, to get the same behavior than$(element).attr(“href”)and get "" you need to doelement.getAttribute(“href”)`


This pull request has been mentioned on Discourse Meta. There might be relevant details there: