0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

[quickjs] Fix in createElement

This commit is contained in:
Witold Filipczyk 2024-07-24 20:51:19 +02:00
parent ff28219a94
commit c4fe2c04ca

View File

@ -1350,8 +1350,10 @@ js_document_createElement(JSContext *ctx, JSValueConst this_val, int argc, JSVal
return JS_NULL;
}
//dom_node_unref(doc);
JSValue rr = getElement(ctx, element);
dom_node_unref(element);
return getElement(ctx, element);
return rr;
}
static JSValue