Re: Bug in the HTML Validator

Jukka K. Korpela wrote:

> Regarding the W3C Validator, I wonder whether it _really_ has a bug in
> processing of attribute values. If I use
> <input maxlength=" 12">
> the validator reports no error. Yet, I cannot see anything in the SGML
> standard that would allow the leading space, when the attribute is
> declared as NUMBER.

The validator is correct. "An attribute value other than character data is
tokenized by [...] and ignoring leading or trailing SPACE characters"
(Clause 7.9.3 of ISO 8879). This happends before the number token (which
does not allow whitespace) is recognized.

-- 
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/

Received on Monday, 7 August 2006 13:19:53 UTC