W3C home > Mailing lists > Public > www-validator@w3.org > April 2016

Re: Incorrect validation error?

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 22 Apr 2016 16:42:48 +0300
To: Alan Bray <alan@windsongs.net>, www-validator@w3.org
Message-ID: <571A2A58.6020101@cs.tut.fi>
22.4.2016, 7:59, Alan Bray wrote:

> The attached file shows an error when "-" (minus sign character) is used
> in an /href /URL.

The URL of the page is
http://windsongs.net/comparrangers.php
In future, please include the URL and/or relevant extract of code as 
text into the message.

The character “-” is HYPHEN-MINUS and different from “−” MINUS SIGN. But 
that’s not the point here. The point is that the error message is not 
about either of those characters. The error message is:

Error: Bad value 
http://www.tcm.com/this-month/article/133240|0/Alfred-Newman-Biography.html 
for attribute href on element a: Illegal character in path segment: | is 
not allowed.
 From line 109, column 5; to line 109, column 90
</li>↩<li><a 
href="http://www.tcm.com/this-month/article/133240|0/Alfred-Newman-Biography.html">↩Exten

(followed by a description of URL syntax).

So the offending character is “|” VERTICAL LINE (U+007C).

Replace it by its %-encoded form “%7C”.

Yucca
Received on Friday, 22 April 2016 13:43:18 UTC

This archive was generated by hypermail 2.3.1 : Friday, 29 April 2016 17:12:41 UTC