Closed Bug 157987 Opened 22 years ago Closed 22 years ago

URL: Line-ended links in page will include current page in their link

Categories

(Core :: Networking, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 102312

People

(Reporter: stephend, Assigned: darin.moz)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1)
Gecko/20020717 Netscape/7.0
BuildID:    7-17-trunk

Line-ended links in source will include current page in their link.

In source like this:

<a HREF="htt
p://www.oneworldalliance.com/">, the link somehow gets parsed as including the
current document (so, hosted on sedonner.tripod.com, it gets,
'http://sedonner.tripod.com/http://www.oneworldalliance.com/', instead of the
expected 'http://www.oneworldalliance.com'.

BTW, this isn't my own freaky testcase - I found this on http://www.aa.com, all
over the place.  Look at their footer, bottom of the page.

Reproducible: Always
Steps to Reproduce:
1. Load http://sedonner.tripod.com/aatest.html
2. Mouseover or click on the OneWorld image.
3.

Actual Results:  The URL gets parsed as being:
'http://sedonner.tripod.com/http://www.oneworldalliance.com/'

Expected Results:  The URL should be as stated in the source:
'<a HREF="http://www.oneworldalliance.com/">'
Spaces are significant in HTML CDATA attributes (such as href), so this is
techevang for www.aa.com eventually. I'll hand this to the networking people
first, to figure out why the URL gets parsed that way...it looks like it's being
interpreted as a relative URL, but I don't know why the whole thing (including
leading htt) would get reassembled.
Assignee: harishd → darin
Component: Parser → Networking: HTTP
QA Contact: moied → tever
I should note that every other browser except us parses this correctly (not that
I'm defending this shoddy HTML).

*** This bug has been marked as a duplicate of 102312 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified dup.  thanks for the triage, darin.
Status: RESOLVED → VERIFIED
Component: Networking: HTTP → Networking
Summary: Line-ended links in page will include current page in their link → URL: Line-ended links in page will include current page in their link
You need to log in before you can comment on or make changes to this bug.