HTML != XML (was Re: [ANN] Kludgey workarounds for xt)

John Cowan cowan at locke.ccil.org
Wed Sep 9 20:39:15 BST 1998


Andrew Bunner scripsit:

> (Interesting aside, IE will
> display the right thing if you close a stand-along tag with />, but
> Netscape will not)

Both IE and Netscape will cope if you add a space before the
"/>".  This is legal XML.

>   <stating-the-obvious>Java Script engines are not easy things to
> write.</stating-the-obvious> I think it's unlikely that developers are
> going to redefine the Java Script language to interpret &lt; as < ... my
> opinion (hope) is that the standard should accomodate this.

The problem arrived when Netscape decided to treat SCRIPT elements
specially.  This behavior then got standardized by giving SCRIPT
a CDATA content model, which is Evil.  The Right Thing would have
been for Netscape to wrap SCRIPT content in a CDATA section.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan at ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list