summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/duktape/HTMLCollection.bnd
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/javascript/duktape/HTMLCollection.bnd')
-rw-r--r--content/handlers/javascript/duktape/HTMLCollection.bnd24
1 files changed, 24 insertions, 0 deletions
diff --git a/content/handlers/javascript/duktape/HTMLCollection.bnd b/content/handlers/javascript/duktape/HTMLCollection.bnd
new file mode 100644
index 000000000..2ffe7027b
--- /dev/null
+++ b/content/handlers/javascript/duktape/HTMLCollection.bnd
@@ -0,0 +1,24 @@
+/* HTMLCollection binding for browser using duktape and libdom
+ *
+ * Copyright 2015 Vincent Sanders <vince@netsurf-browser.org>
+ *
+ * This file is part of NetSurf, http://www.netsurf-browser.org/
+ *
+ * Released under the terms of the MIT License,
+ * http://www.opensource.org/licenses/mit-license
+ */
+
+class HTMLCollection {
+ private struct dom_html_collection *coll;
+};
+
+init HTMLCollection(struct dom_html_collection *coll)
+%{
+ priv->coll = coll;
+ dom_html_collection_ref(coll);
+%}
+
+fini HTMLCollection()
+%{
+ dom_html_collection_unref(priv->coll);
+%}