-
Notifications
You must be signed in to change notification settings - Fork 757
Description
There are various bits that mention legacy aliases on selectors as this bit of the draft:
As previous drafts of this specification used the name :matches() for this pseudo-class, UAs may additionally implement this obsolete name as an alias for :is() if needed for backwards-compatibility.
As far as I can tell, browsers don't implement these kinds of things the same way (some preserve the legacy version during serialization, but only on some selectors). I don't think it matters much either way, but it'd be good if moving forward we'd define a "preferred" way to do these kinds of things.
I think for simplicity, doing it as a parse-time operation is better (i.e., .selectorText for :-webkit-autofill will return :autofill). It'd be good to put some guidance in the spec about this at least.