|
Posted by John Dunlop on 10/22/98 11:35
tom wrote:
> i desperately need a function that will transform relative URLs to
> absolute URLs in the SRC part of <img> tags.
RFC3986 describes the definitive algorithm for resolving relative
references, given a base URI, and how to, in general, establish that base
URI.
There's nothing to stop you from writing your own algorithm or making
use of someone else's, so long as it measures up. If you do decide to
write one, here's some examples to test with:
http://www.w3.org/2004/04/uri-rel-test.html
--
Jock
Navigation:
[Reply to this message]
|