1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05: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;
}
//dom_node_unref(el);
JSValue rr = getElement(ctx, node);
dom_node_unref(node);
return getElement(ctx, node);
return rr;
}
static JSValue