W3C home > Mailing lists > Public > www-talk@w3.org > May to June 2001

Re: XHTML's reception

From: Clover Andrew <aclover@1value.com>
Date: Wed, 27 Jun 2001 12:34:44 +0200
Message-ID: <D58B0195B58937489E89124469E57CA20D502E@EX1.1value.com>
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
Received on Wednesday, 27 June 2001 06:36:40 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:25 UTC