W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] Selectors within <style scoped>

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Thu, 16 Jun 2011 14:31:59 -0400
Message-ID: <BANLkTikWvBm2rLEF+oZFQXoXQp=E5f-fCA@mail.gmail.com>
On Thu, Jun 16, 2011 at 1:40 PM, Tab Atkins Jr. <jackalmage at gmail.com> wrote:
> As a web developer, I agree - my intuitive understanding of @scoped is
> that it makes matching *start* at the scoped element. ?That's what
> "scoped" means. ?The other meaning is more like a filter.

Me too.  I think it should be changed to work this way.  The current
way is confusing.

> FWIW, I also think that querySelector got this wrong. ?It should have
> scoped by default, and then possibly also offered an option to filter
> based on an element.

I didn't think about that.  If querySelector already does it this way,
that's an argument for consistency, but I'm not sure it's very strong.
Received on Thursday, 16 June 2011 11:31:59 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC