Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#831 closed bug (worksforme)

In IE (6 & 7) attr("href", "bla") on an anchor element results in adjustment of the anchor's HTML body as well

Reported by: tim@… Owned by:
Priority: major Milestone: 1.1
Component: core Version: 1.1
Keywords: attr anchor href html explorer Cc:
Blocked by: Blocking:

Description

The following code

$("a").attr("href", "bla");

adjust the href attribute of all anchors to "bla". In IE (6 & 7) not only the href attribute is affected though, but also the anchor's HTML body. In Firefox and Opera this problem does not occur.

Thus,

<a href="yadda">click here</a>

will be adjusted to

<a href="bla">bla</a>

I haven't tested whether the problem occurs in other circumstances as well.

Change History (2)

comment:1 Changed 13 years ago by malsup

I could not duplicate this in IE 6 or 7. Perhaps it's already been fixed.

comment:2 Changed 13 years ago by john

Resolution: worksforme
Status: newclosed

I can't duplicate this either.

Note: See TracTickets for help on using tickets.