summaryrefslogtreecommitdiff
path: root/test/data/idl/document.idl
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2012-09-05 11:38:56 +0100
committerVincent Sanders <vincent.sanders@collabora.co.uk>2012-09-05 20:06:05 +0100
commit26dc8906aeb0783cf36bde31e9051b29a193eb23 (patch)
tree0921de4f6a92c3dc6571c1ba693e4ff19d76df8d /test/data/idl/document.idl
parent1c7bc7e17ace1e457c4c0336353f142aef36d254 (diff)
downloadnsgenbind-26dc8906aeb0783cf36bde31e9051b29a193eb23.tar.gz
nsgenbind-26dc8906aeb0783cf36bde31e9051b29a193eb23.tar.bz2
make tests work
add basic commandlien handling
Diffstat (limited to 'test/data/idl/document.idl')
-rw-r--r--test/data/idl/document.idl37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/data/idl/document.idl b/test/data/idl/document.idl
new file mode 100644
index 0000000..afab566
--- /dev/null
+++ b/test/data/idl/document.idl
@@ -0,0 +1,37 @@
+interface Document : Node {
+ readonly attribute DOMImplementation implementation;
+ readonly attribute DOMString URL;
+ readonly attribute DOMString documentURI;
+ readonly attribute DOMString compatMode;
+ readonly attribute DOMString characterSet;
+ readonly attribute DOMString contentType;
+
+ readonly attribute DocumentType? doctype;
+ readonly attribute Element? documentElement;
+ HTMLCollection getElementsByTagName(DOMString localName);
+ HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
+ HTMLCollection getElementsByClassName(DOMString classNames);
+ Element? getElementById(DOMString elementId);
+
+ Element createElement(DOMString localName);
+ Element createElementNS(DOMString? namespace, DOMString qualifiedName);
+ DocumentFragment createDocumentFragment();
+ Text createTextNode(DOMString data);
+ Comment createComment(DOMString data);
+ ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
+
+ Node importNode(Node node, optional boolean deep = true);
+ Node adoptNode(Node node);
+
+ Event createEvent(DOMString interface);
+
+ Range createRange();
+
+ // NodeFilter.SHOW_ALL = 0xFFFFFFFF
+ NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
+ TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
+
+ // NEW
+ void prepend((Node or DOMString)... nodes);
+ void append((Node or DOMString)... nodes);
+};