W3C home > Mailing lists > Public > public-html-data-tf@w3.org > November 2011

Re: CSS styling of Microdata, RDFa, Microformats

From: Toby Inkster <tai@g5n.co.uk>
Date: Tue, 15 Nov 2011 13:38:18 +0000
To: Dan Brickley <danbri@danbri.org>
Cc: public-html-data-tf@w3.org, Tantek Çelik <tantek@tantek.com>
Message-ID: <20111115133818.1bda1a93@miranda.g5n.co.uk>
On Mon, 14 Nov 2011 12:00:32 +0100
Dan Brickley <danbri@danbri.org> wrote:

> How far does [property=~"http://example.com/] go towards
> working with RDFa?

Say you have the following style:

	div[typeof="http://example.com/Person"] { color: green; }

Then this will be green:

	<div typeof="http://example.com/Person">...</div>

But this will not:

	<div vocab="http://example.com/" typeof="Person">...</div>

A couple of years ago I played around with using Javascript as a shim
to take into account full URIs for styling purposes:


It only understands RDFa 1.0, but would probably not be especially
difficult to upgrade to RDFa 1.1.

Toby A Inkster
Received on Tuesday, 15 November 2011 13:37:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:08:25 UTC