summaryrefslogtreecommitdiffstats
path: root/toolkit/components/microformats/test/static/parse.html
blob: c8b929fcba248ab83b75cf35254389841e6d1f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
    <head>

		<meta charset="UTF-8">
		<title>Parse Microformats</title>
		<meta name="description" content="microformat-shiv - A light-weight cross browser javascript microformats 2 parser" />

        <link rel="stylesheet" href="css/testrunner.css">
        <link rel="stylesheet" href="css/prettify.css">
		
		<script src="..././thirdparty/es5-shim.min.js"></script>
		
		<!-- loads Modules to help with debugging ie windows.Modules -->
		<script src="../../lib/utilities.js"></script>
		<script src="../../lib/domutils.js"></script>
		<script src="../../lib/url.js"></script>
		<script src="../../lib/html.js"></script>
		<script src="../../lib/text.js"></script>
		<script src="../../lib/dates.js"></script>
		<script src="../../lib/isodate.js"></script>
		<script src="../../lib/parser.js"></script>
		<script src="../../lib/parser-implied.js"></script>
		<script src="../../lib/parser-includes.js"></script>
		<script src="../../lib/parser-rels.js"></script>
		
		<script src="../../lib/maps/h-adr.js"></script>
		<script src="../../lib/maps/h-card.js"></script>
		<script src="../../lib/maps/h-entry.js"></script>
		<script src="../../lib/maps/h-event.js"></script>
		<script src="../../lib/maps/h-feed.js"></script>
		<script src="../../lib/maps/h-geo.js"></script>
		<script src="../../lib/maps/h-item.js"></script>
		<script src="../../lib/maps/h-listing.js"></script>
		<script src="../../lib/maps/h-news.js"></script>
		<script src="../../lib/maps/h-org.js"></script>
		<script src="../../lib/maps/h-product.js"></script>
		<script src="../../lib/maps/h-recipe.js"></script>
		<script src="../../lib/maps/h-resume.js"></script>
		<script src="../../lib/maps/h-review-aggregate.js"></script>
		<script src="../../lib/maps/h-review.js"></script>
		<script src="../../lib/maps/rel.js"></script>
		
			
		<script src="javascript/beautify.js"></script>
        <script src="javascript/prettify.js"></script>	
		
		<script src="javascript/DOMParser.js"></script>	
		<script src="javascript/parse.js"></script>	

	</head>
	
	<body>
        
		<p>microformat-shiv</p>
        <h1>Parse Microformats - Modules</h1>
		<p>Type or copy and paste the HTML you want to parse into the box below.</p>
        
                <form id="mf-form" class="tool-interface" method="get" action="">
	          		<p>
	          			<label for="html">HTML</label>
<textarea id="html" name="html">&lt;a class="h-card" href="glenn.html"&gt;
     &lt;span class="p-given-name"&gt;Glenn&lt;/span&gt;
     &lt;span class="p-family-name"&gt;Jones&lt;/span&gt;
&lt;/a&gt;
</textarea>
	          		</p>

					
					<p>
			        	<label for="baseurl">BaseURL</label>
			          	<input id="baseurl" name="baseurl" placeholder="Optional URL to help resolve relative links" value="http://example.com" type="text">
			        </p>
					
					<p>
			        	<label for="filters">Filters</label>
			          	<input id="filters" name="filters" placeholder="Optional comma separted list of formats to filter by" type="text">
			        </p>


					
					<p class="checkbox">
						<input id="collapsewhitespace" name="collapsewhitespace" id="textformat2" type="checkbox">
						<label class="checkbox-label" for="textformat2"><strong>Experimental</strong> ‐ Text white-space collapsing</label>
			        </p>
					
					<!--
					<p class="checkbox">
						<input id="overlappingversions" name="overlappingversions" id="overlappingversions" type="checkbox">
						<label class="checkbox-label" for="overlappingversions"><strong>Experimental</strong> ‐ Block overlapping properties from different microformat versions</label>
			        </p>
					
					<p class="checkbox">
						<input id="impliedPropertiesByVersion" name="impliedPropertiesByVersion" id="impliedPropertiesByVersion" type="checkbox">
						<label class="checkbox-label" for="impliedPropertiesByVersion"><strong>Experimental</strong> ‐ Set implied properties by microformat version</label>
			        </p>
					-->
					
					<p class="checkbox">
						<input id="parseLatLonGeo" name="parseLatLonGeo" id="parseLatLonGeo" type="checkbox">
						<label class="checkbox-label" for="parseLatLonGeo"><strong>Experimental</strong> ‐ Parse geo data writen as latlon i.e. 30.267991;-97.739568</label>
			        </p>
					
					
					
					<p>
                      
						<select id="dateformat" class="indent" name="dateformat" id="dateformat2">
							<option value="auto" selected="selected">auto</option>
							<option value="W3C">w3c</option>
							<option value="HTML5">html5</option>
							<option value="RFC3339">rfc3339</option>
		           		</select>
             
						<label class="checkbox-label" for="dateformat2"><strong>Experimental</strong> ‐ Fixed ISO date profile for output</label>
	 				</p>

	          		<input class="button" value="Parse" type="submit">
	         	</form>
                 
             <h1>Parser JSON</h1>
            <div id="parser-json"><pre class="prettyprint"><code class="language-json"></code></pre></div>

 
	
	</body>
</html>