summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/Document.idl
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2020-08-17 19:14:30 +0100
committerAndreas Kling <kling@serenityos.org>2020-08-17 22:57:05 +0200
commit8b807e65d7fe423a35a7d506f89b0532f45aa032 (patch)
tree26a198bb82d6ccc131a7d8a42934d0c661003edf /Libraries/LibWeb/DOM/Document.idl
parent7b755e6a58b84ab81aad588b7eb17bc7f4be8c46 (diff)
downloadserenity-8b807e65d7fe423a35a7d506f89b0532f45aa032.zip
LibWeb: Add Comment and DocumentFragment bindings, move querySelector...
...{All} to ParentNode. Exposes createDocumentFragment and createComment on Document. Stubs out the document.body setter. Also adds ParentNode back :^).
Diffstat (limited to 'Libraries/LibWeb/DOM/Document.idl')
-rw-r--r--Libraries/LibWeb/DOM/Document.idl7
1 files changed, 6 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/Document.idl b/Libraries/LibWeb/DOM/Document.idl
index f2cbf8eafa..48c2fd6765 100644
--- a/Libraries/LibWeb/DOM/Document.idl
+++ b/Libraries/LibWeb/DOM/Document.idl
@@ -4,12 +4,17 @@ interface Document : Node {
Element? querySelector(DOMString selectors);
ArrayFromVector getElementsByTagName(DOMString tagName);
ArrayFromVector querySelectorAll(DOMString selectors);
+
Element createElement(DOMString tagName);
+ DocumentFragment createDocumentFragment();
+ Text createTextNode(DOMString data);
+ Comment createComment(DOMString data);
readonly attribute DOMString compatMode;
readonly attribute DocumentType? doctype;
readonly attribute Element? documentElement;
- readonly attribute HTMLElement? body;
+ attribute HTMLElement? body;
+ readonly attribute HTMLHeadElement? head;
}