Re: "match a selectors string" in the DOM spec doesn't do what it wants to be doing

I updated DOM to use the new "primitive".

On Sat, Aug 9, 2014 at 7:40 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On Fri, Aug 8, 2014 at 6:31 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> Looks like it, modulo the same observability issues Anne's current setup
>> has.
>
> If selector matching ever becomes observable, we've got to settle on a
> matching algorithm in general, not just for this simple case.  The
> spec still talks about matching in the natural way, evaluating the
> selector from left to right, rather than from right to left as
> browsers tend to do.

DOM might need updates for this too, depending on whether parsing
becomes observable. As currently defined closest() would parse
numerous times if not optimized.


-- 
http://annevankesteren.nl/

Received on Monday, 11 August 2014 10:37:56 UTC