From 0805bf2cd63bc1bc5c7c55b651562c745276a8d7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 14 Oct 2015 15:09:16 +0100 Subject: [PATCH] add automaticaly generated property setter and getters to HTMLTableColElement --- Docs/UnimplementedJavascript.txt | 10 --------- javascript/duktape/HTMLTableColElement.bnd | 26 ++++++++++++++++++++++ javascript/duktape/netsurf.bnd | 2 +- 3 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 javascript/duktape/HTMLTableColElement.bnd diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index 4e237aea1..e87afabb6 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -1279,18 +1279,8 @@ setter HTMLTableCellElement::colSpan(long);\n getter HTMLTableCellElement::headers(user);\n getter HTMLTableCellElement::rowSpan(long);\n setter HTMLTableCellElement::rowSpan(long);\n -getter HTMLTableColElement::align(string);\n -setter HTMLTableColElement::align(string);\n -getter HTMLTableColElement::chOff(string);\n -setter HTMLTableColElement::chOff(string);\n -getter HTMLTableColElement::ch(string);\n -setter HTMLTableColElement::ch(string);\n getter HTMLTableColElement::span(long);\n setter HTMLTableColElement::span(long);\n -getter HTMLTableColElement::vAlign(string);\n -setter HTMLTableColElement::vAlign(string);\n -getter HTMLTableColElement::width(string);\n -setter HTMLTableColElement::width(string);\n getter HTMLTableDataCellElement::abbr(string);\n setter HTMLTableDataCellElement::abbr(string);\n getter HTMLTableElement::align(string);\n diff --git a/javascript/duktape/HTMLTableColElement.bnd b/javascript/duktape/HTMLTableColElement.bnd new file mode 100644 index 000000000..ec7a954de --- /dev/null +++ b/javascript/duktape/HTMLTableColElement.bnd @@ -0,0 +1,26 @@ +/* HTML table col 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 HTMLTableColElement(struct dom_html_element *html_table_col_element::html_element); + +getter HTMLTableColElement::align(); +setter HTMLTableColElement::align(); + +getter HTMLTableColElement::chOff(); +setter HTMLTableColElement::chOff(); + +getter HTMLTableColElement::ch(); +setter HTMLTableColElement::ch(); + +getter HTMLTableColElement::vAlign(); +setter HTMLTableColElement::vAlign(); + +getter HTMLTableColElement::width(); +setter HTMLTableColElement::width(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index ba0c0130f..1c20d51ee 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -100,6 +100,7 @@ struct dom_html_br_element; #include "HTMLStyleElement.bnd" #include "HTMLTableCaptionElement.bnd" #include "HTMLTableCellElement.bnd" +#include "HTMLTableColElement.bnd" init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element); @@ -118,7 +119,6 @@ init HTMLOptGroupElement(struct dom_html_element *html_opt_group_element::html_e init HTMLDataListElement(struct dom_html_element *html_data_list_element::html_element); init HTMLTableRowElement(struct dom_html_element *html_table_row_element::html_element); init HTMLTableSectionElement(struct dom_html_element *html_table_section_element::html_element); -init HTMLTableColElement(struct dom_html_element *html_table_col_element::html_element); init HTMLTableElement(struct dom_html_element *html_table_element::html_element); init HTMLMediaElement(struct dom_html_element *html_media_element::html_element); init HTMLTrackElement(struct dom_html_element *html_track_element::html_element);