Bug Tracker

Modify

Ticket #7172 (closed bug: duplicate)

Opened 3 years ago

Last modified 3 years ago

base url added when cloning anchor tags in IE7

Reported by: steve@… Owned by:
Priority: undecided Milestone: 1.4.3
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

I cloned an element which contains an anchor tag with a relative value in the href attribute. In Firefox, this cloned correctly however in IE7 it added the base url creating the anchor tag in the cloned element with an absolute url.

Steve

Change History

comment:1 Changed 3 years ago by anonymous

Also happens in IE6. Example here:
 http://jsfiddle.net/malibu/R6RTd/1/

comment:2 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to duplicate

Unfortunately this is a bug in the IE parser that we cannot work around. If you want to set an href of an element in IE<8 that does not end up absolutized, you must use the .attr function.

comment:3 Changed 3 years ago by snover

Duplicate of #7117.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.