- From: Tig <tigger@lvlworld.com>
- Date: Wed, 6 Sep 2006 21:44:03 +1000
- To: Benjamin Niemann <pink@odahoda.de>
- Cc: www-validator@w3.org
On Mon, Sep 04, 2006 at 07:55:34PM +0200, Benjamin Niemann wrote: > > Hello, > > Tigger wrote: > > I believe the validator is wrong with the following XHTML > > > > This is invalid (NOTE: may be wraped, was all one line): > > <script language="javascript" type="text/javascript">document.write('<a > > href="#" onclick="thumbs(); return false;">Doom 3 engine</a>');</script> > > > > However, this is valid: > > <script language="javascript" type="text/javascript"> > > <!-- > > document.write('<a href="#" onclick="thumbs(); return false;">Doom 3 > > engine</a>'); > > // --> > > </script> > > > > Also, this is invalid, however I can't work out why: > > <noscript><a href="/shots.php?e=d3">Doom 3 engine</a></noscript> > > > > Full page is located here: > > http://industri.sourceforge.net/shots.php?e=d3 > > [Not repeating Davids remarks] and: > > document.write() will not work with XML parsers, you'll have to modify the > DOM to generate new content. > > And what's wrong with the much simpler > > <a href="/shots.php?e=d3" onclick="thumbs(); return false;">Doom 3 > engine</a> > > ?? > Yes! This is by far a better solution. I was thinking of a complex fix to a simple problem. Thank you very much. -Tig
Received on Wednesday, 6 September 2006 11:45:53 UTC