RE: Different results when validating by URI or Direct Input

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!

Andreas

-----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:

> I´m getting different results when I´m 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?

No.

> The URI I´m 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.

Yucca

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