diff options
author | Juuso Lapinlampi | 2016-05-11 18:04:18 +0000 |
---|---|---|
committer | Jason A. Donenfeld | 2016-05-12 17:43:36 +0200 |
commit | 9afda36ed72083febca5e1a249b7f9f09205fe16 (patch) | |
tree | 394ae79017abac84106549b27180ed0f42a714d8 | |
parent | 8d05b398bb1f4effcb59dddc62a3ea1f021f8631 (diff) | |
download | cgit-9afda36ed72083febca5e1a249b7f9f09205fe16.tar.gz cgit-9afda36ed72083febca5e1a249b7f9f09205fe16.tar.bz2 cgit-9afda36ed72083febca5e1a249b7f9f09205fe16.zip |
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
-rw-r--r-- | ui-shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index 1529ff1..770b685 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -944,7 +944,7 @@ static void print_header(void) | |||
944 | if (ctx.repo->enable_remote_branches) | 944 | if (ctx.repo->enable_remote_branches) |
945 | for_each_remote_ref(print_branch_option, ctx.qry.head); | 945 | for_each_remote_ref(print_branch_option, ctx.qry.head); |
946 | html("</select> "); | 946 | html("</select> "); |
947 | html("<input type='submit' name='' value='switch'/>"); | 947 | html("<input type='submit' value='switch'/>"); |
948 | html("</form>"); | 948 | html("</form>"); |
949 | } | 949 | } |
950 | } else | 950 | } else |