W3C home > Mailing lists > Public > public-html-commits@w3.org > January 2010

html5/md Overview.html,1.16,1.17

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Sun, 17 Jan 2010 09:04:39 +0000
To: public-html-commits@w3.org
Message-Id: <E1NWR3n-00061J-Oh@lionel-hutz.w3.org>
Update of /sources/public/html5/md
In directory hutz:/tmp/cvs-serv23127

Modified Files:
	Overview.html 
Log Message:
fix vCard example to have better line-wrapping and say why (whatwg r4602)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/md/Overview.html,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- Overview.html	17 Jan 2010 08:59:15 -0000	1.16
+++ Overview.html	17 Jan 2010 09:04:37 -0000	1.17
@@ -3010,29 +3010,24 @@
  &lt;/p&gt;
  &lt;h2&gt;Assorted Contact Methods&lt;/h2&gt;
  &lt;ul&gt;
-  &lt;li itemprop="tel" itemscope&gt;&lt;span itemprop="value"&gt;+1 (310)
-  597 3781&lt;/span&gt; &lt;span itemprop="type"&gt;work&lt;/span&gt; &lt;meta
-  itemprop="type" content="pref"&gt;&lt;/li&gt;
-  &lt;li&gt;&lt;a itemprop="url"
-  href="http://en.wikipedia.org/wiki/Jack_Bauer"&gt;I'm on
-  Wikipedia&lt;/a&gt; so you can leave a message on my user talk
-  page.&lt;/li&gt;
-  &lt;li&gt;&lt;a itemprop="url"
-  href="http://www.jackbauerfacts.com/"&gt;Jack Bauer Facts&lt;/a&gt;&lt;/li&gt;
-  &lt;li itemprop="email"&gt;&lt;a
-  href="mailto:j.bauer@la.ctu.gov.invalid"&gt;j.bauer@la.ctu.gov.invalid&lt;/a&gt;&lt;/li&gt;
-  &lt;li itemprop="tel" itemscope&gt;&lt;span itemprop="value"&gt;+1 (310) 555
-  3781&lt;/span&gt; &lt;span&gt;&lt;meta itemprop="type" content="cell"&gt;mobile
-  phone&lt;/span&gt;&lt;/li&gt;
+  &lt;li itemprop="tel" itemscope&gt;
+   &lt;span itemprop="value"&gt;+1 (310) 597 3781&lt;/span&gt; &lt;span itemprop="type"&gt;work&lt;/span&gt;
+   &lt;meta itemprop="type" content="pref"&gt;
+  &lt;/li&gt;
+  &lt;li&gt;&lt;a itemprop="url" href="http://en.wikipedia.org/wiki/Jack_Bauer"&gt;I'm on Wikipedia&lt;/a&gt;
+  so you can leave a message on my user talk page.&lt;/li&gt;
+  &lt;li&gt;&lt;a itemprop="url" href="http://www.jackbauerfacts.com/"&gt;Jack Bauer Facts&lt;/a&gt;&lt;/li&gt;
+  &lt;li itemprop="email"&gt;&lt;a href="mailto:j.bauer@la.ctu.gov.invalid"&gt;j.bauer@la.ctu.gov.invalid&lt;/a&gt;&lt;/li&gt;
+  &lt;li itemprop="tel" itemscope&gt;
+   &lt;span itemprop="value"&gt;+1 (310) 555 3781&lt;/span&gt; &lt;span&gt;
+   &lt;meta itemprop="type" content="cell"&gt;mobile phone&lt;/span&gt;
+  &lt;/li&gt;
  &lt;/ul&gt;
- &lt;p itemprop="note"&gt;If I'm out in the field, you may be better off
- contacting &lt;span itemprop="agent" itemscope
- itemtype="http://microformats.org/profile/hcard"&gt;&lt;a
+ &lt;p itemprop="note"&gt;If I'm out in the field, you may be better off contacting &lt;span
+ itemprop="agent" itemscope itemtype="http://microformats.org/profile/hcard"&gt;&lt;a
  itemprop="email" href="mailto:c.obrian@la.ctu.gov.invalid"&gt;&lt;span
- itemprop="fn"&gt;Chloe O'Brian&lt;/span&gt;&lt;/a&gt;&lt;/span&gt; if it's about
- work, or ask &lt;span itemprop="agent"&gt;Tony Almeida&lt;/span&gt; if
- you're interested in the CTU five-a-side football team we're trying
- to get going.&lt;/p&gt;
+ itemprop="fn"&gt;Chloe O'Brian&lt;/span&gt;&lt;/a&gt;&lt;/span&gt; if it's about work, or ask &lt;span
+ itemprop="agent"&gt;Tony Almeida&lt;/span&gt; if you're interested in the CTU five-a-side football team we're trying to get going.&lt;/p&gt;
  &lt;ins datetime="2008-07-20T21:00:00+0100"&gt;
   &lt;span itemprop="rev" itemscope&gt;
    &lt;meta itemprop="type" content="date-time"&gt;
@@ -3044,6 +3039,10 @@
  &lt;/ins&gt;
 &lt;/section&gt;</pre>
 
+   <p>The odd line wrapping is needed because newlines are meaningful
+   in microdata: newlines would be preserved in a conversion to, for
+   example, the vCard format.<p>
+
   </div><div class="example">
 
    <p>This example shows a site's contact details (using the
Received on Sunday, 17 January 2010 09:04:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 17 January 2010 09:04:41 GMT