W3C home > Mailing lists > Public > www-svg@w3.org > December 2005

[SVGMobile12] processing attribute values and basic data types

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Thu, 22 Dec 2005 18:38:24 +0100
Message-ID: <20051222183824.4nx1cxec9mgww4os@webmail.annevankesteren.nl>
To: www-svg@w3.org

I was wondering about error handling with regard to the basic data types or
perhaps how attribute values should be processed. Lets take the 'width'
attribute of the svg:animation element as example[1]. As value it takes a
<length> data type[2].

It is currently not clear to me in which of the following examples the specified
value of 'width' would actually be used (assuming <length> is replaced by a
valid <length> value):

1. <animation width="<length>"/>
3. <animation width=" <length>"/>
3. <animation width="  <length> "/>
4. <animation width="

... et cetera.

The definition of <length> does not mention the term "in error", which seems odd
given that it easily can be in error. For example,

# 47notaunit

The sentence "SVG Tiny 1.2 only supports CSS units on the the 'width' and
'height' attributes on the 'svg' element." is also unclear to me. Is it meant
here that UAs are only required to implement 'width' and 'height' when <length>
contains a unit for the svg:svg element (and can optionally do so for other
elements)? The phrase itself sounds more like some limitation from an
implementation than something you'd read in a specification.

Is the following a valid <length>:

# 12eM

... when it is a value of an attribute? It would be valid in a text/css style
sheet, but currently SVG 1.2 does not say anything about case-sensitivity.


Anne van Kesteren
Received on Thursday, 22 December 2005 17:38:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:05 UTC