summaryrefslogtreecommitdiff
path: root/toolkit/components/microformats/test/static/parse-umd.html
blob: ec9a0c07116fb661018c62b6f09d7d7d25ae6b3a (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
<!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">
		
		
		<!-- Loads full umd version -->
		<script src="../../thirdparty/es5-shim.min.js"></script>
		<script src="../../microformat-shiv.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 - UMD</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="http://glennjones.net"&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="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> ‐ ISO date profile</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>