Opened 14 years ago
Closed 12 years ago
#4393 closed bug (invalid)
IE6 JS error when processing $("abbr").html()
Reported by: | kipthegreat | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.3.2 |
Component: | core | Version: | 1.3.2 |
Keywords: | ie6 abbr | Cc: | |
Blocked by: | Blocking: |
Description
The following Javascript generates an error in IE6:
$(function() {
$("abbr").html("HELLO WORLD");
});
Once the error is hit, all javascript execution is stopped.
There are two workarounds: browser sniffing and try/catch block. However, it would be better if jQuery handled the exception, since this code uses core jQuery functionality that most developers wouldn't expect to generate an exception.
A test html file is attached.
Attachments (1)
Change History (3)
Changed 14 years ago by
Attachment: | abbr-test.html added |
---|
comment:1 Changed 12 years ago by
http://jsfiddle.net/dmethvin/bBP2n/
Needs test with IE6 to confirm or deny.
comment:2 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Thanks for the report, but this is not a jQuery bug. IE6 doesn’t support the <abbr>
element at all. If you want to use it, you need to add a shim first, at which point it will work properly. In the future, please use the jQuery Forum for support requests.
demostrates IE6 error processing $("abbr").html()