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

RE: problem with validator

From: Terje Bless <link@pobox.com>
Date: Fri, 9 Aug 2002 15:15:46 +0200
To: "Lee A. Jones" <lee@archid.co.uk>
cc: W3C Validator <www-validator@w3.org>, Thanasis Kinias <tkinias@optimalco.com>
Message-ID: <r01050300-1015-1D9BE15BAB9A11D6AE3600039300CF5C@[193.157.66.10]>

Lee A. Jones <lee@archid.co.uk> wrote:

>Can I just confirm that the following is INCORRECT: [...]
>
>The script that is added by the server daemons for banner ads, inserts
>it BETWEEN the closing </head> tag and the opening <body> tag. Shouldn't
>this appear BEFORE the </head> tag? Am I correct in believing that this
>is incorrect HTML?

Yes. This is incorrect. See
<URL:http://validator.w3.org:8001/check?uri=http://www.aeropork.com/;sp>.
If you study the Parse Tree you'll find that the <script> tag implies an
opening <body> tag before it, meaning you now have _two_ <body> tags in the
document. That page also has a trailing ACSII NUL (0x00) byte as the final
byte of the file.

I would reccomend that instead of inserting a script "in-line" as it were,
they insert a reference to an external JavaScript file, and put the link
inside the <head> section. Their software also really appears to have a bug
that leaves a trailing NUL floating around. This is very likely due to
whatever programming language used to implement the script insertion having
NUL terminated strings ("C" is one such language) or something along those
lines.


PS. The DirectNIC guy /has/ to appear very sure of himself. It goes with
that kind of job. Customers need to feel that the support person is in
complete control or they begin to get uncertain, and there is a class of
customers that get really obnoxious when the support people admit to not
knowing something. With a bit of patience you'll get through to him. :-)

-- 
"A plague o' both your houses! I am sped." - Mercutio, kinsman to the Prince.
                   See Project Gutenberg <URL:http://promo.net/pg/> for more.
Received on Friday, 9 August 2002 09:15:56 GMT

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