W3C home > Mailing lists > Public > www-validator@w3.org > November 2012

Separate "helpwanted" in JSON

From: Peter van der Laan <vanderlaan.pm@gmail.com>
Date: Sun, 18 Nov 2012 14:54:35 +0100
Message-ID: <1353246875.3527.14.camel@angeline-1001PX>
To: www-validator@w3.org
I'd like to have a separate "helpwanted" section in the JSON output.
Is it possible to make an extra "helpwanted" section in JSON?

Original:
"messages": [
        
          {
              "lastLine": 25,
              "lastColumn": 8,
              "message": "required attribute \"type\" not specified",
              "messageid": "127",
              "explanation": "    <p class=\"helpwanted\"> .. code omitted...  </p> <div class=\"ve mid-127\"> ...code omitted... </div>\n",
              "type": "error"
          },

"Helpwanted" is excluded from the explanation and has a separate value.
"messages": [
        
          {
              "lastLine": 25,
              "lastColumn": 8,
              "message": "required attribute \"type\" not specified",
              "messageid": "127",
              "helpwanted": "    <p class=\"helpwanted\"> .. code omitted...  </p>",
              "explanation": "   <div class=\"ve mid-127\"> ...code omitted... </div>\n",
              "type": "error"
          },

NOTE: Whenever possible, give the address of the document you were checking.
Received on Monday, 19 November 2012 09:05:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 19 November 2012 09:05:56 GMT