Skip to content

Commit bd3bacd

Browse files
committed
docs: update replaceWith arguments
1 parent 56d7fea commit bd3bacd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

API.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ if (next && next.type !== 'combinator') {
254254
}
255255
```
256256

257-
### `node.replaceWith(node)`
257+
### `node.replaceWith(node[,...nodeN])`
258258

259259
Replace a node with another.
260260

@@ -267,6 +267,8 @@ attr.replaceWith(className);
267267
Arguments:
268268

269269
* `node`: The node to substitute the original with.
270+
...
271+
* `nodeN`: The node to substitute the original with.
270272

271273
### `node.remove()`
272274

0 commit comments

Comments
 (0)