Re: [selectors4] :current() argument: list of compound selectors or list of selectors?

On Thu, Jan 16, 2014 at 8:13 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Hi,
>
> The draft currently says:
>
>> Its alternate form :current(), like :matches(), takes a list of
>> compound selectors as its argument
>
>
> Except that :matches() changed and is not limited to a list of compound
> selectors anymore, but can take any list of selectors. (At least in the
> complete profile.)
>
> Should :current() be changed as well? If not, the spec needs to not say it’s
> like :matches().

I forgot that this syntax even exists.  I wonder why it does?
:current(foo, bar) is exactly equivalent to :matches(foo,
bar):current.  Is it really sufficiently worthwhile to drop those
characters?

~TJ

Received on Thursday, 16 January 2014 22:49:21 UTC