Re: [selectors-nonelement] ::attr(*|localname), ::attr(ns|*), and ::attr(*)

On 05/03/2014 19:29, Tab Atkins Jr. wrote:
> Sounds good, I've done so.

In Mercurial revision 8b114fb059e7:

>   <namespace-attr> = [ <na-prefix>? '|' ]? <na-name>
>   <na-prefix> = <ident> | '*'

> If the <na-prefix> is omitted, the selector only matches attributes
> in no namespace.

Does this apply to both ::attr(href) and ::attr(|href) ? The current 
spec text is unclear.

> If the <na-name> is an <ident>, the selector matches attributes with
> that name. If the <na-name> is a * character, the selector matches
> any attribute.

I would replace "any attribute" with "attributes with any name". 
::attr(ns|*) and ::attr(|*) are still subject to namespace filtering.

Simon Sapin

Received on Thursday, 6 March 2014 12:06:15 UTC