This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23425 - Allow URL href setter to throw for invalid URLs
Summary: Allow URL href setter to throw for invalid URLs
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: Unsorted
Assignee: Anne
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 15:13 UTC by Erik Arvidsson
Modified: 2013-10-15 13:03 UTC (History)
1 user (show)

See Also:


Attachments

Description Erik Arvidsson 2013-10-02 15:13:21 UTC
For HTMLAnchorElement href setter we need to support setting href to an invalid URL. However, for URL objects we should disallow it. Having URL objects that are invalid is bad and hard to detect.
Comment 1 Anne 2013-10-15 13:03:12 UTC
Filed https://bugzilla.mozilla.org/show_bug.cgi?id=926890 on Gecko.