Quote:
quote:Originally posted by synosure
Actually, this is an invalid solution. The HTML standard does not support using both named anchors and GET variables at once. Your 'solution' works in IE, but in no other browser on earth.
|
Synosure,
I don't know where you came up with this idea. The composition of URLs is not defined in the HTML standard -- it is defined in the RFC for Uniform Reference Identifiers, which can be found here:
http://www.ietf.org/rfc/rfc3986.txt
Inside this specification, you will find that URLs have the following lexical structure:
Quote:
|
quote:URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
|
Using this structure, the specification then provides an example of a proper URL that directly contradicts your statement:
Quote:
|
quote:foo://example.com:8042/over/there?name=ferret#nose
|
To verify that this specification is what is implemented, I created my own page that included a query parameter and an anchor. Here it is so you can see for yourself:
http://www.jonemerson.net/demos/quer...d-anchors.html. For me it works perfectly on both IE6 and Mozilla Firefox.
In conclusion, I don't find any reason to support your argument that putting query parameters and anchors together is invalid. If you can please provide a link to where you learned such a thing, I would be entertained to read it.
Jon Emerson
http://www.jonemerson.net/