1
0
mirror of https://github.com/netsurf-browser/netsurf synced 2024-12-25 05:27:00 +03:00

add automaticaly generated property setter and getters to HTMLOptionElement

This commit is contained in:
Vincent Sanders 2015-10-14 09:09:41 +01:00
parent 079667ee6c
commit 2b71eef763
3 changed files with 29 additions and 12 deletions

View File

@ -1194,20 +1194,9 @@ getter HTMLOptGroupElement::disabled(boolean);\n
setter HTMLOptGroupElement::disabled(boolean);\n
getter HTMLOptGroupElement::label(string);\n
setter HTMLOptGroupElement::label(string);\n
getter HTMLOptionElement::defaultSelected(boolean);\n
setter HTMLOptionElement::defaultSelected(boolean);\n
getter HTMLOptionElement::disabled(boolean);\n
setter HTMLOptionElement::disabled(boolean);\n
getter HTMLOptionElement::form(user);\n
getter HTMLOptionElement::index(long);\n
getter HTMLOptionElement::label(string);\n
setter HTMLOptionElement::label(string);\n
getter HTMLOptionElement::selected(boolean);\n
setter HTMLOptionElement::selected(boolean);\n
getter HTMLOptionElement::text(string);\n
setter HTMLOptionElement::text(string);\n
getter HTMLOptionElement::value(string);\n
setter HTMLOptionElement::value(string);\n
method HTMLOptionsCollection::add();\n
getter HTMLOptionsCollection::length(long);\n
setter HTMLOptionsCollection::length(long);\n

View File

@ -0,0 +1,28 @@
/* HTML option element binding using duktape and libdom
*
* Copyright 2015 Vincent Sanders <vince@netsurf-browser.org>
*
* 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 HTMLOptionElement(struct dom_html_element *html_option_element::html_element);
getter HTMLOptionElement::defaultSelected();
setter HTMLOptionElement::defaultSelected();
getter HTMLOptionElement::disabled();
setter HTMLOptionElement::disabled();
getter HTMLOptionElement::label();
setter HTMLOptionElement::label();
getter HTMLOptionElement::selected();
setter HTMLOptionElement::selected();
getter HTMLOptionElement::text();
getter HTMLOptionElement::value();
setter HTMLOptionElement::value();

View File

@ -91,6 +91,7 @@ struct dom_html_br_element;
#include "HTMLMenuElement.bnd"
#include "HTMLMetaElement.bnd"
#include "HTMLObjectElement.bnd"
#include "HTMLOptionElement.bnd"
init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element);
init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element);
@ -106,7 +107,6 @@ init HTMLProgressElement(struct dom_html_element *html_progress_element::html_el
init HTMLOutputElement(struct dom_html_element *html_output_element::html_element);
init HTMLKeygenElement(struct dom_html_element *html_keygen_element::html_element);
init HTMLTextAreaElement(struct dom_html_element *html_text_area_element::html_element);
init HTMLOptionElement(struct dom_html_element *html_option_element::html_element);
init HTMLOptGroupElement(struct dom_html_element *html_opt_group_element::html_element);
init HTMLDataListElement(struct dom_html_element *html_data_list_element::html_element);
init HTMLSelectElement(struct dom_html_element *html_select_element::html_element);