Dear WG,

I've got some comments on the recently published WD of Selectors API.

> The term context node refers to the node upon which the method was invoked.
Could this name be changed? It causes confusion with XPath 1.0.

> The term node's subtree refers to the tree of elements that are descendants 
> of the context node.
They often don't form a tree. The name should be changed or the node itself 
included. Clarification is necessary either way because it affects the 
prescribed behaviour when the node is an element which matches the group of 
selectors.

> Authors are advised that while the use of pseudo-elements in selectors is 
> permitted, they will not match any elements in the document, and thus would 
> not result in any elements being returned.
The CSS WG is currently wondering whether elements should be able to be 
descendants of some pseudo-elements (notably :selection, :first-line and 
:first-letter). So this note may need correction.

Reply via email to