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
--
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
http://tsi.enst.fr/~concolat