[wp-trac] [WordPress Trac] #51621: jQuery Migrate throws error when an object is specified for the name parameter and number for the value parameter

WordPress Trac noreply at wordpress.org
Sat Oct 24 16:22:52 UTC 2020


#51621: jQuery Migrate throws error when an object is specified for the name
parameter and number for the value parameter
----------------------------+--------------------------------------
 Reporter:  mweichert       |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Script Loader   |    Version:  trunk
 Severity:  major           |   Keywords:  has-patch has-unit-tests
  Focuses:  ui, javascript  |
----------------------------+--------------------------------------
 jQuery Migrate will treat the name as a string when a number is provided
 as the value. However, it shouldn't make that assumption.

 jQuery UI Slider will make a call to jQuery.fn.css like so:


 {{{
 jQuery.css({left: "100%", 300)
 }}}


 It does this when the animate setting is specified. See
 https://jsfiddle.net/mweichert/784kjmoh/17/

 jQuery UI Slider is used in this context by wp-color-picker / iris.

 Note, I've created an issue and pull request for jquery-migrate here:
 https://github.com/jquery/jquery-migrate/issues/404

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51621>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list