[uf-discuss] URLs in hrefs

Nic James Ferrier nferrier at tapsellferrier.co.uk
Fri Apr 20 10:53:30 PDT 2007


"Mike Kaply" <microformats at kaply.com> writes:

> On 4/20/07, Nic James Ferrier <nferrier at tapsellferrier.co.uk> wrote:
>> "David Janes" <davidjanes at blogmatrix.com> writes:
>>
>> > The reason that there has been little discussion is that the rules for
>> > dealing with this are well understood and settled. This document [1]
>> > will give you everything you need -- written in 1995.
>> >
>> > Regards, etc...
>> >
>> > [1] http://www.ietf.org/rfc/rfc1808.txt
>>
>> I disagree. I think Mikey raises a good point. When you're parsing
>> bits of data from a page with xslt or javascript you sometimes have to
>> do the url resolution yourself and that is not as simple as it should
>> be.
>>
> Actually for the record, in Javascript you never have to do it yourself.
>
> var bar = foo.getAttribute("href")
>
> foo is not resolved.
>
> var bar = foo.href
>
> foo IS resolved.
>
> Same with .src for images.

In the browser context you're right... can't remember if this is true
in ajax imported docs?


-- 
Nic Ferrier
http://www.tapsellferrier.co.uk   


More information about the microformats-discuss mailing list