Forum Moderators: open

Message Too Old, No Replies

How to validate outbound links

...when they contain variables?

         

ronin

12:08 am on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, I know, it's academic, but I really do want my markup to be 100% valid.

The problem that I have is that even when my handwritten html is without fault, a given page may contain outbound links to a dynamic page on another site or to an adserver or to any other sort of off-site device (such as a realtime stats package) - these always bring up errors in the W3C validator, almost exclusively of these types:

cannot generate system identifier for general entity "x"

and

general entity "x" not defined and no default entity

Is there anything at all I can do about this?
How can I tell the W3C parser to ignore this stuff because it isn't html anyway and as a result it's never going to look like valid markup.

I don't want to have to go down nasty document.write hack routes... surely there is another way?

Thanks in advance.

seindal

2:21 am on Feb 15, 2004 (gmt 0)

10+ Year Member



Use & in the url instead of just &

The validator parser sees ...&x= as an html entity, but will parse &x= correctly. Your browser should translate the entity before sending the url to the server.

ronin

12:54 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thank you Seindal, I'll give it a spin... I didn't realise it might be something as simple as that.

I use & in text and alt tags already, so it should be a breeze to search and replace the remaining '&'s.

ronin

9:42 pm on Feb 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Duh.

It worked. I feel like such a clot.
Those outbound URLs have been bothering me for about six months and all I had to do was replace '&' with '&'.

Seindal, thanks for allowing my site to validate 100%!