From 21e74df30aecba2ea755745a65853f6d5fbb0691 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 30 Jan 2022 13:52:21 +0100 Subject: [PATCH] [quickjs] element removed unimplemented methods --- src/ecmascript/quickjs/element.c | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/src/ecmascript/quickjs/element.c b/src/ecmascript/quickjs/element.c index dc7faf068..afa50d7ea 100644 --- a/src/ecmascript/quickjs/element.c +++ b/src/ecmascript/quickjs/element.c @@ -977,30 +977,6 @@ js_element_set_property_lang(JSContext *ctx, JSValueConst this_val, JSValue val) return JS_UNDEFINED; } -static JSValue -js_element_set_property_outerHtml(JSContext *ctx, JSValueConst this_val, JSValue val) -{ -#ifdef ECMASCRIPT_DEBUG - fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); -#endif - struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)JS_GetContextOpaque(ctx); - xmlpp::Element *el = static_cast(JS_GetOpaque(this_val, js_element_class_id)); -// TODO - return JS_UNDEFINED; -} - -static JSValue -js_element_set_property_textContent(JSContext *ctx, JSValueConst this_val, JSValue val) -{ -#ifdef ECMASCRIPT_DEBUG - fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); -#endif - struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)JS_GetContextOpaque(ctx); - xmlpp::Element *el = static_cast(JS_GetOpaque(this_val, js_element_class_id)); -// TODO - return JS_UNDEFINED; -} - static JSValue js_element_set_property_title(JSContext *ctx, JSValueConst this_val, JSValue val) { @@ -1736,14 +1712,14 @@ static const JSCFunctionListEntry js_element_proto_funcs[] = { JS_CGETSET_DEF("nodeName", js_element_get_property_nodeName, nullptr), JS_CGETSET_DEF("nodeType", js_element_get_property_nodeType, nullptr), JS_CGETSET_DEF("nodeValue", js_element_get_property_nodeValue, nullptr), - JS_CGETSET_DEF("outerHTML", js_element_get_property_outerHtml, js_element_set_property_outerHtml), + JS_CGETSET_DEF("outerHTML", js_element_get_property_outerHtml, nullptr), JS_CGETSET_DEF("ownerDocument", js_element_get_property_ownerDocument, nullptr), JS_CGETSET_DEF("parentElement", js_element_get_property_parentElement, nullptr), JS_CGETSET_DEF("parentNode", js_element_get_property_parentNode, nullptr), JS_CGETSET_DEF("previousElementSibling", js_element_get_property_previousElementSibling, nullptr), JS_CGETSET_DEF("previousSibling", js_element_get_property_previousSibling, nullptr), JS_CGETSET_DEF("tagName", js_element_get_property_tagName, nullptr), - JS_CGETSET_DEF("textContent", js_element_get_property_textContent, js_element_set_property_textContent), + JS_CGETSET_DEF("textContent", js_element_get_property_textContent, nullptr), JS_CGETSET_DEF("title", js_element_get_property_title, js_element_set_property_title), JS_CFUNC_DEF("appendChild", 1, js_element_appendChild), JS_CFUNC_DEF("cloneNode", 1, js_element_cloneNode),