Javascript+XHTML Validation Problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

The javascript we use to help protect against email address harvesting is
causing the following error when trying to validate XHTML 1.0 Transitional:

 Line 91 column 172: character ";" not allowed in attribute specification
...2.length;var v1="";for(var
v4=0;v4<v5;v4++){v1+=String.fromCharCode(v2.charCoHere are the surrounding
lines of code:<script type="text/javascript">var
v5=v2.length;var v1="";for(var
title="Email us at: p e r s o n AT h o s t DOT e d
href=" " title="Email us at: p e r
s o n at h o s t dot e d
/>Anyone have any ideas?Thank You,John

Re: Javascript+XHTML Validation Problem

johoward wrote:

Quoted text here. Click to load it

The short answer is:

The longer answer involves pointing out the lack of support for
document.write in browsers parsing XHTML as XHTML and the utter
pointlessness of serving XHTML to clients if you never serve it as XHTML.

I suggest sticking to HTML 4.01 (and moving away from Transitional and to

David Dorward       < <
                     Home is where the ~/.bashrc is

Site Timeline