Closed Bug 139626 Opened 23 years ago Closed 20 years ago

Link Navigates to the Wrong Page

Categories

(Core :: DOM: HTML Parser, defect, P3)

defect

Tracking

()

RESOLVED DUPLICATE of bug 90664
mozilla1.4beta

People

(Reporter: nick, Unassigned)

References

()

Details

(Keywords: qawanted, testcase)

Attachments

(2 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc1) Gecko/20020417 BuildID: 2002041711 The link labeled Management on the left side of the page just refreshes the page even though it should be navigating to another page. http://www.abilizer.com/channel?channel=company Reproducible: Always Steps to Reproduce: 1.go to http://www.abilizer.com/channel?channel=company 2.look at source (notice link labeled Management) 3.click on Managment link Actual Results: It refreshes the page and does not navigate properly Expected Results: should navigate to: http://www.abilizer.com/channel?channel=management
worksforme, linux trunk build 2002-04-22-07.
Actually, I do see this. The first click fails, the second succeeds... Need to figure out the right component here.
Keywords: qawanted
OS: Windows XP → All
Hardware: PC → All
This appears to be an issue with the HTML code for the page and not a bug with Mozilla. I've reduced the code to a test case, but left enough for you to see where this is an issue. The A tag for the "company" link is left hanging open and finally closed AFTER the "management", "careers", "investors", and "contact" links. See the test case at http://www.embimedia.com/temp/mozilla/139626/abilizer_test2.html If you look at the source, you'll see the comments that I've added showing the opening and closing of that A tag. Internet Explorer seems to render this code in a manner that allows the link to work properly (in the sense that it goes to the expected location). I don't know whether "quirks" mode in Mozilla should be able to pick up something like this or not.
To parser. <a> is not allowed to contain other <a> tags, so we should be closing out that first <a>.... thanks for the testcase, Mike!
Assignee: jst → harishd
Status: UNCONFIRMED → NEW
Component: DOM Core → Parser
Ever confirmed: true
QA Contact: stummala → moied
testcase keyword added.
Keywords: testcase
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.0.1
Observation: When I shift+reload the testcase then the links work correctly!
Target Milestone: mozilla1.0.1 → mozilla1.2beta
*** Bug 157252 has been marked as a duplicate of this bug. ***
From bug 157252, marked as dupe. If you right-click, and copy location of the link, the link turns out fine.
Also, open in new window/tab opens the right link (at least in the example from Bug 157252). Apparently, only a plain click on the link loads the wrong URL.
Target Milestone: mozilla1.2beta → mozilla1.4beta
Attached file Minimal testcase
Note that removing the last </a> makes the bug go away. Changing to standards mode does not affect the bug.
Attachment #146736 - Attachment is patch: false
Attachment #146736 - Attachment mime type: text/plain → text/html
worksforme with linux trunk 2005061905, although I see the bug with 1.7.6 DOM inspector has the following content model for the second testcase with trunk: <a/> <table>...<a/>...</table> <a/> where the last <a/> has the same href as the first (google), but is empty. Is that correct?
Assignee: harishd → parser
Status: ASSIGNED → NEW
QA Contact: moied → mrbkap
It is correct. If the <table> was a <div>, it wouldn't, but hey, who said compat. stuff had to make sense? Duping to the bug that fixed this. *** This bug has been marked as a duplicate of 90664 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: