OK to change anchor names in the language specification?

Vladimir Panteleev vladimir at thecybershadow.net
Sat Feb 15 17:50:35 PST 2014


On Sunday, 16 February 2014 at 01:29:12 UTC, Vladimir Panteleev 
wrote:
> On Sunday, 16 February 2014 at 01:16:22 UTC, Rikki Cattermole 
> wrote:
>> On Saturday, 15 February 2014 at 22:27:35 UTC, Vladimir 
>> Panteleev wrote:
>>> The web server never sees anchors in URLs, so that would be 
>>> impossible.
>>
>> I think it might be very possible, unless I'm missing 
>> something[0]?
>>
>> [0] http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_ne
>
> That example redirects *to* an anchor. Since the anchor part of 
> an URL is never sent to the server, the server has no way to 
> act upon it. It is only possible using JavaScript.

Quoting RFC 3986:

> As such, the fragment identifier is not used in the 
> scheme-specific processing of a URI; instead, the fragment 
> identifier is separated from the rest of the URI prior to a 
> dereference, and thus the identifying information within the 
> fragment itself is dereferenced solely by the user agent, 
> regardless of the URI scheme. Although this separate handling 
> is often perceived to be a loss of information, particularly 
> for accurate redirection of references as resources move over 
> time, it also serves to prevent information providers from 
> denying reference authors the right to refer to information 
> within a resource selectively.


More information about the Digitalmars-d mailing list