Re: validator won't return json

I'm not sure how your response answers my question.  The validation occurs,
it simply does not respond with JSON as I had expected.  Any reasons why it
would not?


On Sun, Mar 10, 2013 at 6:12 PM, Rob^_^ <iecustomizer@hotmail.com> wrote:

>   Hi,
>
> yes the validators do not execute scripts.... all they see is the response
> text returned from the page request....
>
> To validate ‘computed’ source you have to use one of the Browsers’
> Developer tools to copy and paste the computed DOM into the direct input
> field...
>
> I have a context menu addon for IE that does this by retrieving the
> document.documentElement.outerHTML and submitting it to the validator
> direct input fields.
>
> A previous version of Opera used to have the option to validate the
> computed source... but then again Opera ignores document.write
>
> Regards.
>
>  *From:* Trenton D. Adams <trenton.d.adams@gmail.com>
> *Sent:* Monday, March 11, 2013 6:20 AM
> *To:* www-validator@w3.org
> *Subject:* Re: validator won't return json
>
>  Any developers on here that might know what the problem is here?
>
>
>
> On Fri, Mar 1, 2013 at 6:45 PM, Trenton D. Adams <
> trenton.d.adams@gmail.com> wrote:
>
>>  Before I file a bug, I thought I would ask why this does not work.  I
>> sent the output=json, and then url encoded the uploaded_file as well.  I
>> know http://validator.w3.org/docs/api.html#soap12format says that the
>> uploaded_file should be multi-part form-data, but that also did not seem to
>> return the json; unless I got the syntax wrong.  If I use the "uri" option
>> instead, it appears to work fine.  In either of the two failed cases, there
>> are special headers returned indicating that the validation of the fragment
>> failed, how many errors, how many warnings, etc.
>>
>> Any help would be appreciated, thank you.
>>
>>
>> http://validator.w3.org/check
>>
>> POST /check HTTP/1.1
>> Host: validator.w3.org
>> User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:16.0)
>> Gecko/20100101 Firefox/16.0
>> Accept: application/json, text/javascript, */*; q=0.01
>> Accept-Language:
>> en-CA,en;q=0.9,en-US;q=0.8,en-gb;q=0.7,en-US-x-Hixie;q=0.6,fr-FR;q=0.4,fr;q=0.3,eo-EO;q=0.2,eo;q=0.1
>>
>> Accept-Encoding: gzip, deflate
>> Connection: keep-alive
>> Content-Type: application/x-www-form-urlencoded; charset=UTF-8
>> Referer:
>> http://reuben.pc.athabascau.ca:8080/aucm/servlet/DispatcherServlet?action=examRequest
>> Content-Length: 17174
>> Origin: http://reuben.pc.athabascau.ca:8080
>> Pragma: no-cache
>> Cache-Control: no-cache
>>
>> output=json&uploaded_file=%0A%0A%0A%0A%0A%0A%0A%0A%3Cblah-blah-encoded-fragment
>>
>>
>> HTTP/1.1 200 OK
>> Date: Sat, 02 Mar 2013 01:34:11 GMT
>> Server: Apache/2.2.16 (Debian)
>> X-W3C-Validator-Recursion: 1
>> X-W3C-Validator-Status: Invalid
>> X-W3C-Validator-Errors: 4
>> X-W3C-Validator-Warnings: 23
>> Content-Type: application/json; charset=UTF-8
>> Connection: close
>> Transfer-Encoding: chunked
>>
>
>

Received on Wednesday, 13 March 2013 23:05:13 UTC