|
Posted by David Dorward on 09/23/06 22:14
mouse@house.spam wrote:
> I have a reference to a web counter in my page, which according to my
> ISP should look like;
>
> <IMG SRC="/cgi-sys/Count.cgi?df=sigma-index.html&st=1000">
Your ISP is wrong.
> However the W3 validator wails about the ampersand '&' before the st.
> It insists the line must look like;
>
> <img src="/cgi-sys/Count.cgi?df=c-compiler-com-root&ft=0&dd=D"
> title="Counter" alt="Counter">
Only if you are changing the data you want to pass to Count.cgi.
> in other words we must use & instead of just &
Yes
> Is this how valid HTML must specify an ampersand?
Yes
> Both versions seem valid in my web browser.
No, your browser is capable of some degree of error correction.
> The & version looks a bit strange and I am surprised that W3 validator
> regards it as necessary.
What if, for example, the piece of data was called "copy" instead of "st"?
The spec has to have come way of distingushing between an ampersand
followed by the word "copy" and the entity meaning "The copyright symbol".
(Follow-ups set)
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Navigation:
[Reply to this message]
|