From 6098646e727533f7e7a7c062822e51a59c34161e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 29 Oct 2015 11:47:53 +0000 Subject: Add binding for DIV element's align getter/setter, and test. Currently the second part of the test fails. --- Docs/UnimplementedJavascript.txt | 2 -- javascript/duktape/HTMLDivElement.bnd | 14 ++++++++++++++ javascript/duktape/netsurf.bnd | 2 +- test/js/dom-html-div-element.html | 22 ++++++++++++++++++++++ 4 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 javascript/duktape/HTMLDivElement.bnd create mode 100644 test/js/dom-html-div-element.html diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index 9cff3628d..82b0b1628 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -678,8 +678,6 @@ method HTMLDialogElement::show();\n method HTMLDialogElement::showModal();\n getter HTMLDirectoryElement::compact(boolean);\n setter HTMLDirectoryElement::compact(boolean);\n -getter HTMLDivElement::align(string);\n -setter HTMLDivElement::align(string);\n getter HTMLDListElement::compact(boolean);\n setter HTMLDListElement::compact(boolean);\n getter HTMLElement::accessKeyLabel(string);\n diff --git a/javascript/duktape/HTMLDivElement.bnd b/javascript/duktape/HTMLDivElement.bnd new file mode 100644 index 000000000..759e34d96 --- /dev/null +++ b/javascript/duktape/HTMLDivElement.bnd @@ -0,0 +1,14 @@ +/* HTML div element binding using duktape and libdom + * + * Copyright 2015 Michael Drake + * + * 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 HTMLDivElement(struct dom_html_element *html_div_element::html_element); + +getter HTMLDivElement::align(); +setter HTMLDivElement::align(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index b44c858f2..5fe5855d1 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -72,6 +72,7 @@ struct dom_html_br_element; #include "HTMLBodyElement.bnd" #include "HTMLButtonElement.bnd" #include "HTMLBRElement.bnd" +#include "HTMLDivElement.bnd" #include "HTMLFontElement.bnd" #include "HTMLFormElement.bnd" #include "HTMLFrameElement.bnd" @@ -132,7 +133,6 @@ init HTMLModElement(struct dom_html_element *html_mod_element::html_element); init HTMLSpanElement(struct dom_html_element *html_span_element::html_element); init HTMLTimeElement(struct dom_html_element *html_time_element::html_element); 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 HTMLHeadElement(struct dom_html_element *html_head_element::html_element); diff --git a/test/js/dom-html-div-element.html b/test/js/dom-html-div-element.html new file mode 100644 index 000000000..b653b0c40 --- /dev/null +++ b/test/js/dom-html-div-element.html @@ -0,0 +1,22 @@ + + + +document interface enumeration + + + +

HTMLDivElement test

+ + + + + -- cgit v1.2.3