Ticket #12026 (closed bug: fixed)
Let $(html, props) use any jQuery.fn method
|Reported by:||dmethvin||Owned by:||dmethvin|
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.
- 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
- Status changed from assigned to closed
- Resolution set to fixed