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 20926 - "and a parsed URL url"
Summary: "and a parsed URL url"
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: URL (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: sideshowbarker+urlspec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-09 01:38 UTC by Ian 'Hixie' Hickson
Modified: 2013-04-09 17:36 UTC (History)
2 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2013-02-09 01:38:39 UTC
http://url.spec.whatwg.org/#concept-uu-query-object

The "url" value doesn't seem to get set. It should be set whenever "input" changes, probably?
Comment 1 Anne 2013-02-12 10:37:11 UTC
It gets set when href gets set. Am I missing something or is this a duplicate of bug 20928?
Comment 2 Ian 'Hixie' Hickson 2013-02-13 00:17:54 UTC
What if "href" is never set?
Comment 3 Anne 2013-02-13 10:35:37 UTC
Then it remains null. The API accounts for that.
Comment 4 Ian 'Hixie' Hickson 2013-02-13 19:44:38 UTC
I don't understand.

Take this example:

   <a href="/"><script>document.links[0].search = 'test'</script>

We never set the href IDL attribute, yet this needs to navigate.
Comment 5 Anne 2013-02-14 11:52:48 UTC
http://krijnhoetmer.nl/irc-logs/whatwg/20130213#l-1175 has additional context.

I think I fixed this now with a new "set the input" algorithm as suggested. Leaving open for review.

https://github.com/whatwg/url/commit/4253baf9e19e90d59d2188e98eeddb50b7d7ec75
Comment 6 Ian 'Hixie' Hickson 2013-02-15 02:00:55 UTC
Taking to review and update HTML.
Comment 7 Ian 'Hixie' Hickson 2013-04-09 17:36:27 UTC
See diff in bug 20072.