Re: width="n*" marked invalid on <COL>

On 9 Jan 2002 at 9:55, Neil Bird wrote:

> Around about 01/09/02 08:21, Terry Teague scribbled ...
> 
> > Looking at the code, the CheckLength() function in attrs.c doesn't allow
> > for the relative form of the multilength attribute value type (n*). The fix
> > probably should only allow the relative form for HTML 4.0 or later.
> 
>    This fixes it (or, at least, allows it):

[...]
>    ... but,
> 
> a) is that right for the version check?
> 
> b) it doesn't limit it to <COL> (and what else?)

<COLGROUP>. And nothing else. See the dtd:
 <http://www.w3.org/TR/REC-html40/sgml/dtd.html#MultiLength>

> 
> c) shouldn't it stop parsing the length upon the % or *? 
> Otherwise "123*456" is deemed valid, isn't it?

Yes it should.

Received on Wednesday, 9 January 2002 06:03:00 UTC