[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Getting the content of a KParts::SelectorInterface::Element
From:       Thom Castermans <thom.castermans () gmail ! com>
Date:       2013-08-21 14:50:00
Message-ID: CACpGtSatqmRLmNn7bLiGn9Hrxz6UxWGKzrM+5rZOvRew9Dva6w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I'm just guessing here because I have no experience with programming
KParts, but it is quite normal in Javascript(libraries) to have an
attribute "innerHTML" or simply "html" that references the contents of the
node. Maybe this also works here?

Cheers,
Thom Castermans

Groeten,
Thom


2013/8/21 Denis Steckelmacher <steckdenis@yahoo.fr>

> Hi,
> 
> I'm trying to write a Konqueror plugin that needs to get the content of
> DOM nodes matched by a CSS selector. I use the SelectorInterface of
> KParts::HtmlExtension to get the list of elements matching a CSS selector.
> 
> The problem is that KParts::SelectorInterface::**Element only has methods
> to get the value of attributes. Is there a mean to get the content of a
> KParts::SelectorInterface::**Element (maybe by using another KParts
> extension or something like that) ?
> 
> Thanks,
> Denis Steckelmacher.
> 
> Visit http://mail.kde.org/mailman/**listinfo/kde-devel#unsub<http://mail.kde.org/mailman/listinfo/kde-devel#unsub>to \
> unsubscribe <<
> > > 
> > 


[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div>Hi,<br><br></div>I&#39;m just guessing here because I \
have no experience with programming KParts, but it is quite normal in \
Javascript(libraries) to have an attribute &quot;innerHTML&quot; or simply \
&quot;html&quot; that references the contents of the node. Maybe this also works \
here?<br> <br></div>Cheers,<br></div>Thom Castermans<br></div><div \
class="gmail_extra"><br clear="all"><div>Groeten,<br>Thom</div> <br><br><div \
class="gmail_quote">2013/8/21 Denis Steckelmacher <span dir="ltr">&lt;<a \
href="mailto:steckdenis@yahoo.fr" \
target="_blank">steckdenis@yahoo.fr</a>&gt;</span><br><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi,<br>
<br>
I&#39;m trying to write a Konqueror plugin that needs to get the content of DOM nodes \
matched by a CSS selector. I use the SelectorInterface of KParts::HtmlExtension to \
get the list of elements matching a CSS selector.<br>

<br>
The problem is that KParts::SelectorInterface::<u></u>Element only has methods to get \
the value of attributes. Is there a mean to get the content of a \
KParts::SelectorInterface::<u></u>Element (maybe by using another KParts extension or \
something like that) ?<br>

<br>
Thanks,<br>
Denis Steckelmacher.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> Visit <a \
href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/<u></u>listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> </blockquote></blockquote>
</blockquote></div><br></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