Lately a bookmark of a friend on del.icio.us called my attention to the Aardvark Firefox Extension. The main benefit I see in Aardvark tools, is the ability generating JavaScript code which returns the DOM of the selected HTML. This is useful, when you’re developing e.g. widgets and you want to use all the DOM manipulation methods out there instead of dumb innerHTML. Aardvark Tools uses a self written method for generating the DOM.
Two things came to my mind when I played around with Aardvark:
- This DOM creation thing could use the Builder class of script.aculo.us or the Element class of Prototype instead of it’s own createElement method.
- The whole thing would make up great as a Firebug extension.
Further there is even a third point: Instead of just Prototype and script.aculo.us other DOM-creating-class of JS libraries like jQuery and Dojo could be included.
So, having these ideas in mind, I searched a bit on the internet and found this pretty helpful article written by Jan Odvarko: Extending Firebug.
I'm a Software Developer, currently working at