From c39096c30d26f425df78958597dda8e720777e30 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 13 Oct 2015 09:57:35 +0100 Subject: add automaticaly generated property setter and getters to HTMLHeadingElement --- Docs/UnimplementedJavascript.txt | 2 -- javascript/duktape/HTMLHeadingElement.bnd | 14 ++++++++++++++ javascript/duktape/netsurf.bnd | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 javascript/duktape/HTMLHeadingElement.bnd diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index dacec756d..1fd82ce5f 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -913,8 +913,6 @@ getter HTMLFrameSetElement::onstorage(user);\n setter HTMLFrameSetElement::onstorage(user);\n getter HTMLFrameSetElement::onunload(user);\n setter HTMLFrameSetElement::onunload(user);\n -getter HTMLHeadingElement::align(string);\n -setter HTMLHeadingElement::align(string);\n getter HTMLHRElement::color(string);\n setter HTMLHRElement::color(string);\n getter HTMLHtmlElement::version(string);\n diff --git a/javascript/duktape/HTMLHeadingElement.bnd b/javascript/duktape/HTMLHeadingElement.bnd new file mode 100644 index 000000000..be51223c1 --- /dev/null +++ b/javascript/duktape/HTMLHeadingElement.bnd @@ -0,0 +1,14 @@ +/* HTML heading 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 HTMLHeadingElement(struct dom_html_element *html_heading_element::html_element); + +getter HTMLHeadingElement::align(); +setter HTMLHeadingElement::align(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index dc694e0c2..f0ae8a7d9 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -74,6 +74,7 @@ struct dom_html_br_element; #include "HTMLFormElement.bnd" #include "HTMLFrameElement.bnd" #include "HTMLFrameSetElement.bnd" +#include "HTMLHeadingElement.bnd" #include "HTMLHRElement.bnd" /* specialisations of html_element */ @@ -128,7 +129,6 @@ init HTMLOListElement(struct dom_html_element *html_o_list_element::html_element 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 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); -- cgit v1.2.3