Re: Making selectors first-class citizens

On Mon, Sep 16, 2013 at 2:33 PM, Brian Kardell <bkardell@gmail.com> wrote:
>> There are
>> literally zero scripts which depend on the name "matchesSelector",
>> because it's never worked anywhere.  They might depend on the prefixed
>> variants, but that's a separate issue to deal with.
>
> I think Francois shared a github search with shows almost 15,500 uses
> expecting matchesSelector.  I think we all agree these should work just fine
> as long as prefixes remain - but that's the point... With that many, why
> worry about when someone wrote their code or unprefixing or lots more
> emails.  Seems an acceptable amount of cruft to me in this case.  Having
> said that, I promise I will make no further case :)

That code isn't depending on matchesSelector, it's depending on
fooMatchesSelector *or* matchesSelector.  As long as the former works,
it's fine - we don't need to add the latter as well.

~TJ

Received on Monday, 16 September 2013 21:49:28 UTC