Use consistent parsing of URLs

Instead of URL decomposition IDL attributes. Fixes tests that are currently
failing in IE.