Opened 12 years ago
Closed 12 years ago
#9345 closed bug (cantfix)
append image, repeat request
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.next |
Component: | manipulation | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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 (2)
comment:1 Changed 12 years ago by
Component: | unfiled → manipulation |
---|---|
Owner: | set to [email protected]… |
Status: | new → pending |
comment:2 Changed 12 years ago by
Resolution: | → cantfix |
---|---|
Status: | pending → closed |
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.
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.