David Dorward | 2 Dec 2005 00:22
Picon
Favicon
Gravatar

RE: Error Message Feedback


On Thu, 2005-12-01 at 15:15 -0800, Brian MacLeod wrote:

(Not trimmed as much as I would normally for the benefit of the mailing
list, which I'm CCing this thread back to, my response is below)

> My SQL database has some material generated from a PR feed.  This includes
> some characters such as curly inverted commas and hyphen characters that
> fall into some black hole (I'm still not up to speed on the ASCII/ISO/UTF
> thing yet but do understand that there is a block of problematic characters
> in the greater-than-3FH range).  Turns out that one of these characters was
> not purged on entry into the database and was showing up on the problem web
> page in the brief overview portion of the PR material.  Once I corrected the
> character, the Validator gave me good results. 
> 
> Validator problem
> 
> The presence of this hyphen character cases the Validator to baulk and give
> the non-UTF-8 error message I attached to my earlier e-mail message to you.
> This is not accompanied by anything other than the line reference to where
> the offending character was placed.

I _think_, that the problem with showing the source is that the software
would have to display the character, but since the character doesn't
exist in the specified character encoding, it isn't really a character -
its just some random bytes. Random bytes don't map to anything that
_could_ be displayed.

--

-- 
David Dorward                           <http://dorward.me.uk/>
(Continue reading)

David Dorward | 2 Dec 2005 09:18
Picon
Favicon
Gravatar

RE: Error Message Feedback


On Thu, 2005-12-01 at 15:52 -0800, Brian MacLeod wrote:
> Assuming that non-characters could be small (as in my case where it was an
> out-of-range character encoding) or very large (e.g random bytes introduced
> in quantity), just show a small sample from the beginning of the problem
> area.  Something like 6-8 bytes.  The appropriate Validator output would
> then be:
> 
> <valid UTF-8 characters>
> 
> <initial 6-8 bytes or invalid material>

But then the validator output would not be valid.

> With an output like this, the ability to debug would be preserved without
> placing much burden on the Validator tool.  In my case where the output line
> number bears no relationship to the source, I would have been able to
> pinpoint the problem in a heartbeat.

Well, the output line number does bear a relationship to the source. You
can always generate the markup from your script and examine that.

> PS I'm new to W3 discussions.  Where do I find the "thread" and other
> discussion?

http://lists.w3.org/Archives/Public/www-validator/

--

-- 
David Dorward                           <http://dorward.me.uk/>
"Anybody remotely interesting is mad, in some way or another."
(Continue reading)

David Dorward | 2 Dec 2005 21:09
Picon
Favicon
Gravatar

RE: Error Message Feedback


On Fri, 2005-12-02 at 11:28 -0800, Brian MacLeod wrote:

> I'm only suggesting that the Validator output this as part of an error,
> similar to what it does when it discovers an HTML error.  It outputs the
> incorrect HTML and flags the file as invalid.

Actually, it outputs an HTML representation of the source code to the
file.

Doing something similar for bytes which can't be interpreted as
characters isn't so simple.

--

-- 
David Dorward                           <http://dorward.me.uk/>
"Anybody remotely interesting is mad, in some way or another."
                             -- The Greatest Show in the Galaxy

Djeepy46234 | 3 Dec 2005 02:22
Picon
Favicon

Error Message Feedback


Hi

I know a lot of people all around the WWW use PHP on their website. The 
only problem is when there's a PHP error on a page, the page is 
automaticaly not valid because the Warnings go out of the !DOCTYPE 
declaration.

It would be great to allow PHP errors to go out of the !DOCTYPE to 
prevent those kinds of error.

Thanks
Jean-Philippe Monette

Eric Sabo | 2 Dec 2005 16:19
Picon

[VE][79] Error Message Feedback - Head tag not opened error


Validating Error [79]: "end tag for element X which is not open"

[ I do believe there may be a bug in the validator. It is not finding
my <head> tag to be opened and so spits out error 79. Please see my
code - keep in mind I am prevalidating a template so the things in
brackets are the tags. I thought that they may have been confusing the
validator so I tried it on a fully rendered page and it gave the same
error. It also gives an error that the <body> tag doesn't belong where
it is, but I think that may have something to do with the <head> tag
issue. Here is my code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>[title]</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="templates/[template]/layout.css" type="text/css">
[scripts]
</head>
<body>

thank you in advance, and please, tell me if its my problem and not
yours! I can't seem to figure out why, for the life of me, Im getting
that error.
]

--
Eric Sabo
(Continue reading)

Jukka K. Korpela | 4 Dec 2005 08:39
Picon
Picon

Re: [VE][79] Error Message Feedback - Head tag not opened error


On Fri, 2 Dec 2005, Eric Sabo wrote:

> [ I do believe there may be a bug in the validator.

There are bugs in the validator, but this isn't one of them.

> Here is my code

Is it your real code? It looks rather odd. Please post a URL
in future.

> <link rel="stylesheet" href="templates/[template]/layout.css" type="text/css">
> [scripts]

The string [scripts] is character data outside tags, so by HTML rules,
it will be taken as content implicitly wrapped inside a <body> element.
This terminates a <head> element, so any subsequent </head> tag is
an error.

My crystal ball whispers that you didn't post your real code and that the
real code has some <script> elements there and a real <body> element.
Besides, there's probably a "/" before a ">" somewhere, meant to make a 
tag self-closing in XHTML manner but actually making the document invalid
by HTML rules.

--

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

(Continue reading)

Eric Sabo | 5 Dec 2005 05:02
Picon

Re: [VE][79] Error Message Feedback - Head tag not opened error

There are bugs in the validator, but this isn't one of them.


 

Is it your real code? It looks rather odd. Please post a URL
in future.

Yes, it is the real code I was submitting to the validator. I was prechecking a template I wrote for a CMS am in the process of programming. You are correct in that some <script> elements are stuck there when its processed. I ran it on my site (beta.skyphix.com/skyphix.com) which has a million other errors because its still very early beta and the dynamically generated code isn't very clean yet, and still got the error I was getting. I found some eronious poorly generated code that I stripped out and fixed the issue. The [script] was, indeed, confusing the validator and causing it to error out.

Thank you for your follow up. I guess I was suffering from some frustration and should've have prematurely claimed a "bug". It seems as though walking away from my PC and coming back to it would've solved my problem.




--
Eric Sabo
518-791-0068
Nicolas ARGYROU | 5 Dec 2005 12:24
Picon
Favicon

Error Message Feedback


Hello,

This is actually a suggestion for a minor addition to
the Validator: to add the Title of the page to the
Outline.

I often use the validator and I found it very useful.
When I want to revalidate pages to check if everything
is still ok, I usually don't need verbose output, but
I often need to be sure that the correct page was
checked. Adding the Title tag to the 'ouline' option
would save bandwith in those cases and still allowing
to quickly check that the correct page was validated
(even if no H1-H6 tags are present in the page).

This is only a small suggestion, although it seems
important to me since I have a personal web server
with low bandwith and dynamic IP. I assume that this
small option will nonetheless be useful to many people
that are using regularly the Validator.

Best regards,
  Nicolas Argyrou

		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 

Gerard Saunders | 6 Dec 2005 06:47
Picon
Favicon

validator fails to check htaccess protect pages...


Hi, We have installed the W3C Markup Validator locally however
we are having issues checking any webpage protected by a .htaccess
file. There are no issues with non-htaccess protected pages.

If we check the same pages via the validator.W3c.org checker, the
authentication is successful and the page checked.

This give the impression that the auth details are being passed
to the server which holds the page being checked...

All of our htaccess files use the "Basic Authentication" scheme, 
which from what I have read is supported. 

Does anybody have some advice why one method would work (validator.W3c.org)
and and not the other (local)? Are there any obvious http settings that would
cause this to fail?

I have tried checking pages using the http://username:password <at> host/page.html
and this works with our local version, however is not really an acceptable 
alternative.

Gerard.

Robert Hughes | 6 Dec 2005 03:38
Favicon

[VE][105] Error Message Feedback


Validating http://theorniphile.info/
Error [105]: "an attribute specification must start with a name or name 
token"

I get this error message when I use javascript to scramble e-mail 
addresses. I've tried rewriting the code to make it work with the 
validator but no go. Here's an example of the code I use:

<p>Send comments to me, <script language="javascript" 
type="text/javascript">
var start = "<a href='mailto:";
var name = "rhughes.enteract";
var at = " <at> ";
var url = "rcn.com?subject=re:Your birding Web site'";
var title = "title = 'E-mail me'>";
var link = "<span class='bold'>Robert Hughes</span>";
var end = "</a>";
document.write(start + name + at + url + title + link + end);
</script>.
</p>

Any suggestions?

Robert Hughes
Chicago, Illinois


Gmane