mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[form] document.forms["name"]
This commit is contained in:
parent
df9cb9dc5a
commit
6b4576d2d8
@ -3685,14 +3685,12 @@ forms_set_items(JSContext *ctx, JS::HandleObject hobj, void *node)
|
||||
JS::RootedObject v(ctx, get_form_object(ctx, nullptr, form));
|
||||
JS::RootedValue ro(ctx, JS::ObjectOrNullValue(v));
|
||||
JS_SetElement(ctx, hobj, counter, ro);
|
||||
#if 0
|
||||
|
||||
if (form->name) {
|
||||
fprintf(stderr, "form->name=%s\n", form->name);
|
||||
if (strcmp(form->name, "item") && strcmp(form->name, "namedItem")) {
|
||||
JS_DefineProperty(ctx, hobj, form->name, ro, JSPROP_ENUMERATE | JSPROP_RESOLVING);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
counter++;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user