W3C home > Mailing lists > Public > www-validator@w3.org > May 2008

W3C-validator does not validate all of a given XHTML page with PHP code

From: Hans Loepfe <hans.loepfe@bluewin.ch>
Date: Wed, 21 May 2008 21:36:24 +0200
To: <www-validator@w3.org>
Message-ID: <000001c8bb79$f4b8ae40$2701a8c0@samsung>
Hello and to whomever it may concern
 
I have been using the W3C Validator a lot and find it a great tool to
assist me in the creation of well-formed code. Especially since I'd
rather be photographing than writing code for the browsers.
Recently I have created a page with a tool to calculate specific values
for panoramas to be displayed by means of Java. Input values in XHTML ->
calculated by PHP -> output values in XHTML - all on one page (1,2). 
To me all works fine as anticipated and seemingly passes the validator
with success.
But I am certain that not all XHTML code really gets crunched by the
validator as the page does contain some 'ill-formed' XHTML code.
So what is it that fools the validator? In the first place this is due
to the code-writer and I positive it must be some PHP code stopping the
validator. Why? Well, because when I run the calculator on that page and
save the browsers 'sourcecode' in an XHTML file and then run that code
(3) through the validator the result is quite different. Actually it
does not pass, as mentioned.
You may try for yourself, here are the urls to that page I am referring
to in this post.
http://www.halo-photographs.com/pano-calc/panorama-calculator.php (1)
or
http://www.halo-photographs.com/pano-calc/panorama-calculator.html (2)
(both are equal and validate positive).
 
The same page but drawn from the Browser's source and then saved (does
not validate, because it contains obvious ill-formedness.
http://www.halo-photographs.com/check/panorama-calculator-source.html
(3)
 
Hence (at least in this case) the W3C-validator does not validate all of
a given page that contains PHP -q.e.d..
 
Thought this might be of interest to the creators of the W3C-Validator.
Looking forward to receiving highly appreciated feedback and adivce.
 
Best wishes, Hans.
 
PS: By the way, thanks a lot for providing this great validation
service.
___________________________________
Hans Loepfe
Alte Landstrasse 99
CH - 8803 Rüschlikon
Schweiz / Suisse / Svizzera / Switzerland
 
Mobile: 079 764 4422
www.HALO-Photographs.com <http://www.halo-photographs.com/> 
___________________________________
 
Received on Thursday, 22 May 2008 03:02:26 GMT

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