W3C home > Mailing lists > Public > www-validator@w3.org > October 1999

Re: Parsing of JavaScript

From: Terje Bless <link@tss.no>
Date: Sun, 31 Oct 1999 01:20:09 +0200
Message-Id: <199910302323.BAA20078@vals.intramed.rito.no>
To: W3C Validator <www-validator@w3.org>
On 22.10.99 at 23:19, Bjoern Hoehrmann <derhoermi@gmx.net> wrote:

>For the check script revision 1.40 I would like to suggest to:
> * add 'require 5.004;' to the script

That's usually my comment after adding some non-compatible code; usually
involving the use of my() variables in foreach() loops. :-)

I'll add it to my local copy -- so it'll be in the next patch I send -- and
hopefully it'll propogate onto the trunk.

> * move 'my $temp  = "/usr/tmp/validate.$$";' up to the other path
> variables

I've been thinking of generating a patch for this and similar cleanup of
that section, but I'm afraid it'll just leave Gerald with an equal amount
of cleanup work to adapt it to his style of coding. It might sneak in as a
by-product of another patch though, as I tend to make these changes locally
and I'm a bit sloppy about cleaning it up before submitting patches.

Gerald must *hate* my gratuitous changing of HTML element case, code
indentation, and bracketing style by now. :-|

> * Put the CSS Validator URL (found at sub output_css_validator_blurb)
> into a variable to make it easier to change it

Good idea that is applicable to a few other things as well. It's also a
necessity for decent local installation support and output templates.

> * and maybe add some comments into the script on howto make the script
> run under non-posix systems. Therfore you have to change
> $command  = "$codeconv $sp -E0 $xmlflags $catalog $decl"; open( CHECKER,
> "| $command - >$temp.esis 2>$temp" )
> into
> $command  = "$codeconv $sp -f$temp -E0 $xmlflags $catalog $decl"; open(
> CHECKER, "| $command - >$temp.esis" )
> A comment in the source code would be very helpful. Several people
> already asked me how i got the validator running under Win9x.

I don't like the way this is handled in general and have been looking for
ways of cleanig it up some. This sounds an excellent idea!

OTOH, this kills an idea I had that would require POSIX compliance. :-(

>For german readers I'm now providing a tutorial how to get the Validator
>running under Win32/Linux + Apache at
> <URL:http://www.bjoernsworld.de/html/validator-offline>

Is that available somewhere in English? It sounds like this would be
usefull to a lot of people.

>And last I'm interested how you Terje and you Gerald plan to use HTML Tidy
>for the validator, especially the output method would be interesting.
>Maybe i can offer some old source code developed some time ago.

I dunno what Gerald has in mind -- apart from what's on the TODO list --
but my thoughts were to simply offer an option to run the file through
Tidy's "Fix" mode and to possibly use Tidy for pretty printing the source
listing in the validator output. The former might be better served by a
dedicated web-gateway for Tidy and the latter could probably be better
implemented using nsgmls parse tree or one of the relevant Perl modules.

Any ideas, and patches, would be appreciated.
Received on Saturday, 30 October 1999 19:24:19 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:26 UTC