Re: W3C html validation issue
| From: | (Marcus Börger) | Date: | Tue, 23 Jul 2002 00:26:12 +0000 |
| Subject: | Re: W3C html validation issue | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86099@lists.php.net to get a copy of this message | ||
Handling is incorrect for all browsers :-)
if a browser reads a htmlfile (how comes he knows is of no importance, DTD, guess whatever)
it ALLWAYS knows about & being entity representaion for character '&'
if in any HTML/XML/SGML file a browser reads the character '&' an entity begins....
therefore reading the line "<a href='foo.php?bar=1&myvar=2'>"
the browser gets the url "foo.php?bar=1&myvar=2"
so when clicking on the url you should read "foo.php?bar=1&myvar=2" and not ""foo.php?bar=1&myvar=2"
so do you write to all browser vendors that missunderstood HTML?
regards
marcus
At 00:50 23.07.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. Walt -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php