[uf-discuss] vote-for

Ryan King ryan at technorati.com
Mon Oct 30 13:33:35 PST 2006


On Oct 30, 2006, at 9:56 AM, Siegfried Gipp wrote:

> Limiting the vote-for relation to the rev attribute is not good.  
> There are two
> different scenarios:
>
> 1. The link points to a resource which votes for THIS resource or  
> contains
> some form or script or whatever to enable the user to vote for THIS  
> resource,
> then the usage of the rev attribute is correct.

This is out of scope for vote-links.

> 2. If a page contains a link to another resource, which contains some
> statement i would support, then the usage of the rel attribute is  
> correct.

I disagree. @rel determines the relationship between the referred  
resource and the current one. For example, this:

<a rel="tag" href="/foo"/>foo</a>

could be interpreted as:

"'/foo' is a 'tag' for 'this page'"

@rev switches the subject and object, so this:

<a rev="vote-for" href="/bar">bar is great</a>

could be interpreted as:

"'this page' is a 'vote-for' '/bar'"



> For an example see my start page at http://www.rorkvell.de/
> Down in the footer there are some badgets, two of them contain  
> links to pages
> which i want to support, or so to say, which i vote for. The  
> relation of my
> page (THIS resource) to the target is, that THIS votes for the target.

I think you have things reversed.

> So using the rel attribute should not be prohibited. Better would be a
> clarification when to use what.

Always use @rev.

-ryan


More information about the microformats-discuss mailing list