Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top