Re: minutes for HTML WG f2f, 2011-11-04, part 1

2011/11/7 Cameron Heavon-Jones <cmhjones@gmail.com>:
>
> It's the difference between asking what it means to have an index of all <span> on a page over what it means to have an index of all <data> on a page.
>
> You can turn <span> into a data container, but it will inherit a lot of meaningless data.
>

First of all, the span element means that there is something here but
no information about what it is. This is exactly the same as the data
element as far as I can see. The only difference is the value
attribute. And the span element is already used just like the data
element (in the RDFa context):

<html
  xmlns="http://www.w3.org/1999/xhtml"
  prefix="cal: http://www.w3.org/2002/12/cal/ical#
  xsd: http://www.w3.org/2001/XMLSchema"
  >
  <head><title>Jo's Friends and Family Blog</title></head>
  <body>
    <p>
      I'm holding
      <span property="cal:summary">
        one last summer Barbecue
      </span>,
      on
      <span property="cal:dtstart" content="2015-09-16T16:00:00-05:00"
            datatype="xsd:dateTime">
        September 16th at 4pm
      </span>.
    </p>
  </body>
</html>

Taken from: http://www.w3.org/TR/rdfa-core/#examples

The content attribute holds the machine readable data in this case.

>
> Is the attribute the value, type and identifier of the data?
>

See above how RDFa handles typed literals.

-Peter

Received on Tuesday, 8 November 2011 22:59:13 UTC