From d7924a5849aa8977ef261956353fbf4795454408 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 25 Oct 2015 19:12:12 +0000 Subject: [PATCH] add automaticaly generated property setter and getters to HTMLPreElement --- Docs/UnimplementedJavascript.txt | 2 -- javascript/duktape/HTMLPreElement.bnd | 15 +++++++++++++++ javascript/duktape/netsurf.bnd | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 javascript/duktape/HTMLPreElement.bnd diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index b8c9568eb..62a247376 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -1197,8 +1197,6 @@ getter HTMLOutputElement::validity(user);\n getter HTMLOutputElement::value(string);\n setter HTMLOutputElement::value(string);\n getter HTMLOutputElement::willValidate(boolean);\n -getter HTMLPreElement::width(long);\n -setter HTMLPreElement::width(long);\n getter HTMLProgressElement::labels(user);\n getter HTMLProgressElement::max(double);\n setter HTMLProgressElement::max(double);\n diff --git a/javascript/duktape/HTMLPreElement.bnd b/javascript/duktape/HTMLPreElement.bnd new file mode 100644 index 000000000..06f6a76a9 --- /dev/null +++ b/javascript/duktape/HTMLPreElement.bnd @@ -0,0 +1,15 @@ +/* HTML li 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 HTMLPreElement(struct dom_html_element *html_pre_element::html_element); + +getter HTMLPreElement::width(); +setter HTMLPreElement::width(); + diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index 2747ddf8b..b44c858f2 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -95,6 +95,7 @@ struct dom_html_br_element; #include "HTMLOListElement.bnd" #include "HTMLParagraphElement.bnd" #include "HTMLParamElement.bnd" +#include "HTMLPreElement.bnd" #include "HTMLQuoteElement.bnd" #include "HTMLScriptElement.bnd" #include "HTMLSelectElement.bnd" @@ -134,7 +135,6 @@ init HTMLDataElement(struct dom_html_element *html_data_element::html_element); init HTMLDivElement(struct dom_html_element *html_div_element::html_element); init HTMLDListElement(struct dom_html_element *html_d_list_element::html_element); init HTMLUListElement(struct dom_html_element *html_u_list_element::html_element); -init HTMLPreElement(struct dom_html_element *html_pre_element::html_element); init HTMLHeadElement(struct dom_html_element *html_head_element::html_element); /* specialisations of HTMLTableCellElement */