From 13bf5abfcbdcc7baad192fc4c3d057dc1d329e77 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 4 Jun 2024 17:15:01 +0200 Subject: [PATCH] [spidermonkey] document.getElementsByName not implemented --- src/ecmascript/mujs/document.c | 4 ++-- src/ecmascript/quickjs/document.c | 2 +- src/ecmascript/spidermonkey/document.cpp | 2 +- test/ecmascript/assert/meson.build | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ecmascript/mujs/document.c b/src/ecmascript/mujs/document.c index 61e1add5a..e867b1dec 100644 --- a/src/ecmascript/mujs/document.c +++ b/src/ecmascript/mujs/document.c @@ -1511,7 +1511,7 @@ mjs_document_init(js_State *J) addmethod(J, "replace", mjs_document_replace, 2); addmethod(J, "getElementById", mjs_document_getElementById, 1); // addmethod(J, "getElementsByClassName", mjs_document_getElementsByClassName, 1); - addmethod(J, "getElementsByName", mjs_document_getElementsByName, 1); +// addmethod(J, "getElementsByName", mjs_document_getElementsByName, 1); addmethod(J, "getElementsByTagName", mjs_document_getElementsByTagName, 1); addmethod(J, "querySelector", mjs_document_querySelector, 1); addmethod(J, "querySelectorAll", mjs_document_querySelectorAll, 1); @@ -1636,7 +1636,7 @@ mjs_push_document(js_State *J, void *doc) addmethod(J, "replace", mjs_document_replace, 2); addmethod(J, "getElementById", mjs_document_getElementById, 1); // addmethod(J, "getElementsByClassName", mjs_document_getElementsByClassName, 1); - addmethod(J, "getElementsByName", mjs_document_getElementsByName, 1); +// addmethod(J, "getElementsByName", mjs_document_getElementsByName, 1); addmethod(J, "getElementsByTagName", mjs_document_getElementsByTagName, 1); addmethod(J, "querySelector", mjs_document_querySelector, 1); addmethod(J, "querySelectorAll", mjs_document_querySelectorAll, 1); diff --git a/src/ecmascript/quickjs/document.c b/src/ecmascript/quickjs/document.c index 4410b6f1f..aee91ee0e 100644 --- a/src/ecmascript/quickjs/document.c +++ b/src/ecmascript/quickjs/document.c @@ -1713,7 +1713,7 @@ static const JSCFunctionListEntry js_document_proto_funcs[] = { JS_CFUNC_DEF("replace", 2, js_document_replace), JS_CFUNC_DEF("getElementById", 1, js_document_getElementById), // JS_CFUNC_DEF("getElementsByClassName", 1, js_document_getElementsByClassName), - JS_CFUNC_DEF("getElementsByName", 1, js_document_getElementsByName), +// JS_CFUNC_DEF("getElementsByName", 1, js_document_getElementsByName), JS_CFUNC_DEF("getElementsByTagName", 1, js_document_getElementsByTagName), JS_CFUNC_DEF("querySelector", 1, js_document_querySelector), JS_CFUNC_DEF("querySelectorAll", 1, js_document_querySelectorAll), diff --git a/src/ecmascript/spidermonkey/document.cpp b/src/ecmascript/spidermonkey/document.cpp index 275b5bd73..05d84fcb7 100644 --- a/src/ecmascript/spidermonkey/document.cpp +++ b/src/ecmascript/spidermonkey/document.cpp @@ -1197,7 +1197,7 @@ const spidermonkeyFunctionSpec document_funcs[] = { { "replace", document_replace, 2 }, { "getElementById", document_getElementById, 1 }, // { "getElementsByClassName", document_getElementsByClassName, 1 }, - { "getElementsByName", document_getElementsByName, 1 }, +// { "getElementsByName", document_getElementsByName, 1 }, { "getElementsByTagName", document_getElementsByTagName, 1 }, { "querySelector", document_querySelector, 1 }, { "querySelectorAll", document_querySelectorAll, 1 }, diff --git a/test/ecmascript/assert/meson.build b/test/ecmascript/assert/meson.build index 46164f779..9bc88f206 100644 --- a/test/ecmascript/assert/meson.build +++ b/test/ecmascript/assert/meson.build @@ -1,7 +1,7 @@ tofail = [ 'console.assert.html', #'document.getElementsByClassName.html', // not implemented -'document.getElementsByName.html', +#'document.getElementsByName.html', // not implemented 'document.head.html', 'element.namedItem.html' ]