ui-shared: Remove a name attribute with an empty value

The name attribute is optional in an input element, but it must not be
an empty value.

See: https://html.spec.whatwg.org/#attr-fe-name
See: https://html.spec.whatwg.org/#the-input-element
This commit is contained in:
Juuso Lapinlampi 2016-05-11 18:04:18 +00:00 提交者 Jason A. Donenfeld
父節點 8d05b398bb
當前提交 9afda36ed7
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -944,7 +944,7 @@ static void print_header(void)
if (ctx.repo->enable_remote_branches)
for_each_remote_ref(print_branch_option, ctx.qry.head);
html("</select> ");
html("<input type='submit' name='' value='switch'/>");
html("<input type='submit' value='switch'/>");
html("</form>");
}
} else