[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Need some khtml help
From: Alexander Novikov <al.an.novikov () gmail ! com>
Date: 2009-10-23 19:27:31
Message-ID: 7e3389b10910231227r72994fa7g749aae82b31ac175 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
Hi all,<div><br></div><div>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.</div><div><br></div><div>i.e. I'm constructing</div> \
<div><br></div><div>DOM::HTMLDocument mydoc = ...</div><div>...</div><div>DOM::AbstractView \
aview( mydoc.defaultView() );</div><div>...</div><div>DOM::HTMLElement currentElement = \
....</div><div><br></div><div>CSSStyleDeclaration decl ( aview.getComputedStyle(currentElement, \
"" /*Implicitly converted to DOMString*/) );</div> <div><br></div><div>but then the \
returned style is not null, yet it returns a 0-length DOMString in a call to decl.cssText() \
.</div><div><br></div><div>What am I doing wrong here?</div><div><br></div><div><div><br>-- \
<br> Yours sincerely,<br> Alexander Novikov.<br> \
3A Software Engineering<br> University of Waterloo<br><br> \
</div></div>
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic