W3C home > Mailing lists > Public > public-vocabs@w3.org > July 2013

Re: Expected type(s) for email should include URL

From: Jarno van Driel <jarno@quantumspork.nl>
Date: Mon, 29 Jul 2013 23:34:13 +0200
Message-ID: <CAFQgrbbNR3DJ6c72GxG3Du9R0LS6tJFfVjopW7VLneHJOqVD5A@mail.gmail.com>
To: Aaron Bradley <aaranged@gmail.com>
Cc: Public Vocabs <public-vocabs@w3.org>
The first thing that pops-up in my mind is why don't you use a <meta>
in this case, e.g.
<meta itemprop="email" content="jane-doe@xyz.edu">

But this only generates extra code to declare something that's already
present in the HTML itself (the href attribute). Next to that Google
has stated that only the visible information on a webpage will be
indexed. So that makes this type of use of the <meta> element
questionable at best, unless there is a relation with the href
attribute.

So therefor, to me at least, Aaron Bradley's remark makes a lot of sense.


On Mon, Jul 29, 2013 at 10:37 PM, Aaron Bradley <aaranged@gmail.com> wrote:
>
> The expected type for the property "email" [1], used on the types
> Organization, Person and ContactPoint, is text.
>
> However, an email address is as often as not expressed as a mailto:
> address.  And, in fact, almost all of the schema.org microdata examples that
> include this property express it as a URL, such as this example for Person
> [2]:
>
> <a href="mailto:jane-doe@xyz.edu" itemprop="email">jane-doe@xyz.edu</a>
>
> Google's Structured Data Testing Tool [3] does not complain if the Person
> example is run through it, but Google's Schema Validator [4] returns this
> warning - as it should, as per the spec:
>
> The property http://schema.org/email expects a value of type Text
>
> Note that it's perfectly possible for a page to legitimately use something
> other than text for the hyperlink anchor:
>
> <a href="mailto:jane-doe@xyz.edu" itemprop="email"><img
> src="gigantic-email-me-now-button.jpg"></a>
>
> Given this, doesn't it make sense to have the expected types for email to
> be set to "Text or URL", as with (for example) the property "menu"?
>
> [1] http://schema.org/email
> [2] http://scheam.org/Person
> [3] http://www.google.com/webmasters/tools/richsnippets
> [4] https://developers.google.com/gmail/schemas/testing-your-schema
> [5] http://schema.org/menu
>
Received on Monday, 29 July 2013 21:34:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:29:28 UTC