Bugzilla – Bug 749
improve reporting for IRI validation errors
Last modified: 2010-12-17 12:43:20 CET
A user on the www-validator list reported that the message "DOUBLE_WHITESPACE in PATH" for the case href=" " (single space) is misleading. http://lists.w3.org/Archives/Public/www-validator/2010May/0048.html In general, the raw Jena IRI violation codes like "DOUBLE_WHITESPACE" are not particularly helpful to end users anyway. However, given that documentation/explanations for the violation codes is available online. at URLs with fragment IDs for each of the codes; e.g.: http://jena.sourceforge.net/iri/javadoc/com/hp/hpl/jena/iri/ViolationCodes.html#DOUBLE_WHITESPACE ...maybe we can help mitigate the problem by having the message-emitter backend take the text of the violation codes and make it into hyperlinked text with the corresponding Jena IRI violation-code documentation as the target.
It occurs to me now that linking to the (third party) Jena docs is probably not ideal. It also occurs to me that maybe we don't really need to introduce hyperlinks here, but instead just need to translate the (arcane) Jena violation codes into something understandable; e.g., instead of doing this: Bad value for attribute href on element a: DOUBLE_WHITESPACE in PATH. ...we instead do: Bad value for attribute href on element a: The IRI path component contains illegal whitespace.
Created attachment 177 [details] test cases (as text/html) some test cases
Created attachment 178 [details] junk -- ignore HTML file with test cases
Created attachment 179 [details] test cases (as text/plain)
Created attachment 180 [details] patch
Created attachment 181 [details] updated patch
syntax r576 = r927484d https://github.com/validator/syntax/commit/927484d7d7af3f20c0cedcb160530fe6d44c421a
https://bitbucket.org/validator/syntax/changeset/c684b0063157