mozilla

Revision 141513 of The tag microformat

  • Revision slug: The_tag_microformat
  • Revision title: The tag microformat
  • Revision id: 141513
  • Created:
  • Creator: Dikrib
  • Is current revision? No
  • Comment 52 words added, 4 words removed

Revision Content

{{ Fx_minversion_header("3") }} The tag microformat is used to add tags to other microformats.

Properties

The value of each property is a string unless anything else is specified. If a property is not marked as required, the value might be undefined. If a property is marked as plural, the value is either undefined or an array with elements of the specified type.

Property Description
tag A virtual property that returns a textual description of the tag. Provide more details once I have time to parse what this is doing. Required.
link A URL associated with the tag. Required.
text The text associated with the tag. Required.

 

Methods

toString()

Returns the tag as a string.

tagString = tag.toString();
Parameters

None.

Return value

The tag as a single string. This is currently simply the value of the tag property.

See also

{{ languages( { "es": "es/El_Microformato_tag", "ja": "ja/The_tag_microformat" } ) }}

Revision Source

<p>{{ Fx_minversion_header("3") }} The <code>tag</code> microformat is used to add tags to other microformats.</p>
<h2 name="Properties">Properties</h2>
<p>The value of each property is a <a class="internal" href="/en/Core_JavaScript_1.5_Reference/Global_Objects/String" title="en/Core JavaScript 1.5 Reference/Global Objects/String">string</a> unless anything else is specified. If a property is <strong>not</strong> marked as <strong>required</strong>, the value might be <a class="internal" href="/en/Core_JavaScript_1.5_Reference/Global_Properties/undefined" title="en/Core JavaScript 1.5 Reference/Global Properties/undefined">undefined</a>. If a property is marked as <strong>plural</strong>, the value is either <a class="internal" href="/en/Core_JavaScript_1.5_Reference/Global_Properties/undefined" title="en/Core JavaScript 1.5 Reference/Global Properties/undefined">undefined</a> or an <a class="internal" href="/en/Core_JavaScript_1.5_Reference/Global_Objects/Array" title="en/Core JavaScript 1.5 Reference/Global Objects/Array">array</a> with elements of the specified type.</p>
<table class="standard-table" style="width: 676px; height: 120px;"> <tbody> <tr> <th>Property</th> <th>Description</th> </tr> <tr> <td><code>tag</code></td> <td>A virtual property that returns a textual description of the tag. <em>Provide more details once I have time to parse what this is doing.</em> <strong>Required.</strong></td> </tr> <tr> <td><code>link</code></td> <td>A URL associated with the tag. <strong>Required.</strong></td> </tr> <tr> <td><code>text</code></td> <td>The text associated with the tag. <strong>Required.</strong></td> </tr> </tbody>
</table>
<p> </p><h2 name="Methods">Methods</h2>
<h3 name="toString.28.29">toString()</h3>
<p>Returns the tag as a string.</p>
<pre class="eval">tagString = tag.toString();
</pre>
<h6 name="Parameters">Parameters</h6>
<p>None.</p>
<h6 name="Return_value">Return value</h6>
<p>The tag as a single string. This is currently simply the value of the <code>tag</code> property.</p>
<h2 name="See_also">See also</h2>
<ul> <li><a href="/en/The_hCard_microformat" title="en/The_hCard_microformat">The hCard microformat</a></li> <li><a href="/en/The_hCalendar_microformat" title="en/The_hCalendar_microformat">The hCalendar microformat</a></li> <li><a href="/en/Using_microformats" title="en/Using_microformats">Using microformats</a></li> <li><a href="/en/Parsing_microformats_in_JavaScript" title="en/Parsing_microformats_in_JavaScript">Parsing microformats in JavaScript</a></li> <li><a href="/en/Describing_microformats_in_JavaScript" title="en/Describing_microformats_in_JavaScript">Describing microformats in JavaScript</a></li>
</ul> <p>{{ languages( { "es": "es/El_Microformato_tag", "ja": "ja/The_tag_microformat" } ) }}</p>
Revert to this revision