- From: <bugzilla@jessica.w3.org>
- Date: Mon, 25 Mar 2013 05:33:25 +0000
- To: www-validator-cvs@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21383 Bug ID: 21383 Summary: JSON output for the HTML validator doesn't return the detected/forced doctype Classification: Unclassified Product: Validator Version: HEAD Hardware: All OS: All Status: NEW Severity: normal Priority: P2 Component: Templates Assignee: dave.null@w3.org Reporter: mcbain.asm@gmail.com QA Contact: www-validator-cvs@w3.org When asking the HTML validator to output in "SOAP 1.2", it returns the following: <?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"> <env:Body> <m:markupvalidationresponse env:encodingStyle="http://www.w3.org/2003/05/soap-encoding" xmlns:m="http://www.w3.org/2005/10/markup-validator"> <m:uri>http://www.iana.org/domains/example</m:uri> <m:checkedby>http://validator.w3.org/</m:checkedby> <m:doctype>HTML5</m:doctype> <m:charset>utf-8</m:charset> <m:validity>true</m:validity> <m:errors> <m:errorcount>0</m:errorcount> <m:errorlist> </m:errorlist> </m:errors> <m:warnings> <m:warningcount>1</m:warningcount> <m:warninglist> </m:warninglist> </m:warnings> </m:markupvalidationresponse> </env:Body> </env:Envelope> This includes the doctype of the page. The API ( http://validator.w3.org/docs/api ) indicates this is the detected or doctype or that forced by the validator for validation. What I think would be great, and provide parity with the SOAP 1.2 output would be for the JSON output to provide the doctype. The JSON output for the same website is reproduced below: { "url": "http://www.iana.org/domains/example", "messages": [ ], "source": { "encoding": "utf-8", "type": "text/html" } } I know the output of the JSON is intended to match that of validator.nu's, but it seems quite the oversight to not return the doctype. Even more so that the data provided by the output formats differs even though they are known to have the same source of data. -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Monday, 25 March 2013 05:33:26 UTC