Move logic determining if an href is a URL or CSS selector to the host window. Use string parsing instead of trying to find an existing node