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

[quikcjs] previousElementSibling.html

This commit is contained in:
Witold Filipczyk 2024-07-24 20:23:06 +02:00
parent daa753e98a
commit 7872617317

View File

@ -1275,8 +1275,9 @@ js_element_get_property_previousElementSibling(JSContext *ctx, JSValueConst this
exc = dom_node_get_node_type(prev, &type);
if (exc == DOM_NO_ERR && type == DOM_ELEMENT_NODE) {
//dom_node_unref(el);
return getElement(ctx, prev);
JSValue rr = getElement(ctx, prev);
dom_node_unref(prev);
return rr;
}
prev_prev = prev;
node = prev;