Bug Tracker

Modify

Ticket #11100 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

Inconsistent Results when Appending to Collection Created from String

Reported by: jugglinmike Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

When a collection contains an element that cannot be appended to (i.e. style, img, br), $.fn.append will throw an error in IE 6, 7, and 8 (but not in, for instance: IE 9, Firefox 3+, Chrome 16, or Safari 4).

 http://jsfiddle.net/jugglinmike/NVSWF/

Change History

comment:1 Changed 2 years ago by dmethvin

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

The result of doing something invalid is undefined and can certainly differ across browsers. I actually wish all browsers threw errors for this, so it would be easier for people to find their mistakes.

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.