W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > July 2007

Re: line number problem

From: Sean Owen <srowen@google.com>
Date: Fri, 13 Jul 2007 09:23:00 -0400
Message-ID: <e920a71c0707130623r51aaafc5r44a251f82de8c037@mail.gmail.com>
To: "Jo Rabin" <jrabin@mtld.mobi>
Cc: "Laura Holmes" <holmes@google.com>, public-mobileok-checker <public-mobileok-checker@w3.org>

It's a reasonable point. I know however that the first thing I do when
I get a validation error on a page is "view source" and figure out
what's going on, which will confuse people. But as you say, we have
the chance to refer to a location in a pretty-printed version which
may be more helpful -- or even to a tidied version.

I'm cool with this approach as long as there's an understanding that
tools will need to show the copy of the doc to which it's referring.
Presumably the snippets of code we present help locate the error too
regardless of line numbers.

Sean

On 7/13/07, Jo Rabin <jrabin@mtld.mobi> wrote:
> It may be a slightly abstract, or abstruse, point but I think we should
> be clear that when we are reporting an error, it is indeed against the
> moki document's copy and not "the original".
>
> We shouldn't get too hung up on this but the point is presumably that
> there may be "no such document" as the original, since it may be
> dynamically generated and the "line number" may not be very interesting
> from that point of view. Indeed, in a number of cases it will be "1" -
> i.e. the original document is serialised as a character stream without
> formatting - it's kind of what we recommend under MINIMIZE, after all.
>
> Or to put it another way, the line number fulfils a secondary and not a
> primary purpose. The point of it being there is to assist in the primary
> purpose which is help a human find out what we are moaning about in the
> results.
>
> So fwiw, I would be happy with reporting the line number relative to the
> serialised moki copy and have error reporting tools do syntax
> highlighting, or whatever, on that. From that pov an XPath expression
> might even actually be more use. At least I think we should consider
> putting it in.
>
> Jo
Received on Friday, 13 July 2007 13:23:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:13:03 GMT