DOM的Gecko API [英] Gecko API for DOM

查看:180
本文介绍了DOM的Gecko API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gecko公开了一个直接使用DOM工作的API吗?我正在寻找一个类像HtmlElement,可以用来构建/遍历HTML内容的树。

Does Gecko expose an API for working directly with its DOM? I'm looking for a class like HtmlElement that can be used to build/traverse trees of HTML content.

我试图在桌面应用程序中托管Gecko作为Web浏览器控件,并且喜欢直接API而不是通过COM。谢谢!

I'm trying to host Gecko as a web browser control in a desktop application, and would prefer a direct API rather than going through COM. Thanks!

推荐答案

是的,几乎所有与DOM相关的类都是通过XPCOM公开。事实上,我相信Gecko的整个功能是这样的。

Yes, virtually all of the classes relating to the DOM are exposed through XPCOM. In fact, I believe the entire functionality of Gecko is exposed this way.

这篇关于DOM的Gecko API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆