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
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 
for attribute href on element a: Illegal character in path segment: | is 
not allowed.
 From line 109, column 5; to line 109, column 90

(followed by a description of URL syntax).

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

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

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:53 UTC