Skip to main content

Bug Tracker

Side navigation

#6601 closed bug (invalid)

Opened May 26, 2010 04:04PM UTC

Closed May 27, 2010 01:39AM UTC

Running .html() on an input element causing IE to stop executing scripts

Reported by: scottchiefbaker Owned by:
Priority: Milestone: 1.4.3
Component: unfiled Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

If you try and change the .html() of an input element IE throws an error and stops executing scripts further. Non-IE browsers function normally.

I understand that logically you shouldn't do this, but it's probably best that JQuery not throw an exception.

Attachments (1)
  • ie-html.zip (0.8 KB) - added by scottchiefbaker May 26, 2010 04:04PM UTC.

    Testcase

Change History (1)

Changed May 27, 2010 01:39AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

It's hard enough to do something sensible with valid inputs! That error isn't coming from jQuery, it's from IE. You can get the same result by assigning to the .innerHTML of the input element. Like you say, it's not valid and that alone should be reason not to do it. It's easy to debug, just use the IE8 debugger and it will break on the error. You can use the call stack to look and see what errant code caused the problem.