Re: XHTML's reception

Klaas De Waele <> 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 AG

Received on Wednesday, 27 June 2001 06:36:40 UTC