From f91a020894b364633f29bd0ec3c63248aea524c5 Mon Sep 17 00:00:00 2001 From: Joaquin Cuenca Abela Date: Thu, 7 Jun 2012 16:54:04 +0200 Subject: [PATCH] Accept HTML5 input types. --- src/attrs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/attrs.c b/src/attrs.c index f132c2f..44abfc7 100644 --- a/src/attrs.c +++ b/src/attrs.c @@ -1811,9 +1811,11 @@ void CheckLang( TidyDocImpl* doc, Node *node, AttVal *attval) /* checks type attribute */ void CheckType( TidyDocImpl* doc, Node *node, AttVal *attval) { - ctmbstr const valuesINPUT[] = {"text", "password", "checkbox", "radio", - "submit", "reset", "file", "hidden", - "image", "button", NULL}; + ctmbstr const valuesINPUT[] = { + "text", "password", "checkbox", "radio", "submit", "reset", "file", + "hidden", "image", "button", "color", "date", "datetime", + "datetime-local", "email", "month", "number", "range", "search", + "tel", "time", "url", "week", NULL}; ctmbstr const valuesBUTTON[] = {"button", "submit", "reset", NULL}; ctmbstr const valuesUL[] = {"disc", "square", "circle", NULL}; ctmbstr const valuesOL[] = {"1", "a", "i", NULL};