- From: Boris Zbarsky <bzbarsky@mit.edu>
- Date: Wed, 08 Apr 2015 11:46:39 -0400
- 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
https://dom.spec.whatwg.org/#dom-parentnode-queryall
-Boris
Received on Wednesday, 8 April 2015 15:47:08 UTC