exception attr tabindex can begin with '-'

This commit is contained in:
Geoff McLane 2015-01-18 14:46:12 +01:00
parent 995a6122f2
commit 82fc656863

View file

@ -1763,6 +1763,9 @@ void CheckNumber( TidyDocImpl* doc, Node *node, AttVal *attval)
/* font size may be preceded by + or - */
if ( nodeIsFONT(node) && (*p == '+' || *p == '-') )
++p;
/* tabindex may be preceeded by - */
if (attval->attribute && (strcmp(attval->attribute,"tabindex") == 0) && (*p == '-'))
++p;
while (*p)
{