- From: T.V Raman <raman@google.com>
- Date: Tue, 17 Mar 2009 09:08:48 -0700
- To: jonas@sicking.cc
- Cc: raman@google.com, robin@berjon.com, forums@david-woolley.me.uk, www-svg@w3.org, public-html@w3.org
Correct. I believe in its final incarnation, the HTML5 work needs to define the following: A) The collection of algorithmic hacks that it takes to go from the garbage found on the legacy Web to a meaningful DOM. B) Define *everything* else -- in terms of that canonical DOM, including clean serialization. C) Help authors debug JavaScript etc as you describe. Perpetuating the legacy mess without cleanups along the way will probably ensure that the whole thing crumbles under its own weight over time --- to be replaced by something even worse. And to quote Douglas Adams: "many believe that this may have already happened". Jonas Sicking writes: > On Mon, Mar 16, 2009 at 9:58 AM, T.V Raman <raman@google.com> wrote: > > And this is why in gneral, it would be a good idea for > > show-source to perhaps show a cleaned-up serialization, rather > > than the original tag-soup that was authored. > > This is a very interesting idea. There are a few problems that needs > to be solved, such as ensuring that the cleaned-up source parses to > exactly the same DOM as the raw source. There's also the problem that > javascript error messages containing line numbers needs to stay > meaningful. > > One possible solution would be to have a button in the view-source > window that allows you to toggle between "cleaned up" view and "raw > off the network" view. I think firebug supports something very similar > where you can show to view "pretty printed" javascript, or the raw > source of the page. > > This I think would be great not just to help authors create cleaner > markup, but also help people read pages that have been "compressed" or > even intentionally obfuscated. > > / Jonas -- Best Regards, --raman Title: Research Scientist Email: raman@google.com WWW: http://emacspeak.sf.net/raman/ Google: tv+raman GTalk: raman@google.com, tv.raman.tv@gmail.com PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Received on Tuesday, 17 March 2009 16:10:14 UTC