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:
parent
ff28219a94
commit
c4fe2c04ca
@ -1350,8 +1350,10 @@ js_document_createElement(JSContext *ctx, JSValueConst this_val, int argc, JSVal
|
|||||||
return JS_NULL;
|
return JS_NULL;
|
||||||
}
|
}
|
||||||
//dom_node_unref(doc);
|
//dom_node_unref(doc);
|
||||||
|
JSValue rr = getElement(ctx, element);
|
||||||
|
dom_node_unref(element);
|
||||||
|
|
||||||
return getElement(ctx, element);
|
return rr;
|
||||||
}
|
}
|
||||||
|
|
||||||
static JSValue
|
static JSValue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user