FireFox 版整洁
我正在寻找创建一个二进制文件,它在标准输入上获取一个 html 字符串,并吐出一个表示 DOM 的格式良好的 xml 字符串。 基本上“整洁”但使用FireFox。
我应该在哪里连接 FF 源代码有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
源代码中包含多个渲染测试。 其中一些与我正在寻找的“接近”,但钩子必须稍作修改。 但作为起点,渲染测试是最好的起点。
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.
您看过
Firebug
的 HTML 选项卡吗? 或者Html Validator
插件?Have you seen
Firebug
's HTML tab? Or theHtml Validator
plugin?