summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-10-14 09:09:41 +0100
committerVincent Sanders <vince@kyllikki.org>2015-10-14 09:09:41 +0100
commit2b71eef7637e95617f7c5bd880e41106c989fdfe (patch)
tree90f79bb4a2c95cc2484115576c257e2345d4576b /javascript
parent079667ee6cad0c2f2d97a3a5435c70edc72ff78e (diff)
downloadnetsurf-2b71eef7637e95617f7c5bd880e41106c989fdfe.tar.gz
netsurf-2b71eef7637e95617f7c5bd880e41106c989fdfe.tar.bz2
add automaticaly generated property setter and getters to HTMLOptionElement
Diffstat (limited to 'javascript')
-rw-r--r--javascript/duktape/HTMLOptionElement.bnd28
-rw-r--r--javascript/duktape/netsurf.bnd2
2 files changed, 29 insertions, 1 deletions
diff --git a/javascript/duktape/HTMLOptionElement.bnd b/javascript/duktape/HTMLOptionElement.bnd
new file mode 100644
index 000000000..d5094b7fa
--- /dev/null
+++ b/javascript/duktape/HTMLOptionElement.bnd
@@ -0,0 +1,28 @@
+/* HTML option element binding 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
+ */
+
+init HTMLOptionElement(struct dom_html_element *html_option_element::html_element);
+
+getter HTMLOptionElement::defaultSelected();
+setter HTMLOptionElement::defaultSelected();
+
+getter HTMLOptionElement::disabled();
+setter HTMLOptionElement::disabled();
+
+getter HTMLOptionElement::label();
+setter HTMLOptionElement::label();
+
+getter HTMLOptionElement::selected();
+setter HTMLOptionElement::selected();
+
+getter HTMLOptionElement::text();
+
+getter HTMLOptionElement::value();
+setter HTMLOptionElement::value();
diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd
index ccca6730b..3066a7c66 100644
--- a/javascript/duktape/netsurf.bnd
+++ b/javascript/duktape/netsurf.bnd
@@ -91,6 +91,7 @@ struct dom_html_br_element;
#include "HTMLMenuElement.bnd"
#include "HTMLMetaElement.bnd"
#include "HTMLObjectElement.bnd"
+#include "HTMLOptionElement.bnd"
init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element);
init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element);
@@ -106,7 +107,6 @@ init HTMLProgressElement(struct dom_html_element *html_progress_element::html_el
init HTMLOutputElement(struct dom_html_element *html_output_element::html_element);
init HTMLKeygenElement(struct dom_html_element *html_keygen_element::html_element);
init HTMLTextAreaElement(struct dom_html_element *html_text_area_element::html_element);
-init HTMLOptionElement(struct dom_html_element *html_option_element::html_element);
init HTMLOptGroupElement(struct dom_html_element *html_opt_group_element::html_element);
init HTMLDataListElement(struct dom_html_element *html_data_list_element::html_element);
init HTMLSelectElement(struct dom_html_element *html_select_element::html_element);