Skip to main content

Bug Tracker

Side navigation

#7122 closed bug (invalid)

Opened October 06, 2010 08:25PM UTC

Closed November 07, 2010 09:15PM UTC

Last modified January 31, 2011 05:54PM UTC

Dynamic links aren't displayed as visited in IE 8 and IE 7

Reported by: liechtypo Owned by:
Priority: high Milestone: 1.5
Component: build Version: 1.5
Keywords: Internet Explorer, visited Cc:
Blocked by: Blocking:
Description

If you create dynamic links with jquery by creating dom anchor elements before hand and then set the attributes of those anchor elements later, the links don't work in IE 7 or 8. There are 2 cases here.

In the first case, I create a new variable for each row and append it to the table. In this case, in both IE 7 and 8, the links never show the visited state. If you click the link and click the back button on IE, they never display the visited state. Look at the jquery-each-bug.html example I have attached.

In the second case, I use the same variable for a row in the table and clone it after each iteration in the loop. In this case, IE 7 will display the link after the one I clicked as visited. Look at the jquery-each-bug-wrong-link.html example I attached.

Attachments (2)
Change History (13)

Changed October 06, 2010 08:45PM UTC by liechtypo comment:1

I think this should be moved to dom manipulation.

Changed October 07, 2010 06:18AM UTC by snover comment:2

resolution: → worksforme
status: newclosed

Thanks for the report, but this is not a jQuery bug. Also, I am unable to reproduce it. Please use the jQuery Forum in the future for support requests.

Changed October 07, 2010 06:19AM UTC by snover comment:3

Changed October 08, 2010 03:27PM UTC by liechtypo comment:4

resolution: worksforme
status: closedreopened

Did you try my test cases that do show the bug? I can modify my test cases to create the anchors with the hrefs set in one line of code and the bug doesn't show up. I am seeing variations of this bug more often. I have to rearrange how I am doing the jquery code to fix this.

Changed October 27, 2010 10:09PM UTC by snover comment:5

milestone: 1.4.31.4.5

Retargeting for next release.

Changed November 05, 2010 09:45PM UTC by liechtypo comment:6

I created a jsfiddle of the jquery-each-bug-wrong-link.html example here:

http://jsfiddle.net/wwwpol/3SmQT/

Changed November 05, 2010 09:48PM UTC by liechtypo comment:7

I created a jsfiddle of the jquery-each-bug.html

http://jsfiddle.net/wwwpol/qHrV6/

But that bug was fixed in 1.4.3. So the wrong link is still an issue in 1.4.3. The links don't get marked as visited in IE 7 and 8.

Changed November 07, 2010 01:24AM UTC by rwaldron comment:8

Changed November 07, 2010 09:15PM UTC by snover comment:9

resolution: → invalid
status: reopenedclosed

This is not a bug. Those web sites all perform 301 redirects to add www to the address; as such, they are never recorded as “visited” in IE.

Changed November 08, 2010 07:14PM UTC by liechtypo comment:10

On your last comment. That is not the reason it doesn't show visited. And your last jsfiddle example doesn't demonstrate the 301 redirects. But I don't mind closing this bug because it was mostly fixed in 1.4.3. The second case is still a bug but you can work around it by not using clone.

Changed November 08, 2010 08:11PM UTC by rwaldron comment:11

#7439 is a duplicate of this ticket.

Changed January 31, 2011 05:53PM UTC by john comment:12

version: 1.4.21.5

There wasn't a 1.4.5 release, was actually 1.5.

Changed January 31, 2011 05:54PM UTC by john comment:13

milestone: 1.4.51.5

There was no 1.4.5 release, was actually 1.5.