This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge github.com:KrofDrakula/microdata-tool into gh-pages
Conflicts: jquery.microdata.js
- Loading branch information
Showing
6 changed files
with
287 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/.project | ||
/.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# HTML5 microdata testing tool # | ||
|
||
To see this tool in action, visit [http://krofdrakula.github.com/microdata-tool](http://krofdrakula.github.com/microdata-tool). | ||
|
||
This tool was written to aid in debugging and browsing HTML5 microdata. | ||
|
||
To use this tool, simply include the script anywere after the inclusion | ||
of the [jQuery](http://jquery.com) library. When you view the page, a list | ||
will appear in the bottom left listing all the microdata objects detected | ||
on the page. | ||
|
||
This tool is a work-in-progress and still doesn't adhere to the full specs (yet). | ||
Plans to support the full microdata spec + data vocabulary validation are on | ||
the drawing board. ;) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>HTML5 microdata test page</title> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | ||
<script src="jquery.microdata.js"></script> | ||
</head> | ||
<body> | ||
<h1>HTML5 microdata test page</h1> | ||
<div itemscope itemType="http://data-vocabulary.org/Event"> | ||
<p itemprop="summary">An example event</p> | ||
<time datetime="2011-03-03" itemprop="startDate">March 3rd 2011</time> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css" /> | ||
<script src="http://code.jquery.com/jquery-latest.js"></script> | ||
<script src="http://code.jquery.com/qunit/git/qunit.js"></script> | ||
<script src="jquery.microdata.js"></script> | ||
<script src="test.js"></script> | ||
</head> | ||
<body style="padding-bottom:200px"> | ||
<h1 id="qunit-header">QUnit example</h1> | ||
<h2 id="qunit-banner"></h2> | ||
<div id="qunit-testrunner-toolbar"></div> | ||
<h2 id="qunit-userAgent"></h2> | ||
<ol id="qunit-tests"></ol> | ||
<div id="qunit-fixture"> | ||
<ul class="tests"> | ||
|
||
<!-- a single item with no vocabulary --> | ||
<li itemscope id="single-item-no-vocabulary"> | ||
<p itemprop="description">This is a description</p> | ||
</li> | ||
|
||
<!-- single item with vocabulary, no properties --> | ||
<li itemscope id="vocab-no-properties" itemtype="http://example.org/Type"> | ||
</li> | ||
|
||
<!-- multiple values, single property --> | ||
<li itemscope id="multi-value-single-prop" itemtype="http://example.org/Multivalue"> | ||
<p itemprop="attending">Peter Bishop</p> | ||
<p itemprop="attending">Walter Bishop</p> | ||
</li> | ||
|
||
|
||
<!-- multiple properties, single value --> | ||
<li itemscope id="multi-prop-single-value" itemtype="http://example.org/Multiprop"> | ||
<p itemprop="admin user">true</p> | ||
</li> | ||
|
||
<!-- single item with one required and one missing property per the vocabulary rules --> | ||
<li itemscope id="single-item-missing-property" itemtype="http://data-vocabulary.org/Event"> | ||
<p itemprop="summary">This is the event summary</p> | ||
</li> | ||
|
||
<!-- single item with both required properties, but one invalid property --> | ||
<li itemscope id="single-item-invalid-property" itemtype="http://data-vocabulary.org/Event"> | ||
<p itemprop="summary">Event summary</p> | ||
<time datetime="2011-08-05x" itemprop="startdate">Aug 5th 2011</time> | ||
</li> | ||
</ul> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.