From ed9894d75011667dfaeba18fceb11411f21fe60b Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 3 May 2019 14:26:12 +0100 Subject: [PATCH] Add auto-generated getters/setters on body element Signed-off-by: Daniel Silverstone --- .../javascript/duktape/HTMLBodyElement.bnd | 33 +++++++++++++++++++ docs/UnimplementedJavascript.txt | 26 --------------- 2 files changed, 33 insertions(+), 26 deletions(-) diff --git a/content/handlers/javascript/duktape/HTMLBodyElement.bnd b/content/handlers/javascript/duktape/HTMLBodyElement.bnd index a283f897c..478739651 100644 --- a/content/handlers/javascript/duktape/HTMLBodyElement.bnd +++ b/content/handlers/javascript/duktape/HTMLBodyElement.bnd @@ -8,6 +8,13 @@ * http://www.opensource.org/licenses/mit-license */ +prologue HTMLBodyElement() +%{ +#include "utils/corestrings.h" + +#define HANDLER_MAGIC MAGIC(HANDLER_MAP) +%} + init HTMLBodyElement(struct dom_html_element *html_body_element::html_element); getter HTMLBodyElement::aLink(); @@ -22,3 +29,29 @@ getter HTMLBodyElement::text(); setter HTMLBodyElement::text(); getter HTMLBodyElement::vLink(); setter HTMLBodyElement::vLink(); +getter HTMLBodyElement::onafterprint(); +setter HTMLBodyElement::onafterprint(); +getter HTMLBodyElement::onbeforeprint(); +setter HTMLBodyElement::onbeforeprint(); +getter HTMLBodyElement::onbeforeunload(); +setter HTMLBodyElement::onbeforeunload(); +getter HTMLBodyElement::onhashchange(); +setter HTMLBodyElement::onhashchange(); +getter HTMLBodyElement::onlanguagechange(); +setter HTMLBodyElement::onlanguagechange(); +getter HTMLBodyElement::onmessage(); +setter HTMLBodyElement::onmessage(); +getter HTMLBodyElement::onoffline(); +setter HTMLBodyElement::onoffline(); +getter HTMLBodyElement::ononline(); +setter HTMLBodyElement::ononline(); +getter HTMLBodyElement::onpagehide(); +setter HTMLBodyElement::onpagehide(); +getter HTMLBodyElement::onpageshow(); +setter HTMLBodyElement::onpageshow(); +getter HTMLBodyElement::onpopstate(); +setter HTMLBodyElement::onpopstate(); +getter HTMLBodyElement::onstorage(); +setter HTMLBodyElement::onstorage(); +getter HTMLBodyElement::onunload(); +setter HTMLBodyElement::onunload(); diff --git a/docs/UnimplementedJavascript.txt b/docs/UnimplementedJavascript.txt index 54204278d..630941039 100644 --- a/docs/UnimplementedJavascript.txt +++ b/docs/UnimplementedJavascript.txt @@ -517,32 +517,6 @@ getter HTMLAreaElement::type(string); setter HTMLAreaElement::type(string); getter HTMLAreaElement::username(user); setter HTMLAreaElement::username(user); -getter HTMLBodyElement::onafterprint(user); -setter HTMLBodyElement::onafterprint(user); -getter HTMLBodyElement::onbeforeprint(user); -setter HTMLBodyElement::onbeforeprint(user); -getter HTMLBodyElement::onbeforeunload(user); -setter HTMLBodyElement::onbeforeunload(user); -getter HTMLBodyElement::onhashchange(user); -setter HTMLBodyElement::onhashchange(user); -getter HTMLBodyElement::onlanguagechange(user); -setter HTMLBodyElement::onlanguagechange(user); -getter HTMLBodyElement::onmessage(user); -setter HTMLBodyElement::onmessage(user); -getter HTMLBodyElement::onoffline(user); -setter HTMLBodyElement::onoffline(user); -getter HTMLBodyElement::ononline(user); -setter HTMLBodyElement::ononline(user); -getter HTMLBodyElement::onpagehide(user); -setter HTMLBodyElement::onpagehide(user); -getter HTMLBodyElement::onpageshow(user); -setter HTMLBodyElement::onpageshow(user); -getter HTMLBodyElement::onpopstate(user); -setter HTMLBodyElement::onpopstate(user); -getter HTMLBodyElement::onstorage(user); -setter HTMLBodyElement::onstorage(user); -getter HTMLBodyElement::onunload(user); -setter HTMLBodyElement::onunload(user); getter HTMLButtonElement::autofocus(boolean); setter HTMLButtonElement::autofocus(boolean); method HTMLButtonElement::checkValidity();