By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

Bad characters error, help requested

P: n/a
Jan
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
direction?

Bad characters found in link in attribute 'src':
<img src="/cgi-sys/Count.cgi?df=greenepe-index.dat|display=Counter|ft=6|md=5|frgb=100;139;2 16|dd=U"
alt="DataPunch hit counter">

Jan
Oct 19 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Els
Jan wrote:
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
direction?
>Bad characters found in link in attribute 'src':
<img src="/cgi-sys/Count.cgi?df=greenepe-index.dat|display=Counter|ft=6|md=5|frgb=100;139;2 16|dd=U"
alt="DataPunch hit counter">
It's the "|" that triggers that.

--
Els http://locusmeus.com/
accessible web design: http://locusoptimus.com/
Oct 19 '06 #2

P: n/a
On Thu, 19 Oct 2006, Jan wrote:
This is cut-and-paste code,
Give the URL of the page!

Do not post source text!

Oct 19 '06 #3

P: n/a
Jan:
<img src="/cgi-sys/Count.cgi?df=greenepe-index.dat|display=Counter|
ft=6|md=5|frgb=100;139;216|dd=U"
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.

--
Jock

Oct 19 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.