Bug Tracker

Changes between Version 1 and Version 2 of Ticket #12298, comment 2


Ignore:
Timestamp:
Aug 14, 2012, 12:53:57 PM (8 years ago)
Author:
uniqname
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12298, comment 2

    v1 v2  
    11Whether 1.8 behavior is correct is debatable. But it is different than 1.7.2 behavior and what "worked" before now fails rather inelegantly. My thought is that either Sizzle could trim commas from the ends or split the list of selectors on commas. If the jQuery method takes a comma separated list of selectors, it makes sense that it would work similarly to a string split on commas. After all $("") works just fine without throwing any errors. That could totally be a perception problem on my part though.
     2
     3Also, getting around this issue is pretty easy, but it does mean it's not as plug and play as it could be.