From 450cefbd490c2e11262ee15d025ffb18b0e9ff16 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 13 Oct 2015 10:37:12 +0100 Subject: add automaticaly generated property setter and getters to HTMLHtmlElement --- javascript/duktape/HTMLElement.bnd | 2 +- javascript/duktape/HTMLHTMLElement.bnd | 14 ++++++++++++++ javascript/duktape/netsurf.bnd | 3 +-- 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 javascript/duktape/HTMLHTMLElement.bnd (limited to 'javascript/duktape') diff --git a/javascript/duktape/HTMLElement.bnd b/javascript/duktape/HTMLElement.bnd index 7a3424913..ad35fe5ae 100644 --- a/javascript/duktape/HTMLElement.bnd +++ b/javascript/duktape/HTMLElement.bnd @@ -8,7 +8,7 @@ * http://www.opensource.org/licenses/mit-license */ -init HTMLHtmlElement(struct dom_html_element *html_html_element::html_element); +init HTMLElement(struct dom_html_element *html_element::element); getter HTMLElement::dir(); setter HTMLElement::dir(); diff --git a/javascript/duktape/HTMLHTMLElement.bnd b/javascript/duktape/HTMLHTMLElement.bnd new file mode 100644 index 000000000..01697d860 --- /dev/null +++ b/javascript/duktape/HTMLHTMLElement.bnd @@ -0,0 +1,14 @@ +/* HTML html 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 HTMLHtmlElement(struct dom_html_element *html_html_element::html_element); + +getter HTMLHtmlElement::version(); +setter HTMLHtmlElement::version(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index f0ae8a7d9..0194c00a1 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -76,6 +76,7 @@ struct dom_html_br_element; #include "HTMLFrameSetElement.bnd" #include "HTMLHeadingElement.bnd" #include "HTMLHRElement.bnd" +#include "HTMLHTMLElement.bnd" /* specialisations of html_element */ init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); @@ -143,8 +144,6 @@ init HTMLTableDataCellElement(struct dom_html_element *html_table_data_cell_elem init HTMLAudioElement(struct dom_html_element *html_audio_element::html_media_element); init HTMLVideoElement(struct dom_html_element *html_video_element::html_media_element); -init HTMLElement(struct dom_html_element *html_element::element); - init Text(struct dom_node_text *text::character_data); init Comment(struct dom_node_comment *comment::character_data); init ProcessingInstruction(struct dom_node_text *text::character_data); -- cgit v1.2.3