C
carlbernardi
Hi,
While parsing relative URL segments "../" to hierarchical segments of
the absolute URL , I notice that the <a> tag and the <link> tag do
this differently. Take the following absolute and relative URLs:
absolute URL: http://www.a.com/a/b
relative URL: ../../b/c.css
The <a> tag resolves this to:
http://www.a.com/b/c.css
However the <link> tag resolves this to:
http://www.a.com/a/b/c.css
It appears that all other forms of resolving URLs are equal between
both tags however, I have been trying to find the RFC specification on
this but have had no luck. This document http://www.ietf.org/rfc/rfc2396.txt
does not contain any information regarding the <link> tag.
Is anyone here familiar with this or know where I could obtain more
information.
Thanks,
Bandito
http://www.gaihosa.com
While parsing relative URL segments "../" to hierarchical segments of
the absolute URL , I notice that the <a> tag and the <link> tag do
this differently. Take the following absolute and relative URLs:
absolute URL: http://www.a.com/a/b
relative URL: ../../b/c.css
The <a> tag resolves this to:
http://www.a.com/b/c.css
However the <link> tag resolves this to:
http://www.a.com/a/b/c.css
It appears that all other forms of resolving URLs are equal between
both tags however, I have been trying to find the RFC specification on
this but have had no luck. This document http://www.ietf.org/rfc/rfc2396.txt
does not contain any information regarding the <link> tag.
Is anyone here familiar with this or know where I could obtain more
information.
Thanks,
Bandito
http://www.gaihosa.com