Re: W3C html validation issue
| From: | Jan Schneider | Date: | Tue, 23 Jul 2002 11:14:32 +0000 |
| Subject: | Re: W3C html validation issue | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86118@lists.php.net to get a copy of this message | ||
Zitat von Jani Taskinen <sniper@iki.fi>:
> You're only supposed to change it in your HTML..NOT in the
> browser's query line..
As well as in header() calls (as already stated in this thread) and in
javascript calls: document.location.href = 'foo.php?bar=1&var=2' won't
work either.
> On 22 Jul 2002, Walter A. Boring IV wrote:
>
> >Howdy,
> > This may be a tad off topic, but it is related to how php deals with
> >building the $_GET superglobal w/ query string vars.
> >
> >According to the W3C HTML validator, it is illegal to build a query
> >string for a url such as
> >
> >foo.php?bar=1&myvar=2
> > ^^^^^^^^
> >
> >They say you HAVE to use
> >foo.php?bar=1&myvar=2
> > ^^^^^^^^^^^^
> >
> >in php's case it builds
> >$_GET["bar"] = 1;
> >$_GET["amp;myvar"] = 2;
> >
> >I don't know of ANYONE on the planet that builds query string vars in
> >this way. Unless you do, your html pages will not validate through the
> >W3C validator.
> >
> >The official W3c spec explanation is at
> >http://www.htmlhelp.com/tools/validator/problems.html#amp
> >
> >
> >I think changing this could potentially break many sites.
> >Does anyone know what other web languages do with &myvar=2 ?
> >I think the W3C validator is broken/wrong in this respect, and wanted to
> >know what other folks think about it.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft