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 26342 - URLUtils.search setter does nothing with relative flag unset
Summary: URLUtils.search setter does nothing with relative flag unset
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: 2014-07-15 18:55 UTC by Simon Sapin
Modified: 2014-07-28 13:23 UTC (History)
1 user (show)

See Also:


Attachments

Description Simon Sapin 2014-07-15 18:55:42 UTC
In http://url.spec.whatwg.org/#urlutils-and-urlutilsreadonly-members

> Setting the search attribute must run these steps:
>
> 1. If url is null, or its relative flag is unset, terminate these steps.
>
> 2. [...]

However, URLs with the relative flag unset can have a query string set by the parser. Blocking the setter seems superfluous. (Compared, say, to setting the hostname which does make sense for non-relative URLs.)