mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
76 lines
2.4 KiB
HTML
76 lines
2.4 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<html lang="en">
|
|
<head>
|
|
<title>Feed Validator Test Cases</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<style type="text/css" media="screen">@import "../../../css/common.css";
|
|
@import "../../../css/documentation.css";</style>
|
|
<script type="text/javascript">
|
|
|
|
window.onload=function() {
|
|
if(!document.getElementsByTagName || !document.createElement) return;
|
|
|
|
var images = document.getElementsByTagName("IMG");
|
|
for (var i=0; i<images.length; i++) {
|
|
var image = images[i];
|
|
if (image.src.indexOf("/icons/text.gif") >= 0) {
|
|
image.src="/icons/unknown.gif";
|
|
}
|
|
if (image.src.indexOf("/icons/unknown.gif") >= 0) {
|
|
image.src="../../../favicon.ico";
|
|
image.hspace=2;
|
|
image.vspace=1;
|
|
var a = document.createElement('a');
|
|
a.href="../../../check.cgi?url=" +
|
|
escape(image.nextSibling.nextSibling.href);
|
|
image.title="validate";
|
|
image.parentNode.replaceChild(a,image);
|
|
image.border = 0;
|
|
a.appendChild(image);
|
|
}
|
|
}
|
|
|
|
|
|
var h2 = document.getElementsByTagName("h2");
|
|
if (h2.length && document.URL) {
|
|
var tcindex = document.URL.indexOf('testcases/xml/');
|
|
if (tcindex >= 0) {
|
|
var qindex = document.URL.lastIndexOf('/');
|
|
var section = document.URL.substring(tcindex+15, qindex);
|
|
if (/[0-9]/.test(section)) {
|
|
h2[0].firstChild.nodeValue = "Section ";
|
|
var a = document.createElement('a');
|
|
a.href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section." + section;
|
|
a.appendChild(document.createTextNode(section));
|
|
h2[0].appendChild(a);
|
|
}
|
|
|
|
var p = document.createElement('blockquote');
|
|
p.appendChild(document.createTextNode('To validate, click on the '));
|
|
var image = document.createElement('img');
|
|
image.src= "../../../favicon.ico";
|
|
p.appendChild(image);
|
|
p.appendChild(document.createTextNode(' icon.'));
|
|
|
|
h2[0].parentNode.insertBefore(p, h2[0].nextSibling);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="logo">
|
|
<h1><a href="../../.."><span id="feed"><span id="f">F</span><span id="e1">E</span><span id="e2">E</span></span><span id="d">D</span> Validator</a></h1>
|
|
|
|
<p>Test Cases</p>
|
|
<a class="skip" href="#startnavigation">Jump to navigation</a>
|
|
</div> <!--logo-->
|
|
|
|
|
|
<div id="main">
|
|
|
|
<h2>Index</h2>
|