[whatwg] Selectors within <style scoped>

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