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

On 4/8/15 7:29 AM, Reece Dunn wrote:
> Assuming that you just have the DOM data structure in memory, you have
> an in-order traversal of the DOM.

Stop right there.

You're solving the "here is a selector, find the nodes it matches" 
problem.  The "fast" profile is meant to solve the "here is a node, find 
all the selectors that match it" problem, since the latter problem is 
the one relevant to CSS styling of a DOM.

I suggest you think carefully about how you would implement the "id 
selector only matches the first node in the DOM with that id" behavior 
in the "here is a node, find all the selectors that match it" problem.

-Boris

Received on Wednesday, 8 April 2015 13:58:49 UTC