xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Possible SMIL support issue
Date Tue, 26 Aug 2008 10:00:50 GMT
Hi John,

"John C. Turnbull" <ozemale@ozemail.com.au> wrote on 08/25/2008 08:24:21 
AM:

> I saw this SVG mentioned in a message to the SVG Developers list and
> tried it out with the latest build of Batik.  It complains that the 
> method cloneNode in AbstractNode does not exist.
> 
> What does this mean exactly?

   It means that the JavaScript is trying to pass a string "true"
to a method that takes a boolean.  If you change the call to
cloneNode so that it passes "true" without the quotes it seems to
work.

> Is this a method that Batik is supposed to have implemented 
> and/or is it something to do with the state of SMIL support in Batik?

   It's more of an artifact of how Batik's Java implementation of
the DOM interfaces with Rhino (the Java based JavaScript interpreter).
Since Java is strongly typed it tries to find a method that matches
the call from JavaScript.  A native JavaScript implementation would
accept the string and since it isn't 'null' it would be treated as
passing 'true'.
Mime
View raw message