W3C home > Mailing lists > Public > www-validator@w3.org > September 2004

Re: HTML and CSS validation request source file identification.

From: David Dorward <david@dorward.me.uk>
Date: Mon, 27 Sep 2004 16:37:26 +0100
To: David H McCracken <davidmccracken@juno.com>
Cc: www-validator@w3.org
Message-ID: <20040927153726.GB18088@us-lot.org>

On Sun, Sep 26, 2004 at 09:43:49PM -0700, David H McCracken wrote:
> You provided the following alternative code:
> <a href="http://validator.w3.org/check?uri=theURLofMyFile>...
> <a
> href="http://jigsaw.w3.org/css-validator/validator?uri=theURLofMyFile>...
> The problem with this is that I have to embed the full URL of my file,
> which may move around, and I can't use this code as boilerplate or a link
> include.

You can if you add some (server or pre-upload) logic to set the URI

> I proposed the following JavaScript solution:
> <script type="text/javascript">
> document.getElementById( "aValidHtml" ).href=

This will break in most browsers.  The DOM tree isn't available until
the page has finished rendering. You would need to alter this so that
it executes onload.

David Dorward                                      http://dorward.me.uk
Received on Monday, 27 September 2004 15:37:29 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:23 UTC