We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
container.atPosition()
1 parent 91a0147 commit c3db2ffCopy full SHA for c3db2ff
API.md
@@ -395,16 +395,18 @@ Arguments:
395
396
### `container.atPosition(line, column)`
397
398
-Returns the node at the source position `index`.
+Returns the node at the source position `line` and `column`.
399
400
```js
401
-selector.at(0) === selector.first;
402
-selector.at(0) === selector.nodes[0];
+// Input: :not(.foo),\n#foo > :matches(ol, ul)
+selector.atPosition(1, 1); // => :not(.foo)
403
+selector.atPosition(2, 1); // => \n#foo
404
```
405
406
Arguments:
407
-* `index`: The index of the node to return.
408
+* `line`: The line number of the node to return.
409
+* `column`: The column number of the node to return.
410
411
### `container.index(node)`
412
0 commit comments