Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get HTML source from a nsIDOMNode

3 views
Skip to first unread message

fch...@gmail.com

unread,
Jun 25, 2009, 7:10:38 PM6/25/09
to
It appears very simple but I can't find a good direct API to it. Does
anyone know a way? Thanks.

Jens Sorensen

unread,
Jun 25, 2009, 11:58:16 PM6/25/09
to fch...@gmail.com, dev-te...@lists.mozilla.org
Try nsIDOMSerializer

http://www.oxymoronical.com/experiments/apidocs/interface/nsIDOMSerializer

and if you want to go the other way try nsIDOMParser

http://www.oxymoronical.com/experiments/apidocs/interface/nsIDOMParser

Cheers,
Jens


On Thu, Jun 25, 2009 at 4:10 PM, fch...@gmail.com<fch...@gmail.com> wrote:
> It appears very simple but I can't find a good direct API to it. Does
> anyone know a way? Thanks.

> _______________________________________________
> dev-tech-dom mailing list
> dev-te...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-dom
>

Jens Sorensen

unread,
Jun 26, 2009, 12:22:09 AM6/26/09
to fch...@gmail.com, dev-te...@lists.mozilla.org
btw, you could also use InnerHtml

https://developer.mozilla.org/En/DOM/Element.innerHTML

Cheers,
Jens


On Thu, Jun 25, 2009 at 8:58 PM, Jens Sorensen<jensls...@gmail.com> wrote:
> Try nsIDOMSerializer
>
> http://www.oxymoronical.com/experiments/apidocs/interface/nsIDOMSerializer
>
> and if you want to go the other way try nsIDOMParser
>
> http://www.oxymoronical.com/experiments/apidocs/interface/nsIDOMParser
>
> Cheers,
> Jens
>
>
> On Thu, Jun 25, 2009 at 4:10 PM, fch...@gmail.com<fch...@gmail.com> wrote:

>> It appears very simple but I can't find a good direct API to it. Does
>> anyone know a way? Thanks.

0 new messages