- From: Clover Andrew <aclover@1value.com>
- Date: Wed, 27 Jun 2001 12:34:44 +0200
- To: <www-talk@w3.org>
- Cc: <www-html@w3.org>
Klaas De Waele <klaas@gracegraphics.be> wrote:
> wouldn't the </ sequence make it a bit of a pain to include
> eventual end tags like </td> in the script...
Yes, but that's true of the current "<!-- ... -->" approach too.
The traditional solution is to escape the slash:
document.write('<p>Jam sandwich<\/p>');
Popular browsers typically let you get away with it, but the
validator will notice the flub. Not that it will explain it -
cause of many a confused posting to www-html...
--
Andrew Clover
Technical Consultant
1VALUE.com AG
Received on Wednesday, 27 June 2001 06:36:40 UTC