hcard-brainstorming-rejected: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(separated from hCard brainstorming)
 
m (Replace <entry-title> with {{DISPLAYTITLE:}})
 
Line 1: Line 1:
<entry-title> hCard brainstorming Rejected Suggestions </entry-title>
{{DISPLAYTITLE: hCard brainstorming Rejected Suggestions }}
These are suggestions made as part of [[hCard brainstorming]] that have been rejected.
These are suggestions made as part of [[hCard brainstorming]] that have been rejected.



Latest revision as of 16:25, 18 July 2020

These are suggestions made as part of hCard brainstorming that have been rejected.

Suggestion: The use of class="url" on an <a> tag to represent an hCard URL property is redundant. By virtue of the <a> tag you know this is a URL.

Rejected. This is a bad suggestion because although it appears to reduce redunancy and keep things cleaner, it also creates a few problems. Without explicitly noting that this is a URL then any <a> tags within a 'vcard' would be considered a URL, for example:

<span class="vcard">
...
<ul class="categories">
<li><a href="http://w3c.org">W3C</a></li>
</ul>
...
</span>

There is no way to "turn-off" the encoding of the W3C URL, whereas if "url" needed to be explicitly listed in the class attribute list, then by NOT listing it you could effectively turn it off.

see also