parent
c0e6d6807e
commit
20f1e3c7bc
|
@ -1856,13 +1856,19 @@ void CheckLength( TidyDocImpl* doc, Node *node, AttVal *attval)
|
|||
}
|
||||
else
|
||||
{
|
||||
Bool percentFound = no;
|
||||
while (*p)
|
||||
{
|
||||
if (!TY_(IsDigit)(*p) && *p != '%')
|
||||
if (!percentFound && *p == '%')
|
||||
{
|
||||
percentFound = yes;
|
||||
}
|
||||
else if (percentFound || !TY_(IsDigit)(*p))
|
||||
{
|
||||
TY_(ReportAttrError)( doc, node, attval, BAD_ATTRIBUTE_VALUE);
|
||||
break;
|
||||
}
|
||||
|
||||
++p;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue