From c1937ee617e1238ca74efa664e25843d8fc2785f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 14 Oct 2015 13:20:28 +0100 Subject: [PATCH] add automaticaly generated property setter and getters to HTMLScriptElement --- Docs/UnimplementedJavascript.txt | 14 ----------- javascript/duktape/HTMLScriptElement.bnd | 32 ++++++++++++++++++++++++ javascript/duktape/netsurf.bnd | 2 +- 3 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 javascript/duktape/HTMLScriptElement.bnd diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index 83de01120..8994e638f 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -1229,24 +1229,10 @@ getter HTMLProgressElement::value(double);\n setter HTMLProgressElement::value(double);\n getter HTMLScriptElement::async(boolean);\n setter HTMLScriptElement::async(boolean);\n -getter HTMLScriptElement::charset(string);\n -setter HTMLScriptElement::charset(string);\n getter HTMLScriptElement::crossOrigin(string);\n setter HTMLScriptElement::crossOrigin(string);\n -getter HTMLScriptElement::defer(boolean);\n -setter HTMLScriptElement::defer(boolean);\n -getter HTMLScriptElement::event(string);\n -setter HTMLScriptElement::event(string);\n -getter HTMLScriptElement::htmlFor(string);\n -setter HTMLScriptElement::htmlFor(string);\n getter HTMLScriptElement::nonce(string);\n setter HTMLScriptElement::nonce(string);\n -getter HTMLScriptElement::src(string);\n -setter HTMLScriptElement::src(string);\n -getter HTMLScriptElement::text(string);\n -setter HTMLScriptElement::text(string);\n -getter HTMLScriptElement::type(string);\n -setter HTMLScriptElement::type(string);\n method HTMLSelectElement::add();\n getter HTMLSelectElement::autocomplete(string);\n setter HTMLSelectElement::autocomplete(string);\n diff --git a/javascript/duktape/HTMLScriptElement.bnd b/javascript/duktape/HTMLScriptElement.bnd new file mode 100644 index 000000000..b3b22665a --- /dev/null +++ b/javascript/duktape/HTMLScriptElement.bnd @@ -0,0 +1,32 @@ +/* HTML script element binding using duktape and libdom + * + * Copyright 2015 Vincent Sanders + * + * 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 HTMLScriptElement(struct dom_html_element *html_script_element::html_element); + +getter HTMLScriptElement::charset(); +setter HTMLScriptElement::charset(); + +getter HTMLScriptElement::defer(); +setter HTMLScriptElement::defer(); + +getter HTMLScriptElement::event(); +setter HTMLScriptElement::event(); + +getter HTMLScriptElement::htmlFor(); +setter HTMLScriptElement::htmlFor(); + +getter HTMLScriptElement::src(); +setter HTMLScriptElement::src(); + +getter HTMLScriptElement::text(); +setter HTMLScriptElement::text(); + +getter HTMLScriptElement::type(); +setter HTMLScriptElement::type(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index 15784369b..87e404880 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -95,12 +95,12 @@ struct dom_html_br_element; #include "HTMLParagraphElement.bnd" #include "HTMLParamElement.bnd" #include "HTMLQuoteElement.bnd" +#include "HTMLScriptElement.bnd" init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element); init HTMLCanvasElement(struct dom_html_element *html_canvas_element::html_element); init HTMLTemplateElement(struct dom_html_element *html_template_element::html_element); -init HTMLScriptElement(struct dom_html_element *html_script_element::html_element); init HTMLDialogElement(struct dom_html_element *html_dialog_element::html_element); init HTMLMenuItemElement(struct dom_html_element *html_menu_item_element::html_element); init HTMLDetailsElement(struct dom_html_element *html_details_element::html_element);