Bug Tracker

Modify

Ticket #1154 (closed enhancement: fixed)

Opened 7 years ago

Last modified 15 months ago

Gracefully ignore non-elements

Reported by: john Owned by:
Priority: minor Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: Cc:
Blocking: Blocked by:

Description

A good deal of functionality would be possible (e.g. .childNodes()) and less bugs would occur if jQuery gracefully ignored non-elements. This would mean that any function accessing a node, would have to verify that it is, in fact, an element first.

Change History

comment:1 Changed 6 years ago by john

  • Status changed from new to closed
  • Version changed from 1.1.2 to 1.2.1
  • Resolution set to duplicate
  • Milestone changed from 1.1.3 to 1.2.2

comment:2 Changed 15 months ago by Rick Waldron

  • Resolution changed from duplicate to fixed

Adds test for jQuery.extend deep copy with array, followed by object. Refutes and Closes #1154

Changeset: ed0e2d1e8a5005a80d0dd127dc4019f696471ad6

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.