W3C home > Mailing lists > Public > www-validator@w3.org > April 2005

Re: [VE][338] PHP sessions and ampersands in URLs

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Wed, 20 Apr 2005 10:09:45 +0300 (EEST)
To: Martin Campos <vmartin.campos@gmail.com>
Cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.58.0504201006510.12580@korppi.cs.tut.fi>

On Wed, 20 Apr 2005, Martin Campos wrote:

> E.g. id=42&copy=1 is not treated id=42(c)=1, is treated id=42&copy=1
> id=42&copy;=1 is treated id=42(c)=1.

Wrong. This misconception is probably a good enough reason to include
something about this, even at the risk of confusing some people who
weren't confused before the explanation.

In HTML, &copy=1 means the copyright sign followed by the equals sign and
digit 1, as I wrote. This is also how most browsers treat it.

In XHTML, &copy=1 is simply not allowed (the document isn't even
well-formed XML, i.e. not XML at all).

Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Wednesday, 20 April 2005 07:09:48 UTC

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