URL objects should not have non-null associated url. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23425 Also throw JavaScript exceptions rather than DOM exceptions.