Skip to content

Commit 9221f33

Browse files
committed
Note that type selectors are what everyone thinks of as tag name selectors
1 parent 18f2e52 commit 9221f33

2 files changed

Lines changed: 45 additions & 16 deletions

File tree

selectors4/Overview.html

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919

2020
<h1 id=title>Selectors Level 4</h1>
2121

22-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 23 January
22+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 28 February
2323
2012</h2>
2424

2525
<dl>
2626
<dt>This version: <!--
27-
<dd><a href="http://www.w3.org/TR/2012/ED-selectors4-20120123/">
28-
http://www.w3.org/TR/2012/WD-selectors4-20120123/</a>
27+
<dd><a href="http://www.w3.org/TR/2012/ED-selectors4-20120228/">
28+
http://www.w3.org/TR/2012/WD-selectors4-20120228/</a>
2929
3030
<dt>Editor's draft:
3131
-->
@@ -92,13 +92,13 @@ <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 23 January
9292

9393
<h2 class="no-num no-toc" id=abstract> Abstract</h2>
9494

95-
<p><em>Selectors</em> are patterns that match against elements in a tree,
96-
and as such form one of several technologies that can be used to select
97-
nodes in an XML document. Selectors have been optimized for use with HTML
98-
and XML, and are designed to be usable in performance-critical code. They
99-
are a core component of <abbr title="Cascading Style Sheets">CSS</abbr>
100-
(Cascading Style Sheets), which uses Selectors to bind style properties to
101-
elements in the document.
95+
<p><a href="#selector"><em>Selectors</em></a> are patterns that match
96+
against elements in a tree, and as such form one of several technologies
97+
that can be used to select nodes in an XML document. Selectors have been
98+
optimized for use with HTML and XML, and are designed to be usable in
99+
performance-critical code. They are a core component of <abbr
100+
title="Cascading Style Sheets">CSS</abbr> (Cascading Style Sheets), which
101+
uses Selectors to bind style properties to elements in the document.
102102

103103
<p>Selectors Level 4 describes the selectors that already exist in <a
104104
href="#SELECT" rel=biblioentry>[SELECT]<!--{{!SELECT}}--></a>, and further
@@ -201,8 +201,8 @@ <h2 class="no-num no-toc" id=contents>Table of Contents</h2>
201201
<li><a href="#elemental-selectors"><span class=secno>5. </span> Elemental
202202
selectors</a>
203203
<ul class=toc>
204-
<li><a href="#type-selectors"><span class=secno>5.1. </span> Type
205-
selector</a>
204+
<li><a href="#type-selectors"><span class=secno>5.1. </span> Type (tag
205+
name) selector</a>
206206
<ul class=toc>
207207
<li><a href="#typenmsp"><span class=secno>5.1.1. </span> Type
208208
selectors and namespaces</a>
@@ -552,7 +552,7 @@ <h2 id=overview><span class=secno>2. </span> Selectors Overview</h2>
552552

553553
<td>an element of type E
554554

555-
<td><a href="#type-selectors">Type selector</a>
555+
<td><a href="#type-selectors">Type (tag name) selector</a>
556556

557557
<td>1
558558

@@ -1483,7 +1483,8 @@ <h3 id=negation><span class=secno>4.3. </span> The Negation Pseudo-class:
14831483

14841484
<h2 id=elemental-selectors><span class=secno>5. </span> Elemental selectors</h2>
14851485

1486-
<h3 id=type-selectors><span class=secno>5.1. </span> Type selector</h3>
1486+
<h3 id=type-selectors><span class=secno>5.1. </span> Type (tag name)
1487+
selector</h3>
14871488

14881489
<p>A <dfn id=type-selector>type selector</dfn> is the name of a document
14891490
language element type written using the syntax of <a
@@ -2235,6 +2236,9 @@ <h3 id=target-pseudo><span class=secno>7.4. </span> The target pseudo-class
22352236
<h3 id=scope-pseudo><span class=secno>7.5. </span> The contextual reference
22362237
element pseudo-class &lsquo;<code class=css>:scope</code>&rsquo;</h3>
22372238

2239+
<p class=issue>Should this be renamed to <code>:context</code>, since it's
2240+
referencing a <em>context</em>ual reference element?
2241+
22382242
<p>The <code>:scope</code> pseudo-class represents any element that is in
22392243
the <a href="#contextual-reference-element-set"><i>contextual reference
22402244
element set</i></a>. If no contextual reference element set is given,
@@ -2301,6 +2305,31 @@ <h3 id=hover-pseudo><span class=secno>8.1. </span> The pointer hover
23012305
not underneath the pointing device.
23022306

23032307
<p>The <code>:hover</code> pseudo-class can apply to any pseudo-element.
2308+
<!--
2309+
<h3 id="hover-pseudo">
2310+
The pointer hover pseudo-class '':drop-zone''</h3>
2311+
2312+
<p>The <code>:drop-zone</code> pseudo-class applies while the user
2313+
is &rdquo;dragging&ldquo; or otherwise conceptually carrying an item
2314+
for which the element is a valid drop target.
2315+
User agents not that do not support <a
2316+
href="http://www.w3.org/TR/CSS21/media.html#interactive-media-group">interactive
2317+
media</a> do not have to support this pseudo-class. Some conforming
2318+
user agents that support <a
2319+
href="http://www.w3.org/TR/CSS21/media.html#interactive-media-group">interactive
2320+
media</a> may not be able to support this pseudo-class (e.g., a
2321+
keyboard-only device that has no concept of dragging).
2322+
2323+
<div class="example">
2324+
<p>This pseudo-class could be used, for example, to highlight all the
2325+
valid drop targets for the item being dragged.
2326+
<pre>:drop-zone { box-shadow: 0 0 5px yellow; }</pre>
2327+
<p>It can also be combined with <code>:drag-over</code> to designate the
2328+
drop-zone that will receive the dragged item when dropped.
2329+
<pre>:drop-zone:drag-over { outline: solid red; }</pre>
2330+
</div>
2331+
-->
2332+
23042333

23052334
<h3 id=active-pseudo><span class=secno>8.2. </span> The activation
23062335
pseudo-class &lsquo;<code class=css>:active</code>&rsquo;</h3>

selectors4/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ <h2 id=overview>
163163
<tr>
164164
<td><code>E</code>
165165
<td>an element of type E
166-
<td><a href="#type-selectors">Type selector</a>
166+
<td><a href="#type-selectors">Type (tag name) selector</a>
167167
<td>1
168168
<tbody>
169169
<tr>
@@ -831,7 +831,7 @@ <h2 id=elemental-selectors>
831831
Elemental selectors</h2>
832832

833833
<h3 id=type-selectors>
834-
Type selector</h3>
834+
Type (tag name) selector</h3>
835835

836836
<p>A <dfn>type selector</dfn> is the name of a document language
837837
element type written using the syntax of

0 commit comments

Comments
 (0)