From bd3bacdc2cc57c6409bea25593b4a63615de4429 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sun, 5 Jan 2025 12:32:26 +0800 Subject: [PATCH] docs: update `replaceWith` arguments --- API.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index c8e55ee..2afef72 100644 --- a/API.md +++ b/API.md @@ -254,7 +254,7 @@ if (next && next.type !== 'combinator') { } ``` -### `node.replaceWith(node)` +### `node.replaceWith(node[,...nodeN])` Replace a node with another. @@ -267,6 +267,8 @@ attr.replaceWith(className); Arguments: * `node`: The node to substitute the original with. +... +* `nodeN`: The node to substitute the original with. ### `node.remove()`