[Sussex] Strange error when checking html with W3C validator

John D. john at johnsemail.eclipse.co.uk
Wed Jul 13 10:12:40 UTC 2005


Ronan Chilvers wrote:
>On Wed, 13 Jul 2005 09:32:22 +0100
>"John D." <john at johnsemail.eclipse.co.uk> wrote:
>
>  
>>Ronan Chilvers wrote:
>>    
>>>On Wed, 13 Jul 2005 07:38:29 +0100
>>>Geoff Teale <tealeg at member.fsf.org> wrote:
>>>
>>>      
><snip>
>  
>>I have tidy installed and as far as I can see it just has to be 
>>selected/checked as an option too work (which it is). PHP? (Whooosh -
>>as it goes flying straight over my head! :-) )
>>    
></snip>
>
>Are you using tidy though?  When you say its selected / checked, where
>do you mean?  Tidy is usually run from the command line - if I have a
>file called mydoc.html that I want to tidy into valid xhtml I would do
>this:-
>
>$ tidy -indent -asxhtml mydoc.html -o myxhtmldoc.html
>
>-indent gives you nicely indented source and -asxhtml does what it says
>on the tin.  The -o squirts the results into the specified file.  You
>can use the -m switch to have the original document modified instead.
>
><snip>
>  
>>I was just double, double checking and also tried konqueror as well,
>>and when the validator page is use in that, it's spitting out the
>>same error as when I use Opera.
>>
>>Google chucks out a couple of possibles, but I don't follow what the 
>>validator means by "prolog"? i.e. whether it's referring to the xml 
>>declaration or the DTD (or both?). As far as I can see, the
>>    
></snip>
>
>The prolog is the XML declaration at the start of your document.  In
>your first post, the document encoding in the prolog was UTF-8 but
>subsequently you showed it as iso-8859-1... Make sure the encoding your
>using is correct first off.  Maybe Opera / Konq are submitting the
>document in a different encoding?  I'm intrigued to know what's
>happening here...  Being in the old web development game I have an
>unhealthy interest in browsers!!!!!
I wouldn't have a clue as to how to use tidy in a terminal, but when I 
just have the doc open and do Ctrl+Alt+t it opens a "subwindow" and the 
messages say that the "tidy script" has started. If I then select the 
info pane, it doesn't say anything, but just highlights a line/column in 
the bottom right hand corner of the screen, if I then count the 
lines/columns it seems to just be saying that it doesn't like a space or 
maybe carriage return thats been put in by Quanta when I tell it to do 
the indents for ease of viewing the code. I'll see what I get with the 
CLI input. Ha! that just says "no warnings or errors were found".

The change in "encoding" was me just trying various different options 
taken from examples found at google. I can't work out how/what the 
encoding is with Quanta, but thus far, except with firefox, it's just 
defaulted to using UTF-8 after telling me that it can't get the encoding 
information.

So how would I "make sure the encoding I'm using is correct" ??

regards

John D.

p.s. I can't upload it to any live webspace at the moment, as I'm still 
waiting for my login details back from the ISP (forgotten them again!).




More information about the Sussex mailing list