Merge pull request #37 from e98cuenc/input-html5

Accept HTML5 input types.
This commit is contained in:
Michael[tm] Smith 2012-06-07 23:08:56 -07:00
commit 491f3df396

View file

@ -1811,9 +1811,11 @@ void CheckLang( TidyDocImpl* doc, Node *node, AttVal *attval)
/* checks type attribute */ /* checks type attribute */
void CheckType( TidyDocImpl* doc, Node *node, AttVal *attval) void CheckType( TidyDocImpl* doc, Node *node, AttVal *attval)
{ {
ctmbstr const valuesINPUT[] = {"text", "password", "checkbox", "radio", ctmbstr const valuesINPUT[] = {
"submit", "reset", "file", "hidden", "text", "password", "checkbox", "radio", "submit", "reset", "file",
"image", "button", NULL}; "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 valuesBUTTON[] = {"button", "submit", "reset", NULL};
ctmbstr const valuesUL[] = {"disc", "square", "circle", NULL}; ctmbstr const valuesUL[] = {"disc", "square", "circle", NULL};
ctmbstr const valuesOL[] = {"1", "a", "i", NULL}; ctmbstr const valuesOL[] = {"1", "a", "i", NULL};