Re: [SVGMobile12] processing attribute values and basic data types

Anne van Kesteren wrote:

>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="
>                     <length>"/>
>
>... 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
>  
>
In the examples you cite, none of the attribute values are in error.  We've
greatly restricted the number of errors in the specification.  In this case, all
of the examples (except the first one) have unsupported values [3] and are
treated as if they hadn't been specified.

>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.
>  
>
It means that CSS units may only be on the 'width' and 'height' attributes on
the 'svg' element.  Any other 'width' and 'height' values may not have CSS units
on them.  If that's different to your understanding of the phrase, I'm not sure
how to reword this - perhaps you could suggest different wording?

>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.
>  
>
SVG Tiny 1.2 presentation attributes are case-sensitive [4], which would suggest that
it wouldn't be a valid <length>.

>
>[1]<http://www.w3.org/TR/SVGMobile12/multimedia.html#AnimationElementWidthAttribute>
>[2]<http://www.w3.org/TR/SVGMobile12/types.html#DataTypeLength>
>  
>
[3] http://www.w3.org/TR/SVGMobile12/implnote.html#UnsupportedProps
[4] http://www.w3.org/TR/SVGMobile12/styling.html#StylingCaseSensitivity

Cheers,

Andrew Shellshear.

Received on Thursday, 12 January 2006 04:18:26 UTC