microdata-parser/tests/data/Itemref/source.html
Yusuf Kandemir a5bfeb5ec5 Added itemref support and test
The test also tests "src based tags" as can be seen in dataset name
2018-11-12 19:11:52 +03:00

24 lines
908 B
HTML

<!-- URI: http://blog.example.com/gallery/ -->
<!DOCTYPE HTML>
<html>
<head>
<title>Photo gallery</title>
</head>
<body>
<h1>My photos</h1>
<figure itemscope itemtype="http://n.whatwg.org/work" itemref="licenses">
<img itemprop="work" src="images/house.jpeg" alt="A white house, boarded up, sits in a forest.">
<figcaption itemprop="title">The house I found.</figcaption>
</figure>
<figure itemscope itemtype="http://n.whatwg.org/work" itemref="licenses">
<img itemprop="work" src="images/mailbox.jpeg" alt="Outside the house is a mailbox. It has a leaflet inside.">
<figcaption itemprop="title">The mailbox.</figcaption>
</figure>
<footer>
<p id="licenses">All images licensed under the
<a itemprop="license" href="http://www.opensource.org/licenses/mit-license.php">MIT license</a>.
</p>
</footer>
</body>
</html>