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 28925 - Append the hyperlink suffix to the URL before resolving
Summary: Append the hyperlink suffix to the URL before resolving
Status: RESOLVED MOVED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#followi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-07 18:02 UTC by contributor
Modified: 2019-03-29 21:29 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2015-07-07 18:02:06 UTC
Specification: https://html.spec.whatwg.org/multipage/semantics.html
Multipage: https://html.spec.whatwg.org/multipage/#following-hyperlinks
Complete: https://html.spec.whatwg.org/#following-hyperlinks
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
Append the hyperlink suffix to the URL before resolving

Posted from: 81.82.104.124 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
Comment 1 Ms2ger 2015-07-07 18:03:02 UTC
Appending a string to a URL doesn't make sense
Comment 2 Anne 2016-04-01 13:15:00 UTC
It seems to actually be appended to the end though, as if the URL were a string.

E.g., test

  <a href="?test#test"><img ismap src=image></a>

in the Live DOM Viewer. It's not entirely clear to me how we can fix this without breaking blob URLs and such.
Comment 3 Anne 2016-04-04 08:14:44 UTC
I guess we could specify this as either appending to the fragment (if non-null) or the query (if non-null), and otherwise setting the query to it. It's rather weird behavior, but okay...

Domenic, thoughts on that?
Comment 4 Domenic Denicola 2016-04-04 12:43:55 UTC
I have a hard time understanding this issue from the brief description, but isn't this something that should be entirely determined by existing browser behavior? I can't get the test from comment #2 to show me any kind of URL, but I assume you're saying the result is "?test#test?123,456". In which case your algorithm sounds reasonable, although I don't think "setting the query" works given that the suffix contains a "?" already.
Comment 5 Anne 2016-04-04 12:55:51 UTC
Existing browsers don't always use URL objects, which create problems for blob URLs. Maybe we should give up on blob URLs ever working correctly though. However, that's probably a larger issue and as far as I can tell we can fix this without addressing that.
Comment 6 Domenic Denicola 2019-03-29 21:29:41 UTC
https://github.com/whatwg/html/issues/4484