W3C home > Mailing lists > Public > public-html-diffs@w3.org > July 2011

microdata; hixie: Clarify that URLs and dates are strings in the microdata model. (whatwg r6278)

From: poot <cvsmail@w3.org>
Date: Thu, 07 Jul 2011 18:54:25 -0400
To: public-html-diffs@w3.org
Message-Id: <E1QexSj-0005fz-Aw@jay.w3.org>
microdata; hixie: Clarify that URLs and dates are strings in the
microdata model. (whatwg r6278)

http://dev.w3.org/cvsweb/html5/md/Overview.html?r1=1.138&r2=1.139&f=h
http://html5.org/tools/web-apps-tracker?from=6277&to=6278

===================================================================
RCS file: /sources/public/html5/md/Overview.html,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -d -r1.138 -r1.139
--- Overview.html	7 Jul 2011 21:14:28 -0000	1.138
+++ Overview.html	7 Jul 2011 22:53:59 -0000	1.139
@@ -665,9 +665,9 @@
  &lt;p&gt;I am &lt;span itemprop="nationality"&gt;British&lt;/span&gt;.&lt;/p&gt;
 &lt;/div&gt;</pre>
 
-  </div><p>Properties can also have values that are <a href="#url" title="URL">URLs</a>. This is achieved using the <code>a</code>
-  element and its <code title="attr-hyperlink-href">href</code>
-  attribute, the <code>img</code> element and its <code title="attr-img-src">src</code> attribute, or other elements that
+  </div><p>When a string value is a <a href="#url" title="URL">URLs</a>, it is
+  expressed using the <code>a</code> element and its <code title="attr-hyperlink-href">href</code> attribute, the
+  <code>img</code> element and its <code title="attr-img-src">src</code> attribute, or other elements that
   link to or embed external resources.<div class="example">
 
    <p>In this example, the item has one property, "image", whose value
@@ -677,9 +677,8 @@
  &lt;img itemprop="image" src="google-logo.png" alt="Google"&gt;
 &lt;/div&gt;</pre>
 
-  </div><p>Properties can also have values that are dates, times, or dates
-  and times. This is achieved using the <code>time</code> element and
-  its <code title="attr-time-datetime">datetime</code> attribute.<div class="example">
+  </div><p>When a string value is a date, time, or both a date and a time,
+  it is expressed using the <code>time</code> element and its <code title="attr-time-datetime">datetime</code> attribute.<div class="example">
 
    <p>In this example, the item has one property,
    "birthday", whose value is a date:</p>
@@ -1009,13 +1008,18 @@
    <li><code title="attr-itemscope"><a href="#attr-itemscope">itemscope</a></code></li>
    <li><code title="attr-itemtype"><a href="#attr-itemtype">itemtype</a></code></li>
   </ul><h3 id="the-microdata-model"><span class="secno">2.1 </span>The microdata model</h3><p>The microdata model consists of groups of name-value pairs known
-  as <a href="#concept-item" title="concept-item">items</a>.<p>Each group is known as an <a href="#concept-item" title="concept-item">item</a>. Each <a href="#concept-item" title="concept-item">item</a> can have an <a href="#item-type">item type</a>,
-  a <a href="#global-identifier">global identifier</a> (if the <a href="#item-type">item type</a>
-  <a href="#support-global-identifiers-for-items" title="support global identifiers for items">supports global
-  identifiers for its items</a>), and a list of name-value
-  pairs. Each name in the name-value pair is known as a <a href="#the-properties-of-an-item" title="the properties of an item">property</a>, and each <a href="#the-properties-of-an-item" title="the properties of an item">property</a> has one or more
-  <a href="#concept-property-value" title="concept-property-value">values</a>. Each <a href="#concept-property-value" title="concept-property-value">value</a> is either a string or itself a group of
-  name-value pairs (an <a href="#concept-item" title="concept-item">item</a>).<p>An <a href="#concept-item" title="concept-item">item</a> is said to be a
+  as <a href="#concept-item" title="concept-item">items</a>.<p>Each group is known as an <a href="#concept-item" title="concept-item">item</a>.
+  Each <a href="#concept-item" title="concept-item">item</a> can have an <a href="#item-type">item
+  type</a>, a <a href="#global-identifier">global identifier</a> (if the <a href="#item-type">item
+  type</a> <a href="#support-global-identifiers-for-items" title="support global identifiers for
+  items">supports global identifiers for its items</a>), and a list
+  of name-value pairs. Each name in the name-value pair is known as a
+  <a href="#the-properties-of-an-item" title="the properties of an item">property</a>, and each
+  <a href="#the-properties-of-an-item" title="the properties of an item">property</a> has one or
+  more <a href="#concept-property-value" title="concept-property-value">values</a>. Each <a href="#concept-property-value" title="concept-property-value">value</a> is either a string or
+  itself a group of name-value pairs (an <a href="#concept-item" title="concept-item">item</a>). The names are unordered relative
+  to each other, but if a particular name has multiple values, they do
+  have a relative order.<p>An <a href="#concept-item" title="concept-item">item</a> is said to be a
   <dfn id="typed-item">typed item</dfn> when either it has an <a href="#item-type">item type</a>,
   or it is the <a href="#concept-property-value" title="concept-property-value">value</a> of a <a href="#the-properties-of-an-item" title="the properties of an
   item">property</a> of a <a href="#typed-item">typed item</a>. The
Received on Thursday, 7 July 2011 22:54:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 7 July 2011 22:54:35 GMT