Skip to main content

Bug Tracker

Side navigation

#11129 closed bug (cantfix)

Opened January 05, 2012 09:30AM UTC

Closed April 07, 2012 12:59AM UTC

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

This bug: http://bugs.jquery.com/ticket/2747

Is reintroduced in jQuery 1.7.1

Attachments (0)
Change History (5)

Changed January 05, 2012 03:08PM UTC by timmywil comment:1

component: unfiledattributes
priority: undecidedlow
resolution: → worksforme
status: newclosed

Changed April 06, 2012 11:41PM UTC by marcn comment:2

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:

http://jsfiddle.net/marcn/s68cP/1/

Changed April 06, 2012 11:42PM UTC by marcn comment:3

Also: this is still broken in 1.7.2

Changed April 07, 2012 12:58AM UTC by dmethvin comment:4

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.

Changed April 07, 2012 12:59AM UTC by dmethvin comment:5

resolution: → cantfix
status: reopenedclosed