- From: Ola Andersson <Ola.Andersson@ikivo.com>
- Date: Fri, 17 Jun 2005 09:02:28 +0200
- To: "Bjoern Hoehrmann" <derhoermi@gmx.net>
- Cc: <www-svg@w3.org>, "WG SVG" <w3c-svg-wg@w3.org>
Hi Björn, You are completely right. My talk about tiny 1.1 udom is not relevant at all. I was confusing the JSR-226 tiny udom with the SVGT1.1 w3c specification :-( I've replaced the old, wrong example with the one you provided. /ola > -----Original Message----- > From: Bjoern Hoehrmann [mailto:derhoermi@gmx.net] > Sent: den 14 juni 2005 00:10 > To: Ola Andersson > Cc: www-svg@w3.org; WG SVG > Subject: Re: SVG12: get/setAttribute > > * Ola Andersson wrote: > >The mail you refer to does no longer apply due to a later resolution > >in the WG. Set/getAttributeNS do apply (as written in the LC-spec) > >to svg elements. > > Okay, the new example addresses my concern then, thanks. > > >> >Example SVG 1.1 scripting has been changed to: > >> ><svg xmlns="http://www.w3.org/2000/svg" version="1.1"> > >> > <rect id="myRect" x="10" y="20" width="200" height="300" > fill="red" > >> > onclick="var width = parseFloat( > >> > document.getElementById('myRect').getAttributeNS(null, > 'width')); > >> > document.getElementById('myRect').setAttributeNS(null, > 'width', > >> (width+10));"/> > >> ></svg> > >> > >> This seems overly complex to me, I think this should be > >> > >> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> > >> <rect x="10" y="20" width="200" height="300" fill="red" > >> onclick="evt.target.width.baseVal.value += 10" /> > >> </svg> > > > >This is not svg tiny 1.1 compliant. The idea is that the example should > be > >tiny 1.1 udom compliant. We should add baseProfile="tiny" to make this > clear. > > If you add baseProfile="tiny" the example would be non-compliant as SVG > Tiny 1.1 does not allow the onclick attribute on <rect>. And turning it > into a SVG Basic 1.1 document does not seem useful to me; but even then, > SVG 1.1 does not mandate the 'document' object the example uses... So I > think adopting my example is best. > -- > Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de > Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de > 68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Received on Friday, 17 June 2005 07:02:40 UTC