tags:

views:

115

answers:

2

I'm looking to create a binary that takes an html string on stdin, and spits out a well formed xml string representing the DOM. Basically "tidy" but using FireFox.

Any ideas where I should hook into the FF source code?

A: 

Have you seen Firebug's HTML tab? Or the Html Validator plugin?

Daniel A. White
of course, but I don't want a GUI, just a command line program to tidy up HTML.
Paul Tarjan
+1  A: 

There are multiple rendering tests included in the source code. Some of them are "close" to what I'm looking for but the hooks have to be slightly modified. But as a starting point, the rendering tests are the best place to start.

Paul Tarjan