noscript and validation

by Greg Hart <ghhart(at)earthlink.net>

 Date:  Mon, 04 Nov 2002 14:15:13 -0500
 To:  hwg-techniques(at)mail.hwg.org
  todo: View Thread, Original
I am trying to decide which method of using <.noscript> within a link is 
correct. Both methods seem like hacks, but I cannot find another way to 
have both java and non-java browsers see the identical link. Both methods 
below function the same, and appear the same. Method One validates, Method 
Two does not...I'm hung up on the fact that the one that does validate 
SHOULDN'T in my mind. A browser without JS would see two </a> back to back, 
while the non-validating method would only have one closing anchor for 
either scenario....and yet the first way is the right one according to the 
W3C validator.

Everything works either way, so it's not a question of functionality...but 
what's the RIGHT way to do this? Or maybe another way entirely?

TIA,

Greg Hart

----------------
Method One:

<.a href="javascript: goOrder()"><.script type="text/javascript" 
language="JavaScript"><.!--
	  document.write("order");
  //--></script><.noscript><.a 
href="https://order.shtml?referrer=noscript">order</a></noscript></a>

Method Two:

<.a href="javascript: goOrder()"><.script type="text/javascript" 
language="JavaScript"><.!--
	  document.write("order");
  //--></script><.noscript><.a 
href="https://order.shtml?referrer=noscript">order</a></noscript><.script 
type="text/javascript" language="JavaScript"><!--
	  document.write("<\/a>");
  //--></script>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA