The URL spec says all setters are no-ops on invalid URLs (this might be a bug in the spec).
We follow this now.