Bug Tracker

Changes between Initial Version and Version 1 of Ticket #11698, comment 4


Ignore:
Timestamp:
May 4, 2012, 11:32:52 AM (8 years ago)
Author:
dmethvin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11698, comment 4

    initial v1  
    1 > Furthermore, any event type can be passed in, and the following jQuery methods can be called: val, css, html, text, data, width, height, or offset. The name "class" must be quoted in the map since it is a JavaScript reserved word, and "className" cannot be used since it is not the correct attribute name.
     1> As of jQuery 1.4, the second argument to jQuery() can accept a map consisting of a superset of the properties that can be passed to the .attr() method. Furthermore, any event type can be passed in, and the following jQuery methods can be called: val, css, html, text, data, width, height, or offset. The name "class" must be quoted in the map since it is a JavaScript reserved word, and "className" cannot be used since it is not the correct attribute name.
    22
    3 I'd just prefer to deprecate the `$(html, props)` form, it's difficult to explain and requires special-case code inside jQuery.
     3[Edited, got the incomplete quote] I'd just prefer to deprecate the `$(html, props)` form, it's difficult to explain and requires special-case code inside jQuery.