Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WatchAction example in HTML/Microdata/RDFa #570

Merged
merged 1 commit into from Jun 8, 2015
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -10444,16 +10444,30 @@ TYPES: WatchAction, Movie

PRE-MARKUP:

A Movie named "Footloose" with a WatchAction as a
potentialAction, with a target of http://example.com/player?id=123.
<!-- A Movie named "Footloose" with a WatchAction as a
potentialAction, with a target of http://example.com/player?id=123. -->

<div>
<a href="http://example.com/player?id=123">Watch <cite>Footloose</cite></a>
</div>

MICRODATA:

This example is JSON only.
<div itemscope itemtype="http://schema.org/Movie">
<meta itemprop="name" content="Footloose">
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/WatchAction">
<a itemprop="target" href="http://example.com/player?id=123">Watch <cite>Footloose</cite></a>
</div>
</div>

RDFA:

This example is JSON only.
<div vocab="http://schema.org/" typeof="Movie">
<meta property="name" content="Footloose">
<div property="potentialAction" typeof="WatchAction">
<a property="target" href="http://example.com/player?id=123">Watch <cite>Footloose</cite></a>
</div>
</div>

JSON:

ProTip! Use n and p to navigate between commits in a pull request.