gRegorAnother advantage of the DOM approach is that I can send myself webmentions using relative links. That code snippet resolves relative URLs and normalizes the hostname too, in case any weird people out there might used mixed-case when linking their domain ;)