Bug Tracker


Ticket #12026 (closed bug: fixed)

Opened 22 months ago

Last modified 18 months ago

Let $(html, props) use any jQuery.fn method

Reported by: dmethvin Owned by: dmethvin
Priority: low Milestone: 1.8
Component: core Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:


As discussed in IRC. Rather than keeping a separate .attrFn white list, allow $(html, props) to treat any property in jQuery.fn as callable.

Note that this does add some ambiguity as it now includes a large number of "reserved words" that previously were treated simply as attribute names. In addition, any 3rd-party plugins can now expand the proscribed namespace at runtime. For that reason, it is best to avoid the use of $(html, props) in production code. Instead, cover $(html, props) with a cool, slightly damp cloth and place it in your hacker's toolkit.

Bug reports against this new and awesome behavior should not be accepted.

Change History

comment:1 Changed 22 months ago by dmethvin

  • Status changed from new to assigned
  • Component changed from unfiled to core
  • Priority changed from undecided to low
  • Owner set to dmethvin
  • Milestone changed from None to 1.8
  • Keywords needsdocs added

comment:2 Changed 22 months ago by Dave Methvin

  • Status changed from assigned to closed
  • Resolution set to fixed

Fix #12026. Let props in $(html, props) be any jQuery.fn method.

Closes gh-839.

Changeset: cdd5132dcc02d4a3ff8df390677ffb8ff4b5a477

comment:3 Changed 18 months ago by mikesherov

  • Keywords needsdocs removed

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.