# Interacting with Mozilla DOM?

**URL:** <https://www.ruby-forum.com/t/interacting-with-mozilla-dom/69746>\
**Category:** Ruby\
**Created:** [September 23, 2006, 7:45pm UTC](https://www.ruby-forum.com/t/interacting-with-mozilla-dom/69746 "2006-09-23T19:45:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [September 23, 2006, 7:45pm UTC](https://www.ruby-forum.com/t/interacting-with-mozilla-dom/69746/1 "2006-09-23T19:45:35Z")

</div>

I’m trying to figure out a way of controlling/interacting with the  
Mozilla DOM without JavaScript, and in a not-too-hacky way. Any  
thoughts?

Thanks,  
Ken

---

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [September 23, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/interacting-with-mozilla-dom/69746/2 "2006-09-23T22:31:54Z")

</div>

Kenneth McDonald wrote:

> I’m trying to figure out a way of controlling/interacting with the  
> Mozilla DOM without JavaScript, and in a not-too-hacky way. Any thoughts?
> 
> Thanks,  
> Ken

Depending on your OS…on \*nix there is gtkmozembed, which has ruby  
bindings [1]. There’s also rbXPCOM (looks old) [2]. I’ve never used  
either, so I don’t know how well they work (if at all).

[1] [http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AMozEmbed](http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3AMozEmbed)  
(more examples here  
[http://ruby-gnome2.sourceforge.jp/hiki.cgi?RubyGecko](http://ruby-gnome2.sourceforge.jp/hiki.cgi?RubyGecko))  
[2] [http://www.mozilla.org/catalog/architecture/xpcom/rbxpcom/](http://www.mozilla.org/catalog/architecture/xpcom/rbxpcom/)

Regards,  
Jordan

---

<div class="post-metadata">

**Author:** ![Kenneth\_McDonald](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/dc4da7/32.png) [@Kenneth\_McDonald](https://www.ruby-forum.com/u/Kenneth_McDonald)\
**Post date:** [September 30, 2006, 2:00am UTC](https://www.ruby-forum.com/t/interacting-with-mozilla-dom/69746/3 "2006-09-30T02:00:49Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

MonkeeSage wrote:

> Kenneth McDonald wrote:
> 
> > I’m trying to figure out a way of controlling/interacting with the  
> > Mozilla DOM without JavaScript, and in a not-too-hacky way. Any thoughts?
> 
> Depending on your OS…on \*nix there is gtkmozembed, which has ruby  
> bindings [1].

The Ruby binding to GtkMozEmbed doesn’t seem to let you access the  
underlying XPCOM DOM object, only trivially display some HTML and  
whatever else Gecko supports right now.

David V.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.5 (MingW32)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iD8DBQFFHbMby6MhrS8astoRArVyAJ9lsdGP3m+Urvfr7SARNxoQNRz8KwCfaXnq  
/5jLdkp8ECChh1rFuSfNRho=  
=hFso  
-----END PGP SIGNATURE-----
