summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Docs/UnimplementedJavascript.txt18
-rw-r--r--javascript/duktape/HTMLBodyElement.bnd24
-rw-r--r--javascript/duktape/HTMLButtonElement.bnd18
-rw-r--r--javascript/duktape/netsurf.bnd4
4 files changed, 44 insertions, 20 deletions
diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt
index ae4f34062..91f7bfdbe 100644
--- a/Docs/UnimplementedJavascript.txt
+++ b/Docs/UnimplementedJavascript.txt
@@ -606,14 +606,6 @@ getter HTMLAreaElement::type(string);\n
setter HTMLAreaElement::type(string);\n
getter HTMLAreaElement::username(user);\n
setter HTMLAreaElement::username(user);\n
-getter HTMLBodyElement::aLink(string);\n
-setter HTMLBodyElement::aLink(string);\n
-getter HTMLBodyElement::background(string);\n
-setter HTMLBodyElement::background(string);\n
-getter HTMLBodyElement::bgColor(string);\n
-setter HTMLBodyElement::bgColor(string);\n
-getter HTMLBodyElement::link(string);\n
-setter HTMLBodyElement::link(string);\n
getter HTMLBodyElement::onafterprint(user);\n
setter HTMLBodyElement::onafterprint(user);\n
getter HTMLBodyElement::onbeforeprint(user);\n
@@ -640,15 +632,9 @@ getter HTMLBodyElement::onstorage(user);\n
setter HTMLBodyElement::onstorage(user);\n
getter HTMLBodyElement::onunload(user);\n
setter HTMLBodyElement::onunload(user);\n
-getter HTMLBodyElement::text(string);\n
-setter HTMLBodyElement::text(string);\n
-getter HTMLBodyElement::vLink(string);\n
-setter HTMLBodyElement::vLink(string);\n
getter HTMLButtonElement::autofocus(boolean);\n
setter HTMLButtonElement::autofocus(boolean);\n
method HTMLButtonElement::checkValidity();\n
-getter HTMLButtonElement::disabled(boolean);\n
-setter HTMLButtonElement::disabled(boolean);\n
getter HTMLButtonElement::formAction(string);\n
setter HTMLButtonElement::formAction(string);\n
getter HTMLButtonElement::formEnctype(string);\n
@@ -663,16 +649,12 @@ getter HTMLButtonElement::form(user);\n
getter HTMLButtonElement::labels(user);\n
getter HTMLButtonElement::menu(user);\n
setter HTMLButtonElement::menu(user);\n
-getter HTMLButtonElement::name(string);\n
-setter HTMLButtonElement::name(string);\n
method HTMLButtonElement::reportValidity();\n
method HTMLButtonElement::setCustomValidity();\n
getter HTMLButtonElement::type(string);\n
setter HTMLButtonElement::type(string);\n
getter HTMLButtonElement::validationMessage(string);\n
getter HTMLButtonElement::validity(user);\n
-getter HTMLButtonElement::value(string);\n
-setter HTMLButtonElement::value(string);\n
getter HTMLButtonElement::willValidate(boolean);\n
method HTMLCanvasElement::getContext();\n
getter HTMLCanvasElement::height(long);\n
diff --git a/javascript/duktape/HTMLBodyElement.bnd b/javascript/duktape/HTMLBodyElement.bnd
new file mode 100644
index 000000000..a283f897c
--- /dev/null
+++ b/javascript/duktape/HTMLBodyElement.bnd
@@ -0,0 +1,24 @@
+/* HTML body 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 HTMLBodyElement(struct dom_html_element *html_body_element::html_element);
+
+getter HTMLBodyElement::aLink();
+setter HTMLBodyElement::aLink();
+getter HTMLBodyElement::background();
+setter HTMLBodyElement::background();
+getter HTMLBodyElement::bgColor();
+setter HTMLBodyElement::bgColor();
+getter HTMLBodyElement::link();
+setter HTMLBodyElement::link();
+getter HTMLBodyElement::text();
+setter HTMLBodyElement::text();
+getter HTMLBodyElement::vLink();
+setter HTMLBodyElement::vLink();
diff --git a/javascript/duktape/HTMLButtonElement.bnd b/javascript/duktape/HTMLButtonElement.bnd
new file mode 100644
index 000000000..53431aa04
--- /dev/null
+++ b/javascript/duktape/HTMLButtonElement.bnd
@@ -0,0 +1,18 @@
+/* HTML button 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 HTMLButtonElement(struct dom_html_element *html_button_element::html_element);
+
+getter HTMLButtonElement::disabled();
+setter HTMLButtonElement::disabled();
+getter HTMLButtonElement::name();
+setter HTMLButtonElement::name();
+getter HTMLButtonElement::value();
+setter HTMLButtonElement::value();
diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd
index e5daa81ed..dd208d373 100644
--- a/javascript/duktape/netsurf.bnd
+++ b/javascript/duktape/netsurf.bnd
@@ -66,6 +66,8 @@ struct dom_html_br_element;
#include "HTMLAppletElement.bnd"
#include "HTMLAreaElement.bnd"
#include "HTMLBaseElement.bnd"
+#include "HTMLBodyElement.bnd"
+#include "HTMLButtonElement.bnd"
#include "HTMLBRElement.bnd"
#include "HTMLHRElement.bnd"
@@ -94,7 +96,6 @@ init HTMLOptionElement(struct dom_html_element *html_option_element::html_elemen
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);
-init HTMLButtonElement(struct dom_html_element *html_button_element::html_element);
init HTMLInputElement(struct dom_html_element *html_input_element::html_element);
init HTMLLabelElement(struct dom_html_element *html_label_element::html_element);
init HTMLFormElement(struct dom_html_element *html_form_element::html_element);
@@ -127,7 +128,6 @@ init HTMLQuoteElement(struct dom_html_element *html_quote_element::html_element)
init HTMLPreElement(struct dom_html_element *html_pre_element::html_element);
init HTMLParagraphElement(struct dom_html_element *html_paragraph_element::html_element);
init HTMLHeadingElement(struct dom_html_element *html_heading_element::html_element);
-init HTMLBodyElement(struct dom_html_element *html_body_element::html_element);
init HTMLStyleElement(struct dom_html_element *html_style_element::html_element);
init HTMLMetaElement(struct dom_html_element *html_meta_element::html_element);
init HTMLLinkElement(struct dom_html_element *html_link_element::html_element);