W3C home > Mailing lists > Public > www-svg@w3.org > May 2000

Re: The getStyle() method

From: Jon Ferraiolo <jferraio@Adobe.COM>
Date: Fri, 26 May 2000 09:44:45 -0700
Message-Id: <200005261641.JAA12382@mail-345.corp.Adobe.COM>
To: "Kenneth Wallis" <kennethw@corel.com>
Cc: www-svg@w3.org
The example is 19.3 is wrong. There is no getStyle() method call; instead,
there is a DOM attribute named 'style' of type CSSStyleDeclaration for
implementations that support CSS:

    readonly attribute CSSStyleDeclaration  style;

My guess is that the example in 19.3 was written long ago based on an a
much-earlier from of DOM2 and that it was never updated. I'll make sure
this gets fixed.

Jon Ferraiolo
SVG Editor
Adobe Systems Incorporated

At 12:04 PM 5/26/00 -0400, Kenneth Wallis wrote:
>In the svg spec, section 19.3, there is an example of animation using
>the SVG DOM.  In this example, there is the following line:
>text_element.getStyle().setProperty("opacity", "opacity:" +
>opacityfactor, "")
>I was wondering where the getStyle() method is defined?  I have looked
>and can't find this method anywhere.
>Kenneth Wallis
>Software Developer
>Corel Corporation
>Take your office suite performance to an exciting new level. Check it
>out at http://www.corel.com/featuresinaction
Received on Friday, 26 May 2000 12:42:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:48 UTC