W3C home > Mailing lists > Public > www-validator@w3.org > July 2012

RE: Different results when validating by URI or Direct Input

From: Andreas Gomm <andreas.gomm@gtech.se>
Date: Mon, 30 Jul 2012 18:19:08 +0200
To: "'Jukka K. Korpela'" <jkorpela@cs.tut.fi>
Cc: <www-validator@w3.org>
Message-ID: <026a01cd6e6f$0d665d50$283317f0$@gtech.se>
Hello Yucca and thank you for a quick reply. 

Very interesting conclusion. I will have a second look into that.

Have a nice day and thanks again!


-----Original Message-----
From: Jukka K. Korpela [mailto:jkorpela@cs.tut.fi] 
Sent: den 30 juli 2012 10:10
To: Andreas Gomm
Cc: www-validator@w3.org
Subject: Re: Different results when validating by URI or Direct Input

2012-07-30 7:57, Andreas Gomm wrote:

> Im getting different results when Im validating my website by direct 
> input and by URI. When I copy/paste the html source it validates fine 
> but when I enter the URI I get (some) errors.

The reason is that what you copy and paste differs from what the validator
gets when using a URI.

> Are the different validation methods using different code for the 
> validation?


> The URI Im testing is:
> http://www.genteycasas.com/es-co/product/terms-of-use

If you check the "Show source" checkbox under "Options", you'll see that the
page that the server sends to the validator differs from the version if
sends to browsers - or most browsers, since on Lynx, the markup seems to
match what the validator gets.

So apparently the server responds differently to different user agents,
probably via some server-side browser-sniffing.

Received on Monday, 30 July 2012 16:19:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:06 UTC