1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-20 01:46:15 -04:00

[quickjs] element.previousSibling

This commit is contained in:
Witold Filipczyk 2024-07-24 20:18:47 +02:00
parent c01339fee9
commit daa753e98a

View File

@ -1308,8 +1308,10 @@ js_element_get_property_previousSibling(JSContext *ctx, JSValueConst this_val)
return JS_NULL; return JS_NULL;
} }
//dom_node_unref(el); //dom_node_unref(el);
JSValue rr = getElement(ctx, node);
dom_node_unref(node);
return getElement(ctx, node); return rr;
} }
static JSValue static JSValue