mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 10:05:07 +00:00

This requires moving remove_all_children() from ParentNode to Node, which makes ParentNode.cpp empty, so remove it. It also co-opts the existing Node::text_content() method and tweaks it slightly to fit the semantics of Node.textContent.
16 lines
454 B
Text
16 lines
454 B
Text
interface Node : EventTarget {
|
|
|
|
readonly attribute DOMString nodeName;
|
|
readonly attribute Node? firstChild;
|
|
readonly attribute Node? lastChild;
|
|
readonly attribute Node? previousSibling;
|
|
readonly attribute Node? nextSibling;
|
|
readonly attribute Node? parentNode;
|
|
readonly attribute Element? parentElement;
|
|
attribute DOMString textContent;
|
|
|
|
Node appendChild(Node node);
|
|
Node insertBefore(Node node, Node? child);
|
|
|
|
}
|
|
|