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.:
...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]
Created attachment 181 [details]
syntax r576 = r927484d