diff --git a/Docs/UnimplementedJavascript.txt b/Docs/UnimplementedJavascript.txt index 143d0c661..ca3f3c08c 100644 --- a/Docs/UnimplementedJavascript.txt +++ b/Docs/UnimplementedJavascript.txt @@ -925,12 +925,6 @@ getter HTMLIFrameElement::seamless(boolean);\n setter HTMLIFrameElement::seamless(boolean);\n getter HTMLIFrameElement::srcdoc(string);\n setter HTMLIFrameElement::srcdoc(string);\n -getter HTMLImageElement::align(string);\n -setter HTMLImageElement::align(string);\n -getter HTMLImageElement::alt(string);\n -setter HTMLImageElement::alt(string);\n -getter HTMLImageElement::border(string);\n -setter HTMLImageElement::border(string);\n getter HTMLImageElement::complete(boolean);\n getter HTMLImageElement::crossOrigin(string);\n setter HTMLImageElement::crossOrigin(string);\n @@ -939,24 +933,14 @@ getter HTMLImageElement::height(long);\n setter HTMLImageElement::height(long);\n getter HTMLImageElement::hspace(long);\n setter HTMLImageElement::hspace(long);\n -getter HTMLImageElement::isMap(boolean);\n -setter HTMLImageElement::isMap(boolean);\n -getter HTMLImageElement::longDesc(string);\n -setter HTMLImageElement::longDesc(string);\n getter HTMLImageElement::lowsrc(string);\n setter HTMLImageElement::lowsrc(string);\n -getter HTMLImageElement::name(string);\n -setter HTMLImageElement::name(string);\n getter HTMLImageElement::naturalHeight(long);\n getter HTMLImageElement::naturalWidth(long);\n getter HTMLImageElement::sizes(string);\n setter HTMLImageElement::sizes(string);\n getter HTMLImageElement::srcset(string);\n setter HTMLImageElement::srcset(string);\n -getter HTMLImageElement::src(string);\n -setter HTMLImageElement::src(string);\n -getter HTMLImageElement::useMap(string);\n -setter HTMLImageElement::useMap(string);\n getter HTMLImageElement::vspace(long);\n setter HTMLImageElement::vspace(long);\n getter HTMLImageElement::width(long);\n diff --git a/javascript/duktape/HTMLImageElement.bnd b/javascript/duktape/HTMLImageElement.bnd new file mode 100644 index 000000000..14f978aca --- /dev/null +++ b/javascript/duktape/HTMLImageElement.bnd @@ -0,0 +1,35 @@ +/* HTML image 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 HTMLImageElement(struct dom_html_element *html_image_element::html_element); + +getter HTMLImageElement::align(); +setter HTMLImageElement::align(); + +getter HTMLImageElement::alt(); +setter HTMLImageElement::alt(); + +getter HTMLImageElement::border(); +setter HTMLImageElement::border(); + +getter HTMLImageElement::isMap(); +setter HTMLImageElement::isMap(); + +getter HTMLImageElement::longDesc(); +setter HTMLImageElement::longDesc(); + +getter HTMLImageElement::name(); +setter HTMLImageElement::name(); + +getter HTMLImageElement::src(); +setter HTMLImageElement::src(); + +getter HTMLImageElement::useMap(); +setter HTMLImageElement::useMap(); diff --git a/javascript/duktape/netsurf.bnd b/javascript/duktape/netsurf.bnd index 0d9479c54..67b56158b 100644 --- a/javascript/duktape/netsurf.bnd +++ b/javascript/duktape/netsurf.bnd @@ -78,6 +78,7 @@ struct dom_html_br_element; #include "HTMLHRElement.bnd" #include "HTMLHTMLElement.bnd" #include "HTMLIFrameElement.bnd" +#include "HTMLImageElement.bnd" /* specialisations of html_element */ init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); @@ -115,7 +116,6 @@ init HTMLTrackElement(struct dom_html_element *html_track_element::html_element) init HTMLParamElement(struct dom_html_element *html_param_element::html_element); init HTMLObjectElement(struct dom_html_element *html_object_element::html_element); init HTMLEmbedElement(struct dom_html_element *html_embed_element::html_element); -init HTMLImageElement(struct dom_html_element *html_image_element::html_element); init HTMLSourceElement(struct dom_html_element *html_source_element::html_element); init HTMLPictureElement(struct dom_html_element *html_picture_element::html_element); init HTMLModElement(struct dom_html_element *html_mod_element::html_element);