Hi,
On Jun 23, 2008, at 09:34, Karl Dubost wrote:
there is the very useful Live Dom Viewer. Is there an equivalent
tool online that would show me the DOM as constructed by HTML 5 spec
(or more exactly an implementation of HTML 5 spec such as html5lib)?
Does it need to be online? Would a local tool do?
The trunk version of the Validator.nu parser can be run in Hixie's
Live DOM Viewer on Mac or Linux as follows:
1) Check out the source: svn co http://svn.versiondude.net/whattf/htmlparser/trunk/
htmlparser
2) Download and untar GWT 1.5 RC1:
http://code.google.com/webtoolkit/versions.html
3) On Linux, install libstdc++5 and a JDK (Ubuntu's OpenJDK-based
package worked for me).
4) Edit the paths in HtmlParser-shell (Mac) or HtmlParser-linux
(Linux) to point to the location of GWT.
5) Run HtmlParser-shell (Mac) or HtmlParser-linux (Linux)
* The Linux version of GWT runs an outdated version of Gecko, and
the rendered view doesn't work. The DOM view does.
* The Mac version of GWT runs a Web Inspector-enabled version of
WebKit, but SVG does not draw.
* document.write() semantics are right only for inline scripts.
* The handling of li, dt and dd tokens and p end tokens is not in
sync with the spec.
I'd make an online version, but there's a compiler bug that blocks an
online version:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2069
--
Henri Sivonen
[EMAIL PROTECTED]
http://hsivonen.iki.fi/