Bug Tracker

Ticket #11100 (closed bug: invalid)

Opened 3 years ago

Last modified 3 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 3 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.

Note: See TracTickets for help on using tickets.