Bug Tracker

Modify

Ticket #4393 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

abbr-test.html Download (552 bytes) - added by kipthegreat 4 years ago.
demostrates IE6 error processing $("abbr").html()

Change History

Changed 4 years ago by kipthegreat

demostrates IE6 error processing $("abbr").html()

comment:1 Changed 3 years ago by dmethvin

 http://jsfiddle.net/dmethvin/bBP2n/

Needs test with IE6 to confirm or deny.

comment:2 Changed 3 years ago by snover

  • Status changed from new to closed
  • Resolution set to invalid

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.