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

[spidermonkey] full width also for DIV element

This commit is contained in:
Witold Filipczyk 2024-01-28 16:29:57 +01:00
parent 4a94b6150e
commit 84c0b4886b

View File

@ -769,7 +769,7 @@ element_get_property_clientWidth(JSContext *ctx, unsigned int argc, JS::Value *v
args.rval().setInt32(0);
return true;
}
bool root = (!strcmp(dom_string_data(tag_name), "BODY") || !strcmp(dom_string_data(tag_name), "HTML"));
bool root = (!strcmp(dom_string_data(tag_name), "BODY") || !strcmp(dom_string_data(tag_name), "HTML") || !strcmp(dom_string_data(tag_name), "DIV"));
dom_string_unref(tag_name);
if (root) {