Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Bad characters error, help requested
October 19, 2006, 2:48 pm
rate this thread
The following is an error message from Total Validator, a Firefox
extension. The message includes the code. This is cut-and-paste code,
and I even retyped the hyphens, just in case. The W3C validator passes
this page as HTML 4.01 strict, but Total Validator finds this problem.
I am OC enough to want to fix it. Can someone point me in the right
Re: Bad characters error, help requested
The <|> in the URL probably causes the warning. RFC3986 does not allow
<|> in URLs (<|> was an "unwise", i.e., excluded, character in
RFC2396). Replace <|> with the percent-encoding <%7C>.
This is not an error that a validator should report, because it isn't a
validation error. The src attribute is defined as CDATA, so pretty
much anything goes. If it felt really nice, a validator could report
this as a warning but not as an error.
That pseudo URL falls down on other counts though, such as length,
meaningfulness, and rememberability.