[uf-discuss] class="url"?
Siegfried Gipp
siegfried at rorkvell.de
Sat Nov 4 11:38:58 PST 2006
Just a question:
for what purpose is the class="url" as attribute of a link?
Example from the hCalendar spec:
<span class="vevent">
<a class="url" href="http://www.web2con.com/">
<span class="summary">Web 2.0 Conference</span>:
<abbr class="dtstart" title="2005-10-05">October 5</abbr>-
<abbr class="dtend" title="2005-10-08">7</abbr>,
at the <span class="location">Argent Hotel, San Francisco, CA</span>
</a>
</span>
So what does the <a> container contain? It contains a summary, two dates and a
location. Does it contain a url? I can't see any.
The href attribute of the <a> container on the other hand does contain a url.
It has to contain a url according to the html and xhtml specifications.
Although this url does not need to be a full url. So, the simple usage of the
<a> tag (as well as the <link> tag already implies the presence of a href
attribute which according to specification has to contain a url. The same
goes for img and the src attribute and with object and the data attribute. So
here the class="url" is not only unnecessary, it is wrong, since the <a>
container does not contain a url.
Other example:
see here: <a href="http://www.web2con.com/">http://www.web2com/</a>
This indeed does contain a url. So here it would be o.k. to use the
class="url":
see here: <a href="http://www.web2con.com/"
class="url">http://www.web2com/</a>
Generally, class="url" is not unnecessary per se, but it is wrong in all
examples in the wiki. The only correct usage of class="url" would be if that
html container indeed contains a url.
More information about the microformats-discuss
mailing list