File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ browser-compat: api.CharacterData.remove
8
8
9
9
{{APIRef("DOM")}}
10
10
11
- The ** ` remove() ` ** method of the {{domxref("CharacterData")}} removes the text contained in the node.
11
+ The ** ` remove() ` ** method of the {{domxref("CharacterData")}} removes it from its parent node.
12
+ If it has no parent node, calling ` remove() ` does nothing.
12
13
13
14
## Syntax
14
15
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ browser-compat: api.DocumentType.remove
9
9
{{APIRef("DOM")}}
10
10
11
11
The ** ` DocumentType.remove() ` ** method removes a document's ` doctype ` .
12
+ If it is already detached from the document, calling ` remove() ` does nothing.
12
13
13
14
## Syntax
14
15
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ browser-compat: api.Element.remove
8
8
9
9
{{APIRef("DOM")}}
10
10
11
- The ** ` Element.remove() ` ** method removes the element from the DOM.
11
+ The ** ` Element.remove() ` ** method removes the element from its parent node.
12
+ If it has no parent node, calling ` remove() ` does nothing.
12
13
13
14
## Syntax
14
15
You can’t perform that action at this time.
0 commit comments