Skip to main content

Bug Tracker

Side navigation

#7574 closed bug (worksforme)

Opened November 19, 2010 04:26PM UTC

Closed December 01, 2010 02:38PM UTC

Problem with html() in IE

Reported by: songofchrist@hotmail.com Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.3
Keywords: Cc:
Blocked by: Blocking:
Description

I have something to the effect of the following in a portion of my code.

$('#'+id).html('blah');

After being called once, a second call to the routine in which this appears is producing an error "'events' is null or undefined" in IE 6.0, although it works fine in Mozilla based browers. After finding the error, I replaced it with the following:

document.getElementById(id).innerHTML='blah';

The error went away. Now these two statements are essentially equivalent for all practical purposes. Why then the error in 'events' of all things when I attempt to insert html via jQuery? Don't know if this is still a problem in the newest jQuery. Might be solved by upgrading.

Attachments (0)
Change History (3)

Changed November 19, 2010 05:01PM UTC by jitter comment:1

_comment0: Thanks for taking the time to contribute to the jQuery project by reporting a bug! \ \ This seems to work just fine. [http://jsfiddle.net/jitter/Y43Cv/ test case]. Clicking multiple times doesn't yield an error in IE. \ \ So please submit a reduced test case which reproduces the issue you are experiencing on http://jsfiddle.net. So that we can investigate this issue further. \ \ 1290186191925800
owner: → songofchrist@hotmail.com
status: newpending

Thanks for taking the time to contribute to the jQuery project by reporting a bug!

This seems to work just fine. test case. Clicking multiple times doesn't yield an error in IE.

So please submit a reduced test case which reproduces the issue you are experiencing on http://jsfiddle.net. So that we can investigate this issue further. And also make sure to test with the latest jQuery version too.


How to report bugs

Changed December 01, 2010 02:38PM UTC by jitter comment:2

owner: songofchrist@hotmail.com
status: pendingnew

Changed December 01, 2010 02:38PM UTC by jitter comment:3

resolution: → worksforme
status: newclosed

No test case was provided. Closing. Feel free to reopen with a reproducible test case.