Re: [css3-selectors] 6.1. Type selector

On Sun, 18 Dec 2005, Anne van Kesteren wrote:
> 
> """A type selector represents an instance of the element type in the document
> tree."""[1]
> 
> Shouldn't that be something along the lines of:
> 
> # ... represents all instances of the element ...
> 
> Same for the example.

No, it represents an instance. The instance might be a particular element 
being examined (in the case of CSS, e.g.), or it might be all of the 
instances (in the case of getElementsBySelector, e.g.), or it might be a 
hypothetical element that does not yet exist (in the case of expressions 
on the RHS of an STTS rule, e.g.).


> """A namespace prefix that has been previously declared ..."""[2]
> 
> Shouldn't it be left to the language using Selectors which prefixes are 
> in scope?

Yes; the sentence you quote does not disagree with this (it's the language 
using Selectors that defines if the prefix is "previously declared" in 
that context or not).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Monday, 19 December 2005 06:17:49 UTC