Re: HTML 3.2: PRE should not exclude IMG

Gerald Oskoboiny (
Fri, 31 May 1996 15:59:41 -0600 (MDT)

From: Gerald Oskoboiny <>
Message-Id: <>
Subject: Re: HTML 3.2: PRE should not exclude IMG
Date: Fri, 31 May 1996 15:59:41 -0600 (MDT)
In-Reply-To: <v03006f01add4b19a81be@[]> from "Walter Ian Kaye" at May 31, 96 07:44:07 am

Walter Ian Kaye writes:

> I use IMG inside of PRE on my "Directory of Files" page. It works
> perfectly, though I use it in a "relatively safe" way, I think. :)
> The algorithm Netscape uses is pretty simple:
>  1--2--3--4--5--6--7--8--9--0--1--2--3--
>  _____
>  |:::| s--o--m--e--   t--e--x--t--
>  |:::|
>  '---'
>  a--n--d--   m--o--r--e--
> The image is 1.5 characters wide, so the following text begins at the next
> "whole" character position. With a monospace font, the relationship between
> characters and pixels is a very short arithmetic formula, so laying this
> out is child's play for the browser.

This isn't a safe use of IMG within PRE, because it is impossible to
create an image that's "1.5 characters wide."

(There *are* safe uses of IMG within PRE, but this isn't one of them.)

Gerald Oskoboiny <>      Phone: +1-403-492-7698
Systems Analyst, Information Systems                   Fax: +1-403-492-7172
Office of the Registrar and Student Awards            University of Alberta
<URL:>       <URL:>