Note about nth-child and preceding elements.

This commit is contained in:
Yorick Peterse 2014-11-03 09:31:02 +01:00
parent 8446e172e7
commit 5d57f62f76
1 changed files with 5 additions and 2 deletions

View File

@ -398,8 +398,11 @@ For `:root` the XPath expression is:
### :nth-child(n) ### :nth-child(n)
The `:nth-child(n)` selector can be used to select a set of elements based on The `:nth-child(n)` selector can be used to select a set of elements based on
their position and/or an interval. Here `n` is an argument that can be used to their position or an interval, skipping elements that occur in a set before
specify one of the following: the given position or interval.
In the form `:nth-child(n)` the identifier `n` is an argument that can be used
to specify one of the following:
1. A literal node set index 1. A literal node set index
2. A node interval used to match every N nodes 2. A node interval used to match every N nodes