W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2013

[Bug 21383] New: JSON output for the HTML validator doesn't return the detected/forced doctype

From: <bugzilla@jessica.w3.org>
Date: Mon, 25 Mar 2013 05:33:25 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-21383-169@http.www.w3.org/Bugs/Public/>

            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

<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:54 UTC