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 comment:1
component: | unfiled → attributes |
---|---|
priority: | undecided → low |
resolution: | → worksforme |
status: | new → closed |
Changed April 06, 2012 11:41PM UTC by 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:
Changed April 06, 2012 11:42PM UTC by comment:3
Also: this is still broken in 1.7.2
Changed April 07, 2012 12:58AM UTC by comment:4
resolution: | worksforme |
---|---|
status: | closed → 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.
Changed April 07, 2012 12:59AM UTC by comment:5
resolution: | → cantfix |
---|---|
status: | reopened → closed |
http://jsfiddle.net/timmywil/F5KZ2/