Skip to content

Commit d32b3ed

Browse files
committed
[selectors] Forgot to allow and define the case where :drop() is empty.
1 parent 82b6280 commit d32b3ed

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

selectors/Overview.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3003,7 +3003,7 @@ <h3 id=drag-pseudos><span class=secno>9.4. </span> The drag-and-drop
30033003
additional filters to be specified that can exclude some drop targets. Its
30043004
syntax is:
30053005

3006-
<pre class=prod>:drop( [ active || valid || invalid ] )</pre>
3006+
<pre class=prod>:drop( [ active || valid || invalid ]? )</pre>
30073007

30083008
<p> The keywords have the following meanings:
30093009

@@ -3035,6 +3035,11 @@ <h3 id=drag-pseudos><span class=secno>9.4. </span> The drag-and-drop
30353035
class=css>:drop(valid active)</code>’ will match the active drop target
30363036
<em>if</em> it's valid, but not if it's invalid.
30373037

3038+
<p> If no keywords are given in the argument, ‘<a href="#drop0"><code
3039+
class=css>:drop()</code></a>’ has the same meaning as ‘<a
3040+
href="#drop"><code class=css>:drop</code></a>’ - it matches every drop
3041+
target.
3042+
30383043
<h2 id=time-pseudos><span class=secno>10. </span> Time-dimensional
30393044
Pseudo-classes</h2>
30403045

selectors/Overview.src.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,7 @@ <h3 id="drag-pseudos">
20502050
but allows additional filters to be specified that can exclude some drop targets.
20512051
Its syntax is:
20522052

2053-
<pre class='prod'>:drop( [ active || valid || invalid ] )</pre>
2053+
<pre class='prod'>:drop( [ active || valid || invalid ]? )</pre>
20542054

20552055
<p>
20562056
The keywords have the following meanings:
@@ -2084,6 +2084,11 @@ <h3 id="drag-pseudos">
20842084
For example, '':drop(valid active)'' will match the active drop target <em>if</em> it's valid,
20852085
but not if it's invalid.
20862086

2087+
<p>
2088+
If no keywords are given in the argument,
2089+
'':drop()'' has the same meaning as '':drop''
2090+
- it matches every drop target.
2091+
20872092
<h2 id="time-pseudos">
20882093
Time-dimensional Pseudo-classes</h2>
20892094

0 commit comments

Comments
 (0)