mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
With a link having an empty href: `<a href>foo</a>` doing
`element.href` will give you the URL of the document, to get the same behavior than `$(element).attr("href")` and get "" you need to do `element.getAttribute("href")`