W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

[widgets] test suite, the width/height attribute

From: Cyril Concolato <cyril.concolato@enst.fr>
Date: Fri, 04 Dec 2009 17:04:29 +0100
Message-ID: <4B19330D.5000103@enst.fr>
To: public-webapps <public-webapps@w3.org>
Dear Widgets-experts,

While checking some of the tests, I found some unclear processing with regards to the width and height attribute of widget element. The spec says:

"If the width attribute is used, then let normalized width be the result of applying the rule for parsing a non-negative integer to the value of the attribute. If the normalized width is not in error  and greater than 0, then let widget width be the value of normalized width. If the width attribute is in error, then the user agent must ignore the attribute."

It explicitely says "greater than 0" which means that 0 should not be allowed, but the test suite says for c9.wgt that the result should be 0. This seems inconsistent. On top of that, the spec seems to make the distinction between 'null' (when in error) and '0' (not specified). From an implementation point of view, I would prefer two cases:
- specified, not in error, greater than 0, width = the specified value
- in error or not specified, width = null, empty or 0. 

Actually, I would prefer 0 since then the attribute can be implemented as an integer not as a string.

What do you think ?


Cyril Concolato
Maître de Conférences/Associate Professor
Groupe Mutimedia/Multimedia Group
Département Traitement du Signal et Images
/Dept. Signal and Image Processing
Ecole Nationale Supérieure des Télécommunications
46 rue Barrault
75 013 Paris, France
Received on Friday, 4 December 2009 16:04:59 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:21 UTC