Skip to content

Instantly share code, notes, and snippets.

@jaimeiniesta
Created March 9, 2015 01:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaimeiniesta/4f8bc92c00e8341002b8 to your computer and use it in GitHub Desktop.
Save jaimeiniesta/4f8bc92c00e8341002b8 to your computer and use it in GitHub Desktop.
Different response validating the same page on web version and java jar version
{
"url": "http://validationhell.com",
"messages": [{
"type": "info",
"message": "The Content-Type was “text/html”. Using the HTML parser."
}, {
"type": "info",
"message": "Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."
}, {
"type": "error",
"lastLine": 56,
"firstLine": 55,
"lastColumn": 64,
"firstColumn": 37,
"message": "The “align” attribute on the “img” element is obsolete. Use CSS instead.",
"extract": " href=\"/\"><img\n src=\"/images/fire.png\" align=\"absmiddle\" width=\"30\" hspace=\"5\"><stron",
"hiliteStart": 10,
"hiliteLength": 69
}, {
"type": "error",
"lastLine": 56,
"firstLine": 55,
"lastColumn": 64,
"firstColumn": 37,
"message": "The “hspace” attribute on the “img” element is obsolete. Use CSS instead.",
"extract": " href=\"/\"><img\n src=\"/images/fire.png\" align=\"absmiddle\" width=\"30\" hspace=\"5\"><stron",
"hiliteStart": 10,
"hiliteLength": 69
}, {
"type": "error",
"lastLine": 56,
"firstLine": 55,
"lastColumn": 64,
"firstColumn": 37,
"message": "An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images.",
"extract": " href=\"/\"><img\n src=\"/images/fire.png\" align=\"absmiddle\" width=\"30\" hspace=\"5\"><stron",
"hiliteStart": 10,
"hiliteLength": 69
}, {
"type": "error",
"lastLine": 73,
"lastColumn": 67,
"firstColumn": 64,
"message": "Stray end tag “a”.",
"extract": "idates</a></a></li>\n",
"hiliteStart": 10,
"hiliteLength": 4
}, {
"type": "error",
"lastLine": 83,
"lastColumn": 66,
"firstColumn": 62,
"message": "End tag “li” seen, but there were open elements.",
"extract": "e Abyss...</li>\n ",
"hiliteStart": 10,
"hiliteLength": 5
}, {
"type": "error",
"lastLine": 83,
"lastColumn": 43,
"firstColumn": 19,
"message": "Unclosed element “a”.",
"extract": " <li><a href=\"/pages/abyss/1\">Enter ",
"hiliteStart": 10,
"hiliteLength": 25
}, {
"type": "error",
"lastLine": 84,
"firstLine": 83,
"lastColumn": 12,
"firstColumn": 67,
"message": "Element “a” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.)",
"extract": "ss...</li>\n </ul>\n",
"hiliteStart": 10,
"hiliteLength": 13
}, {
"type": "error",
"lastLine": 84,
"lastColumn": 17,
"firstColumn": 13,
"message": "End tag “ul” seen, but there were open elements.",
"extract": " </ul>\n\n ",
"hiliteStart": 10,
"hiliteLength": 5
}, {
"type": "error",
"lastLine": 87,
"lastColumn": 161,
"firstColumn": 15,
"message": "Start tag “a” seen but an element of the same type was already open.",
"extract": " <a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-url=\"http://validationhell.com\" data-via=\"SiteValidator\" data-hashtags=\"w3c\">Tweet<",
"hiliteStart": 10,
"hiliteLength": 147
}, {
"type": "error",
"lastLine": 87,
"lastColumn": 161,
"firstColumn": 15,
"message": "End tag “a” violates nesting rules.",
"extract": " <a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-url=\"http://validationhell.com\" data-via=\"SiteValidator\" data-hashtags=\"w3c\">Tweet<",
"hiliteStart": 10,
"hiliteLength": 147
}, {
"type": "error",
"lastLine": 87,
"lastColumn": 161,
"firstColumn": 15,
"subType": "fatal",
"message": "Cannot recover after last error. Any further errors will be ignored.",
"extract": " <a href=\"https://twitter.com/share\" class=\"twitter-share-button\" data-url=\"http://validationhell.com\" data-via=\"SiteValidator\" data-hashtags=\"w3c\">Tweet<",
"hiliteStart": 10,
"hiliteLength": 147
}]
}
{
"messages": [
{
"type": "info",
"url": "http://validationhell.com",
"lastLine": 1,
"lastColumn": 109,
"subType": "warning",
"message": "Obsolete doctype. Expected “<!DOCTYPE html>”."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 56,
"lastColumn": 64,
"message": "The “align” attribute on the “img” element is obsolete. Use CSS instead."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 56,
"lastColumn": 64,
"message": "The “hspace” attribute on the “img” element is obsolete. Use CSS instead."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 56,
"lastColumn": 64,
"message": "An “img” element must have an “alt” attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 73,
"lastColumn": 67,
"message": "Stray end tag “a”."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 83,
"lastColumn": 66,
"message": "End tag “li” seen, but there were open elements."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 83,
"lastColumn": 43,
"message": "Unclosed element “a”."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 84,
"lastColumn": 12,
"message": "Element “a” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.)"
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 84,
"lastColumn": 17,
"message": "End tag “ul” seen, but there were open elements."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 87,
"lastColumn": 161,
"message": "Start tag “a” seen but an element of the same type was already open."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 87,
"lastColumn": 161,
"message": "End tag “a” violates nesting rules."
},
{
"type": "error",
"url": "http://validationhell.com",
"lastLine": 87,
"lastColumn": 161,
"subType": "fatal",
"message": "Cannot recover after last error. Any further errors will be ignored."
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment