1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[quikcjs] firstElementChild

This commit is contained in:
Witold Filipczyk 2024-07-24 20:42:25 +02:00
parent e6bf26fa31
commit f356c05dcc

View File

@ -659,8 +659,9 @@ js_element_get_property_firstElementChild(JSContext *ctx, JSValueConst this_val)
if (exc == DOM_NO_ERR && type == DOM_ELEMENT_NODE) {
dom_nodelist_unref(nodes);
//dom_node_unref(el);
return getElement(ctx, child);
JSValue rr = getElement(ctx, child);
dom_node_unref(child);
return rr;
}
dom_node_unref(child);
}