W3C home > Mailing lists > Public > www-style@w3.org > April 2015

Re: W3C can say (?) what an ID means to CSS4, in the fast profile context

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Wed, 08 Apr 2015 11:46:39 -0400
Message-ID: <55254D5F.1080705@mit.edu>
To: Reece Dunn <msclrhd@googlemail.com>
CC: www-style list <www-style@w3.org>
On 4/8/15 11:42 AM, Reece Dunn wrote:
> 1.  Shouldn't the fast profile give an example ("For example, the
> element.matches() method defined in [DOM] can use the 'fast'
> profile.")?

element.matches() can use the complete profile, actually.  This is why 
the names suck.

I like the 'static' vs 'dynamic' proposal for renaming these things. 
'fast' == 'dynamic' (i.e. your match result set has to respond to DOM 
changes), 'complete' == 'static' (i.e. you match once and are done).

> NOTE: These changes use the DOM APIs described in the introduction,
> for the node-based (matches) and DOM traversal (queryAll) use cases.
> This helps clarify the intended usage.

The intended usage is that all the DOM APIs use the 'complete'/'static' 
profile and selector matching for purposes of CSS styling uses the 
'fast'/'dynamic' profile.

> Q: Should the DOM functions be `querySelectorAll` instead of
> `queryAll` and `querySelector` instead of `query`, as I cannot find
> query/queryAll in the referenced DOM spec?

See https://dom.spec.whatwg.org/#dom-parentnode-query and 

Received on Wednesday, 8 April 2015 15:47:08 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:50 UTC