Bug Tracker

Opened 4 years ago

Closed 4 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 4 years ago by timmywil

  • Component changed from unfiled to attributes
  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from new to closed

comment:2 Changed 4 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 4 years ago by marcn

Also: this is still broken in 1.7.2

comment:4 Changed 4 years ago by dmethvin

  • Resolution worksforme deleted
  • Status changed from closed to reopened

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 4 years ago by dmethvin

  • Resolution set to cantfix
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.