1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[spdermonkey] document.getElementByClassName not implemented

This commit is contained in:
Witold Filipczyk 2024-06-04 17:05:43 +02:00
parent 7d0b5899a3
commit dfa2d3f60c
4 changed files with 5 additions and 5 deletions

View File

@ -1510,7 +1510,7 @@ mjs_document_init(js_State *J)
addmethod(J, "writeln", mjs_document_writeln, 1);
addmethod(J, "replace", mjs_document_replace, 2);
addmethod(J, "getElementById", mjs_document_getElementById, 1);
addmethod(J, "getElementsByClassName", mjs_document_getElementsByClassName, 1);
// addmethod(J, "getElementsByClassName", mjs_document_getElementsByClassName, 1);
addmethod(J, "getElementsByName", mjs_document_getElementsByName, 1);
addmethod(J, "getElementsByTagName", mjs_document_getElementsByTagName, 1);
addmethod(J, "querySelector", mjs_document_querySelector, 1);
@ -1635,7 +1635,7 @@ mjs_push_document(js_State *J, void *doc)
addmethod(J, "writeln", mjs_document_writeln, 1);
addmethod(J, "replace", mjs_document_replace, 2);
addmethod(J, "getElementById", mjs_document_getElementById, 1);
addmethod(J, "getElementsByClassName", mjs_document_getElementsByClassName, 1);
// addmethod(J, "getElementsByClassName", mjs_document_getElementsByClassName, 1);
addmethod(J, "getElementsByName", mjs_document_getElementsByName, 1);
addmethod(J, "getElementsByTagName", mjs_document_getElementsByTagName, 1);
addmethod(J, "querySelector", mjs_document_querySelector, 1);

View File

@ -1712,7 +1712,7 @@ static const JSCFunctionListEntry js_document_proto_funcs[] = {
JS_CFUNC_DEF("removeEventListener", 3, js_document_removeEventListener),
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("getElementsByClassName", 1, js_document_getElementsByClassName),
JS_CFUNC_DEF("getElementsByName", 1, js_document_getElementsByName),
JS_CFUNC_DEF("getElementsByTagName", 1, js_document_getElementsByTagName),
JS_CFUNC_DEF("querySelector", 1, js_document_querySelector),

View File

@ -1196,7 +1196,7 @@ const spidermonkeyFunctionSpec document_funcs[] = {
{ "writeln", document_writeln, 1 },
{ "replace", document_replace, 2 },
{ "getElementById", document_getElementById, 1 },
{ "getElementsByClassName", document_getElementsByClassName, 1 },
// { "getElementsByClassName", document_getElementsByClassName, 1 },
{ "getElementsByName", document_getElementsByName, 1 },
{ "getElementsByTagName", document_getElementsByTagName, 1 },
{ "querySelector", document_querySelector, 1 },

View File

@ -1,6 +1,6 @@
tofail = [
'console.assert.html',
'document.getElementsByClassName.html',
#'document.getElementsByClassName.html', // not implemented
'document.getElementsByName.html',
'document.head.html',
'element.namedItem.html'