diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Drop the XHTML slashes and boolean spellings
Diffstat (limited to 'source/html.c')
-rw-r--r--source/html.c8
1 file changed, 4 insertions, 4 deletions
diff --git a/source/html.c b/source/html.c
index f69f109..ae8acd6 100644
--- a/source/html.c
+++ b/source/html.c
@@ -323,7 +323,7 @@ void html_hidden(const char *name, const char *value)
html_attr(name);
html("' value='");
html_attr(value);
- html("'/>");
+ html("'>");
}
void html_option(const char *value, const char *text,
@@ -333,7 +333,7 @@ void html_option(const char *value, const char *text,
html_attr(value);
html("'");
if (selected_value && !strcmp(selected_value, value))
- html(" selected='selected'");
+ html(" selected");
html(">");
html_txt(text);
html("</option>\n");
@@ -342,9 +342,9 @@ void html_option(const char *value, const char *text,
void html_intoption(int value, const char *text, int selected_value)
{
htmlf("<option value='%d'%s>", value,
- value == selected_value ? " selected='selected'" : "");
+ value == selected_value ? " selected" : "");
html_txt(text);
- html("</option>");
+ html("</option>\n");
}
void html_link_open(const char *url, const char *title, const char *class)