I use an instance of the class nsIDOMCSSStyleDeclaration for accessing
css parameters.
By calling its function member setProperty("display", "none",
"important") I get an exception:
The function "setProperty" returned an error condition (0x80530007),
it's textual representation is
NS_ERROR_DOM_NO_MODIFICATION_ALLOWED_ERR.
Why i get this error and how to change css parameter for particular
element?
Thank you.
The style object returned by getComputedStyle is read-only. You have
to modify the specified values instead.
zw
How can I modify specified value?
Which Interface to use for that, if I would like to set "display" to
"none"?
Thank you.
Is there a reason you can't simply assign to
<element>.style.<parameter> ?
zw
Do you know any interfaces for that?
Or is it possible for example (in case if I can not change css) to set
anattribute for the element and ask xulrunner to recalculate css and
redraw this particular element, or all DOM tree elements?
>My programming language is Java. I use javaxpcom to have an access to xpcom. Actually I can use only those interfaces. And unfortunately I can not follow your suggestion.
>
>Do you know any interfaces for that?
>
Start with nsIDOMElementCSSInlineStyle perhaps?
--
Warning: May contain traces of nuts.
It is not the solution:
1. You can get this interface only if the element has attribute
"style".
2. Mozilla do not redraw/recompute the CSS.
I did not found solution.