mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[quikcjs] firstElementChild
This commit is contained in:
parent
e6bf26fa31
commit
f356c05dcc
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user