W3C home > Mailing lists > Public > www-archive@w3.org > June 2008

Re: live html5 dom viewer

From: Henri Sivonen <hsivonen@iki.fi>
Date: Tue, 24 Jun 2008 10:11:18 +0300
Cc: Philip Taylor <pjt47@cam.ac.uk>, Anne van Kesteren <annevk@opera.com>, "Michael(tm) Smith" <mike@w3.org>, www-archive <www-archive@w3.org>
Message-Id: <9DE9240B-955C-431A-8469-A958338D0FD3@iki.fi>
To: Karl Dubost <karl@w3.org>

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
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Tuesday, 24 June 2008 07:12:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:18:18 GMT