1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[quickjs] getElementsByTagName return Nodelist instead of Collection

This commit is contained in:
Witold Filipczyk 2023-04-04 15:35:18 +02:00
parent cb8f7c8423
commit 5f56743696

View File

@ -1400,7 +1400,7 @@ js_document_getElementsByTagName(JSContext *ctx, JSValueConst this_val, int argc
if (exc != DOM_NO_ERR || !nodes) {
return JS_NULL;
}
JSValue rr = getCollection(ctx, nodes);
JSValue rr = getNodeList(ctx, nodes);
JS_FreeValue(ctx, rr);
RETURN_JS(rr);