[uf-discuss] using rel to point to remote meta-data resource for a
url identified resource
Toby A Inkster
mail at tobyinkster.co.uk
Wed Dec 17 04:20:19 PST 2008
Adrian Skardhamar wrote:
> <img src="http://someurl/photo_of_cow.jpg"
> rel="http://someurl/meta_data_about_photo_of_cow">
Firstly, the rel attribute does not normally hold a URI. Although
placing a target URI in there is syntactically allowed, it is
semantically incorrect - the rel attribute is designed for indicating
the nature of a relationship, not the object of a relationship.
Secondly, the rel attribute is not valid on <img> using the usual
HTML 4 and XHTML 1.x doctypes, nor is it valid in HTML5. The only
published standard (that I'm aware of) that allows rel on <img> is RDFa.
Which brings me to the point that this is re-inventing something that
RDFa can already deal with very easily:
<img src="photo_of_cow.jpeg" rel="meta"
resource="metadata_about_photo_of_cow" />
This is already supported by many existing tools.
--
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
<http://tobyinkster.co.uk>
More information about the microformats-discuss
mailing list