]> granicus.if.org Git - cgit/commitdiff
ui-shared: Remove a name attribute with an empty value
authorJuuso Lapinlampi <wub@partyvan.eu>
Wed, 11 May 2016 18:04:18 +0000 (18:04 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 12 May 2016 15:43:36 +0000 (17:43 +0200)
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

ui-shared.c

index 1529ff1c15c191eda2a3225579cc0cd6175ffc17..770b685d6ee7d958c2e2ed47c8f3e33723c67099 100644 (file)
@@ -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