"Doug Schepers" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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.
Jim.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]