Hi all,

I'm trying to use the khtml library right now, but I can't seem to figure out how to use the evaluated style of the html document's elements.

i.e. I'm constructing

DOM::HTMLDocument mydoc = ...
...
DOM::AbstractView aview( mydoc.defaultView() );
...
DOM::HTMLElement currentElement = ....

CSSStyleDeclaration decl ( aview.getComputedStyle(currentElement,  "" /*Implicitly converted to DOMString*/) );

but then the returned style is not null, yet it returns a 0-length DOMString in a call to decl.cssText() .

What am I doing wrong here?


--
Yours sincerely,
                            Alexander Novikov.
                            3A Software Engineering
                            University of Waterloo