W3C home > Mailing lists > Public > www-validator@w3.org > June 1999

Re: Parser Error?

From: Lloyd Wood <L.Wood@surrey.ac.uk>
Date: Mon, 14 Jun 1999 21:05:48 +0100 (BST)
To: Jukka.Korpela@hut.fi
cc: www-validator@w3.org
Message-ID: <Pine.SOL.4.02.9906142058350.14483-100000@petra.ee.surrey.ac.uk>
On Thu, 10 Jun 1999 Jukka.Korpela@hut.fi wrote:

> On Thu, 10 Jun 1999, Lloyd Wood wrote:
> > Yet a URL with form state includes & between attribute values, gets
> > checked and gets complained about by the validator, which is pretty
> > much where we came in.
> That's because in CDATA, entity references are recognized.
> When your HTML document contains an HREF attribute (or _any_
> attribute, or plain text) containing, say, &foo, then an HTML
> parser recognizes it as entity reference.
> So, for example, an &amp; _denotes_ the & character. When you
> have HREF="http://host.dom/foo.pl?a=1&amp;b=2", then the URL
> itself is http://host.dom/foo?a=1&b=2 but it must be written
> slightly differently in HTML. An HTML parser or a validator
> still does not parse the URL according to any specific syntax.
> It does the same basic thing with &stuff as it does elsewhere.

In theory. Practice can be a different thing.

Okay, yes, that's an ampersand in the URL and directory name, and
they're running Apache 1.3.4 (unix).
What I'd dearly like to know is why:
doesn't work. Yes, it's probably due to Netscape 4.5 not parsing &amp;
Good cartoon, btw.


this is worse that &amp; not being recognised in page titles by browsers.

Received on Monday, 14 June 1999 16:05:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:25 UTC