parent
c0e6d6807e
commit
20f1e3c7bc
|
@ -1856,13 +1856,19 @@ void CheckLength( TidyDocImpl* doc, Node *node, AttVal *attval)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Bool percentFound = no;
|
||||||
while (*p)
|
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);
|
TY_(ReportAttrError)( doc, node, attval, BAD_ATTRIBUTE_VALUE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue