Modify ↓
Ticket #9345 (closed bug: cantfix)
append image, repeat request
| Reported by: | edgarhoo@… | Owned by: | edgarhoo@… |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.next |
| Component: | manipulation | Version: | 1.6.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
when add images with append, IE6 will repeat request the image. this is demo: http://lab.edgarhoo.net/javascript/jQuery-bug-append-image-repeat-request.html 中文版:当使用append方式将img标签添加到页面时,IE6会请求该图片数次
Change History
comment:1 Changed 2 years ago by rwaldron
- Owner set to edgarhoo@…
- Status changed from new to pending
- Component changed from unfiled to manipulation
comment:2 Changed 2 years ago by dmethvin
- Status changed from pending to closed
- Resolution set to cantfix
Hi, this is a well-known bug in IE6 that we cannot work around. The image is requested when the href property of the image is set, and then when the image is appended to the document. To avoid this problem, do not set the href until the image is appended to the document.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, I've created this boilerplate: http://jsfiddle.net/rwaldron/da3nM/ Open the link and click to "Fork" in the top menu.