W3C home > Mailing lists > Public > www-html@w3.org > April 2001

Re: XMP tag.

From: Tim Bagot <tsb-w3-html-0002@earth.li>
Date: Wed, 4 Apr 2001 18:42:15 +0000 (UTC)
To: "'www-html@w3.org'" <www-html@w3.org>
Message-ID: <Pine.LNX.4.30.0104041825570.19667-100000@windle.hack>
At 2001-03-27T18:37-0500, Christopher Mark Balz wrote:-

> I am perturbed to hear that the <XMP> tag might be removed from HTML.  I use
> it often to dump HTML output to a browser window - it is extremely handy.
> With only the <PRE> tag, I'd have to do a regexp operation to replace angle
> brackets, etcetera.

It already has been removed in HTML 4.0 - it was deprecated by 3.2, and
even in 2.0 it was mildly discouraged. In fact, you should still have to
escape at least some markup, since the first occurrence of </ marks the
end of the element.

> What is the current status of a tag that will allow a pure text dump to the
> browser window?

In XHTML you can use CDATA sections. (See [1] or [2].) In fact, you can
theoretically do this in HTML too, but web browsers mostly do not support
it. You still need to escape the string ']]>', but this is likely to be
less of a problem.

[1] <http://www.w3.org/TR/xhtml1/#h-4.8>
[2] <http://www.w3.org/TR/REC-xml#sec-cdata-sect>


Tim Bagot
Received on Wednesday, 4 April 2001 14:42:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:48 GMT