xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Ley" <...@jibbering.com>
Subject Re: Setting Style in Batik 1.5?
Date Sun, 28 Sep 2003 18:54:33 GMT

"Doug Schepers" <doug@schepers.cc> wrote in message
> org.mozilla.javascript.EvaluatorException: Can't find method
> org.apache.batik.css.dom.CSSOMStyleDeclaration.setProperty(string,string).
> (Inline Script; line 5)

Whilst Thomas is absolutely correct that setProperty takes 3 parameters, I
don't agree that Batik should be erroring here, because ECMAscript has no
notion of fixed parameters, calling  setProperty("foo","bar",null) is
identical in ECMAScript to setProperty("foo","bar")  so whilst I would
accept an error saying that "proirity can't be null", I don't accept that
Batik is doing the right thing within ECMAScript binding.

I'd always argue that null should be type-converted to the empty string if
the binding expects a string and it should actually work.

I'd recommend not using CSS though in authoring SVG, as it'll make Basic
compatibility easier and is reportedly faster in many viewers.


To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message