Skip to content

Commit 39df811

Browse files
committed
[selectors] Restore definition of the subject of a selector, since that is a term that has been around to describe how selectors work since 1998 at least, and shouldn't just disappear from our specs.
1 parent be8f9af commit 39df811

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

selectors/Overview.bs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,17 @@ Selector Syntax and Structure</h2>
501501
<h3 id="structure">
502502
Structure and Terminology</h3>
503503

504+
The elements of a document tree that are represented by a <a>selector</a>
505+
are the <dfn title="subject">subjects</dfn> of the selector.
506+
The subjects of a selector are the elements represented
507+
by the last <a>compound selector</a> in the selector.
508+
Thus a selector consisting of a single <a>compound selector</a>
509+
represents any element satisfying its requirements.
510+
Prepending another <a>compound selector</a> and a <a>combinator</a>
511+
to a sequence imposes additional matching constraints,
512+
so the <a>subjects</a> of the selector are always a subset of
513+
the elements represented by the last <a>compound selector</a>.
514+
504515
The term <dfn export>selector</dfn> can refer to a <a>simple selector</a>,
505516
<a>compound selector</a>, <a>complex selector</a>, or <a>selector list</a>.
506517

0 commit comments

Comments
 (0)