Skip to main content

Bug Tracker

Side navigation

#831 closed bug (worksforme)

Opened January 17, 2007 01:03AM UTC

Closed January 22, 2007 12:10AM UTC

Last modified June 19, 2007 09:26AM UTC

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

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

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.


<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.

Attachments (0)
Change History (2)

Changed January 17, 2007 03:06PM UTC by malsup comment:1

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

Changed January 22, 2007 12:10AM UTC by john comment:2

resolution: → worksforme
status: newclosed

I can't duplicate this either.