Bug Tracker

Opened 4 years ago

Closed 4 years ago

#11100 closed bug (invalid)

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

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 (1)

comment:1 Changed 4 years ago by dmethvin

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

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.