mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[quickjs] element.getElementsByTagName -> NodeList
This commit is contained in:
parent
92850a2aa4
commit
32e67cfe40
@ -1867,7 +1867,7 @@ js_element_getElementsByTagName(JSContext *ctx, JSValueConst this_val, int argc,
|
|||||||
if (exc != DOM_NO_ERR || !nlist) {
|
if (exc != DOM_NO_ERR || !nlist) {
|
||||||
return JS_NULL;
|
return JS_NULL;
|
||||||
}
|
}
|
||||||
JSValue rr = getCollection(ctx, nlist);
|
JSValue rr = getNodeList(ctx, nlist);
|
||||||
JS_FreeValue(ctx, rr);
|
JS_FreeValue(ctx, rr);
|
||||||
|
|
||||||
RETURN_JS(rr);
|
RETURN_JS(rr);
|
||||||
|
Loading…
Reference in New Issue
Block a user