[whatwg] Selectors within <style scoped>

Aryeh Gregor Simetrical+w3c at gmail.com
Thu Jun 16 11:31:59 PDT 2011

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.

More information about the whatwg mailing list