Bug Tracker

Opened 11 years ago

Closed 11 years ago

#11129 closed bug (cantfix)

.attr('href') returns full url in IE7

Reported by: timing Owned by:
Priority: low Milestone: None
Component: attributes Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:


This bug: http://bugs.jquery.com/ticket/2747 Is reintroduced in jQuery 1.7.1

Change History (5)

comment:1 Changed 11 years ago by timmywil

Component: unfiledattributes
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

comment:2 Changed 11 years ago by marcn

Note that in the original ticket http://bugs.jquery.com/ticket/2747 there was a mention of it failing when the link was created using innerHTML. The jsfiddle posted on the closing of the bug didn't use a dynamically created link. The following test case shows that it is failing in IE7 when the link is added to the page dynamically:


comment:3 Changed 11 years ago by marcn

Also: this is still broken in 1.7.2

comment:4 Changed 11 years ago by dmethvin

Resolution: worksforme
Status: closedreopened

jQuery doesn't do that, IE does. We just put the text you asked for in .innerHTML and IE hoses it before we can get the real attribute. The only way around that would be to parse the entire HTML string into DOM ourselves and that ain't happening. oldIE is slow enough already.

comment:5 Changed 11 years ago by dmethvin

Resolution: cantfix
Status: reopenedclosed
Note: See TracTickets for help on using tickets.