- From: <mahavir.patil@accenture.com>
- Date: Thu, 4 Aug 2011 16:17:18 +0530
- To: <www-validator@w3.org>
- Message-ID: <6B68EAE6E593704C828DD7E2A96F8A5DBBEEFED71A@INDXM3111.dir.svc.accenture.com>
Hi, I am using W3C html validator service to validate my html content. I am doing it programmatically by calling the service (soap12 response) through javascript XMLHttpRequest using the below code: var encodedContent = '<some html content>'; xmlHttp = CreateXMLHttpRequest(); var params = "fragment=" + encodedContent ; xmlHttp.open("POST", "http://validator.w3.org/check", false); xmlHttp.setRequestHeader("Content-length", params.length) xmlHttp.send(params); What I am finding is, for a similar html content the validation results I am getting within the soap response from the service is different than what I am getting on the validator.w3.org as I pass the same HTML content as direct input on the site. Both provide different number of errors and warnings.. Some are common but the difference sometime is like soap call is giving 2 errors and on site its giving 20. Any hint? Regards, Mahavir ________________________________ This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Received on Thursday, 4 August 2011 14:57:58 UTC