Opened 13 years ago
Closed 13 years ago
#6601 closed bug (invalid)
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)
Change History (2)
Changed 13 years ago by
Attachment: | ie-html.zip added |
---|
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
Testcase