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

[quickjs] documentElement

This commit is contained in:
Witold Filipczyk 2024-07-24 20:48:11 +02:00
parent 9329b66b28
commit ff28219a94

View File

@ -386,8 +386,10 @@ js_document_get_property_documentElement(JSContext *ctx, JSValueConst this_val)
return JS_NULL; return JS_NULL;
} }
//dom_node_unref(doc); //dom_node_unref(doc);
JSValue rr = getElement(ctx, root);
dom_node_unref(root);
return getElement(ctx, root); return rr;
} }
static JSValue static JSValue