1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[quickjs] element.firstChild

This commit is contained in:
Witold Filipczyk 2024-07-24 20:31:18 +02:00
parent 1570955137
commit eba47a3352

View File

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