Need some khtml help

View: New views
1 Messages — Rating Filter:   Alert me  

Need some khtml help

by Alexander Novikov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<