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?
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?
Have you seen Firebug
's HTML tab? Or the Html Validator
plugin?
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.