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

Re: Public beta test of the W3C Markup Validator

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 27 Oct 2002 11:03:05 +0100
To: Terje Bless <link@pobox.com>
Cc: W3C Validator <www-validator@w3.org>
Message-ID: <3dbbb86b.159998014@smtp.bjoern.hoehrmann.de>

* Terje Bless wrote:
>>The current message is confusing for somebody using file
>>upload. There is probably a better way to explain what happens.
>
>The current code in CVS now reads:
>
>  if ($File->{'Is Upload'}) {
>    my @_source = ('sent by your web browser', 'browser send');
>  } else {
>    my @_source = ('returned by your web server', 'server return');
>  }

  % perl -wMstrict -e \
    "if (1) { my $foo = 1 } else { my $foo = 2 } print $foo"
Global symbol "$foo" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.

>  &add_warning($File, <<".EOF.");
>      <em>Note:</em>
>      The HTTP Content-Type field $_source[0] did not contain
>      a "charset" attribute,

s/attribute/parameter/

>      but the Content-Type was one of the XML text/*
>      sub-types (<code>$File->{ContentType}</code>). The relevant
>      specification (RFC 3023) specifies a strong default of "us-ascii" for
>      such documents so we will use this value regardless of any encoding
>      you may have indicated elsewhere. If you would like to use a
>      different encoding, you should arrange to have your $_source[1] this
>      new encoding information.
>.EOF.

You should suggest to use application/* XML media types.
Received on Sunday, 27 October 2002 05:02:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT