diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index 3252d253d..51269ee78 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -1130,8 +1130,6 @@ getter HTMLMediaElement::textTracks(user);\n getter HTMLMediaElement::videoTracks(user);\n getter HTMLMediaElement::volume(double);\n setter HTMLMediaElement::volume(double);\n -getter HTMLMenuElement::compact(boolean);\n -setter HTMLMenuElement::compact(boolean);\n getter HTMLMenuElement::label(string);\n setter HTMLMenuElement::label(string);\n getter HTMLMenuElement::type(string);\n diff --git a/javascript/duktape/HTMLMenuElement.bnd b/javascript/duktape/HTMLMenuElement.bnd new file mode 100644 index 000000000..c7097b706 --- /dev/null +++ b/javascript/duktape/HTMLMenuElement.bnd @@ -0,0 +1,14 @@ +/* HTML menu 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 HTMLMenuElement(struct dom_html_element *html_menu_element::html_element); + +getter HTMLMenuElement::compact(); +setter HTMLMenuElement::compact(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index bc57be683..930df337b 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -88,6 +88,8 @@ struct dom_html_br_element; #include "HTMLLinkElement.bnd" #include "HTMLMapElement.bnd" #include "HTMLMarqueeElement.bnd" +#include "HTMLMenuElement.bnd" +#include "HTMLMetaElement.bnd" init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element); @@ -96,7 +98,6 @@ init HTMLTemplateElement(struct dom_html_element *html_template_element::html_el init HTMLScriptElement(struct dom_html_element *html_script_element::html_element); init HTMLDialogElement(struct dom_html_element *html_dialog_element::html_element); init HTMLMenuItemElement(struct dom_html_element *html_menu_item_element::html_element); -init HTMLMenuElement(struct dom_html_element *html_menu_element::html_element); init HTMLDetailsElement(struct dom_html_element *html_details_element::html_element); init HTMLFieldSetElement(struct dom_html_element *html_field_set_element::html_element); init HTMLMeterElement(struct dom_html_element *html_meter_element::html_element); @@ -133,7 +134,6 @@ 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 HTMLStyleElement(struct dom_html_element *html_style_element::html_element); -init HTMLMetaElement(struct dom_html_element *html_meta_element::html_element); init HTMLTitleElement(struct dom_html_element *html_title_element::html_element); init HTMLHeadElement(struct dom_html_element *html_head_element::html_element);