Bug with duplicating ID
| Project: | pngFix |
| Version: | 1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Founded a bug:
I have a document with
I run pngFix: $(document).pngFix()
After that i try to change css properties: $('#id1').css({top:200+'px',left:300+'px'});
But nothing matters!
I found that pngFix create element with id=id1
I've fixed this bug by changing string:
<--- 83: jQuery(this).hide();
---> 83: jQuery(this).attr('id',jQuery(this).attr('id')+'_previmg').hide();
After that my code works correctly. My version is in attachment.
Fix it in next release, please.
Thanks.
-----------
Sorry for my bad russian english :)
| Attachment | Size |
|---|---|
| jquery.pngFix.js__0.txt | 4.63 KB |

Comments
#1
Founded a bug:
I have a document with img element id=id1
I run pngFix: $(document).pngFix()
After that i try to change css properties: $('#id1').css({top:200+'px',left:300+'px'});
But nothing matters!
I found that pngFix create span element with id=id1
I've fixed this bug by changing string:
<--- 83: jQuery(this).hide();
---> 83: jQuery(this).attr('id',jQuery(this).attr('id')+'_previmg').hide();
After that my code works correctly. My version is in attachment.
Fix it in next release, please.
Thanks.
-----------
Sorry for my bad russian english :)