[uf-discuss] URLs in hrefs

Mike Kaply microformats at kaply.com
Fri Apr 20 10:40:56 PDT 2007


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.

Mike Kaply


More information about the microformats-discuss mailing list