You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p> An <dfndata-dfn-type=dfndata-export="" id=attribute-node-selector0>attribute node selector<aclass=self-linkhref=#attribute-node-selector0></a></dfn> represents an attribute node in a document tree.
<p> No whitespace is allowed between the tokens of <aclass="production css-code" data-link-type=typehref=#typedef-namespace-attrtitle="<namespace-attr>"><namespace-attr></a>.
160
160
161
-
<aclass="production css-code" data-link-type=typehref=#typedef-namespace-attrtitle="<namespace-attr>"><namespace-attr></a> is divided into two halves:
161
+
<p><aclass="production css-code" data-link-type=typehref=#typedef-namespace-attrtitle="<namespace-attr>"><namespace-attr></a> is divided into two halves:
<p> If the attribute name is an <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#ltidenttitle="<ident>"><ident></a>,
176
176
the selector matches attributes with that name.
177
177
If the attribute name is a <aclass=propertydata-link-type=propdesctitle=*>*</a> character,
178
-
it matches any attribute.
178
+
the selector matches any attribute.
179
+
180
+
<p> If the <aclass="production css-code" data-link-type=typehref=#typedef-namespace-attrtitle="<namespace-attr>"><namespace-attr></a> is omitted entirely,
181
+
the selector matches any attribute in any namespace.
179
182
180
183
<p> The selector matches an attribute node with the given namespace and name on the <adata-link-type=dfnhref=http://dev.w3.org/csswg/selectors-4/#originating-elementtitle="originating element">originating element</a>,
181
184
if such an attribute exists.
182
185
183
186
<p> The selector uses <adata-link-type=dfnhref=http://dev.w3.org/csswg/selectors-4/#pseudo-elementtitle=pseudo-element>pseudo-element</a> syntax.
184
187
185
-
<divclass=example>
186
-
For example,
187
-
the selector <spanclass=cssdata-link-type=maybetitle=::attr(title)>::attr(title)</span> selects all the <code>title</code> attributes in the document.
188
-
</div>
189
-
190
188
<divclass=example>
191
189
The following ITS rules use an attribute node selector
192
190
to switch off translatability of <code>title</code> attribute on <code>abbr</code> elements.
0 commit comments