- From: Simon Sapin <simon.sapin@exyr.org>
- Date: Tue, 18 Feb 2014 14:33:05 +0000
- To: Jirka Kosek <jirka@kosek.cz>
- CC: www-style <www-style@w3.org>
On 18/02/2014 13:30, Jirka Kosek wrote: > I have updated definition: > > http://dev.w3.org/csswg/selectors-nonelement/#attribute-node-selector > > I still use <qualified-name> term which is defined in the CSSNAMESPACES, > mainly because there is not better anchor in the referenced spec. Please > let me know whether you think it is clear enough now. Looks good. >> In http://lists.w3.org/Archives/Public/www-style/2014Feb/0546.html, >> Jirka Kosek said: >>> You can select all attributes by ::attr(*) >> >> According to the current ED you can not. `*` matches none of <qname>, >> <wqname>, or "CSS qualified name". >> >> If the intent is to allow this, selectors-nonelement needs additional >> spec text, similar to how type selectors and universal selectors are >> defined separately. >> Also, it’s not clear that ::attr(*) selects all attributes rather than >> just attributes that are in no namespace. > > I added it into grammar and added one paragraph description. > >> So the "default" behavior of ::attr(foo) and ::attr(*), with the prefix >> omitted, is to select attributes in no namespace. > > ::attr(*) selects all attributes with or without namespace. But ::attr(href) still only matches attributes without a namespace, and ::attr(xlink|*) is not allowed. Is that intended? -- Simon Sapin
Received on Tuesday, 18 February 2014 14:33:31 UTC