W3C home > Mailing lists > Public > www-svg@w3.org > March 2009

Re: SVG Feedback on HTML5 SVG Proposal

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 16 Mar 2009 17:05:54 -0700
Message-ID: <63df84f0903161705h1e5b7930j6d149e3b6e83ab7b@mail.gmail.com>
To: "T.V Raman" <raman@google.com>
Cc: robin@berjon.com, forums@david-woolley.me.uk, www-svg@w3.org, public-html@w3.org
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
Received on Tuesday, 17 March 2009 00:06:38 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:41 GMT