March 10th, 2003, 11:15 AM
Is this cause of an accessibility issue or did I do something wrong in my script to make it non-valid?
March 10th, 2003, 12:28 PM
It's pretty clear, the DTD for XHTML doesn't allow you to have an onclick="" in link tags, <a href="">. So I guess it's not something you really did wrong, it's just not allowed by the XHTML DTD. FYI, neither is target="" (at least not in Strict, not sure about Transitional). To use those you have to go back to the HTML 4 DTD.
March 10th, 2003, 12:39 PM
Thanks that's what i was afraid of,
March 11th, 2003, 11:03 AM
What code are you using?
This validated for me
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<p><a href="#" onclick="window.open('http://www.google.com')">link</a>
March 11th, 2003, 11:10 AM
sorry, I should have written back. I figured out why it wasn't validating and it was so simple I had to hit my head on my desk.
The reason it didn't validate was cause I wrote onClick instead of onclick.