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
name</a>, and separates two compound selectors, e.g. <code>A /attr/ B</code>.
2502
-
The elements represented by the two compound seletors are related in
2503
-
that an element represented by the first compound selector has an
2504
-
ID-reference to the element represented by the second compound selector.
2505
-
The ID reference can be given as either an IDREF or a fragment URL: the
2506
-
reference is valid as long as the value of the attribute named in the
2507
-
combinator consists of either the ID alone or a hash mark (#) followed
2508
-
by the ID. Attribute matching for reference combinators follow the same rules
2509
-
as for <ahref="http://www.w3.org/TR/css3-selectors/#attribute-selectors">attribute
2510
-
selectors</a>.
2499
+
<p>
2500
+
The <dfn>reference combinator</dfn> consists of two slashes
2501
+
with an indetervening <ahref="http://www.w3.org/TR/css3-namespace/#css-qnames">CSS qualified name</a>,
2502
+
and separates two compound selectors,
2503
+
e.g. <code>A /attr/ B</code>.
2504
+
The element represented by the first compound selector
2505
+
explicitly references
2506
+
the element represented by the second compound selector.
2507
+
Unless the host language defines a different syntax for expressing this relationship,
2508
+
this relationship is considered to exist if
2509
+
the value of the specified attribute on the first element is an IDREF or an <i>ID selector</i>
2510
+
referencing the second element.
2511
+
2512
+
Attribute matching for reference combinators follow the same rules as for <ahref="http://www.w3.org/TR/css3-selectors/#attribute-selectors">attribute selectors</a>.
2511
2513
2512
2514
<divclass="example">
2513
2515
<p>The following example highlights an <code><input></code> element
0 commit comments