fix(resource_url_resolver): fix DOM parsing for Safari

Closes #1439