Re: Extraneous Characters in Netscape Display

lilley (lilley@afs.mcc.ac.uk)
Thu, 25 May 1995 12:36:13 +0100 (BST)


From: lilley <lilley@afs.mcc.ac.uk>
Message-Id: <16449.9505251136@afs.mcc.ac.uk>
Subject: Re: Extraneous Characters in Netscape Display
To: lalexander@acad.com
Date: Thu, 25 May 1995 12:36:13 +0100 (BST)
Cc: www-html@www10.w3.org
In-Reply-To: <9504238012.AA801275947@clink.acad.com> from "Alexander, Larry" at May 24, 95 09:25:45 pm

Larry Alexander said:

> <!DOCTYPE HTML PUBLIC "-//Netscape Corp.//DTD HTML plus Tables//EN" 
> "html-net.dtd"[<!ENTITY pound CDATA "">]>
> 
> but I still see the "]>" in Netscape.
> 
> Is HoTMetaL doing something illegal with the !ENTITY declaration?

Nope. Inadvisible, but not illegal. It is just writing a totally valid 
SGML construct that Netscape (and indeed many other browsers) are 
not expecting and cannot handle.

They deal with the doctype declaration as an unknown tag, it ignore 
it and present it's content. They also assume it is terminated by >
and they are not expecting a nested occurence of < > inside the tag.

Hence, the closing ]> is treated as text and displayed.

-- 
Chris Lilley, Technical Author
+-------------------------------------------------------------------+
|       Manchester and North HPC Training & Education Centre        |
+-------------------------------------------------------------------+
| Computer Graphics Unit,             Email: Chris.Lilley@mcc.ac.uk |
| Manchester Computing Centre,        Voice: +44 161 275 6045       |
| Oxford Road, Manchester, UK.          Fax: +44 161 275 6040       |
| M13 9PL                            BioMOO: ChrisL                 |
|     URI: http://info.mcc.ac.uk/CGU/staff/lilley/lilley.html       | 
+-------------------------------------------------------------------+
|     "The first W in WWW will not wait."   François Yergeau        |
+-------------------------------------------------------------------+