Re: W3C XHTML Validator - Control Character Error

2013-10-26 23:48, David Dorward wrote:

> On 26 Oct 2013, at 0:20, Cribsheet@aol.com wrote:
>> A screenshot of  the error messages is shown—I can't find any control
>> characters in the URL.
>
> You appear to be trying to close your attribute value with a ” (Right
> double quotation mark, U+201D) instead of a " (Quotation mark, U+0022).
> I suspect this is the cause of your error.

Good guess, but probably not the right one. U+201D is not a control 
character, and I suppose the quotation marks are really U+0022, just 
with slanted glyphs (naughty font!).

The clue seems to be the character “↩” in the error message. It seems 
that it indicates a line break inside the href attribute value. And the 
problem can be reconstructed by using such a value. So the fix is simply 
to remove the line break there. It makes the HTML source line 
inconveniently long, but there’s no way to avoid that if the URL is long.

P.S. Posting the URL of the page being validated would have saved us 
from some guessing.

Yucca

Received on Saturday, 26 October 2013 21:05:50 UTC