mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
170 lines
6.4 KiB
HTML
170 lines
6.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">
|
|
<link rel="icon" href="http://www.feedvalidator.org/favicon.ico" />
|
|
<link rel="shortcut icon" href="http://www.feedvalidator.org/favicon.ico" />
|
|
<style type="text/css" media="screen">@import "../../../css/common.css";
|
|
@import "../../../css/documentation.css";</style>
|
|
<script type="text/javascript">
|
|
|
|
toc = {
|
|
"introduction": "1",
|
|
"conventions": "2",
|
|
"data-types": "3",
|
|
"data-types-datetime": "3.1",
|
|
"data-types-url": "3.2",
|
|
"data-types-characterdata": "3.3",
|
|
"elements": "4",
|
|
"element-rss": "4.1",
|
|
"element-channel": "4.1.1",
|
|
"element-channel-description": "4.1.1.1",
|
|
"element-channel-link": "4.1.1.2",
|
|
"element-channel-title": "4.1.1.3",
|
|
"element-channel-category": "4.1.1.4",
|
|
"element-channel-cloud": "4.1.1.5",
|
|
"element-channel-copyright": "4.1.1.6",
|
|
"element-channel-docs": "4.1.17",
|
|
"element-channel-generator": "4.1.1.8",
|
|
"element-channel-image": "4.1.1.9",
|
|
"element-channel-image-link": "4.1.1.9.1",
|
|
"element-channel-image-title": "4.1.1.9.2",
|
|
"element-channel-image-url": "4.1.1.9.3",
|
|
"element-channel-image-description": "4.1.1.9.4",
|
|
"element-channel-image-height": "4.1.1.9.5",
|
|
"element-channel-image-width": "4.1.1.9.6",
|
|
"element-channel-language": "4.1.1.10",
|
|
"element-channel-lastbuilddate": "4.1.1.11",
|
|
"element-channel-managingeditor": "4.1.1.12",
|
|
"element-channel-pubdate": "4.1.1.13",
|
|
"element-channel-rating": "4.1.1.14",
|
|
"element-channel-skipdays": "4.1.1.15",
|
|
"element-channel-skipdays-day": "4.1.1.15.1",
|
|
"element-channel-skiphours": "4.1.1.16",
|
|
"element-channel-skiphours-hour": "4.1.1.16.1",
|
|
"element-channel-textinput": "4.1.1.17",
|
|
"element-channel-textinput-description": "4.1.1.17.1",
|
|
"element-channel-textinput-link": "4.1.1.17.2",
|
|
"element-channel-textinput-name": "4.1.1.17.3",
|
|
"element-channel-textinput-title": "4.1.1.17.4",
|
|
"element-channel-ttl": "4.1.1.18",
|
|
"element-channel-webmaster": "4.1.1.19",
|
|
"element-channel-item": "4.1.1.20",
|
|
"element-channel-item-author": "4.1.1.20.1",
|
|
"element-channel-item-category": "4.1.1.20.2",
|
|
"element-channel-item-comments": "4.1.1.20.3",
|
|
"element-channel-item-description": "4.1.1.20.4",
|
|
"element-channel-item-enclosure": "4.1.1.20.5",
|
|
"element-channel-item-guid": "4.1.1.20.6",
|
|
"element-channel-item-link": "4.1.1.20.7",
|
|
"element-channel-item-pubdate": "4.1.1.20.8",
|
|
"element-channel-item-source": "4.1.1.20.9",
|
|
"element-channel-item-title": "4.1.1.20.10",
|
|
"Namespace Elements": "5.",
|
|
"Content": "5.1",
|
|
"namespace-elements-content-encoded": "5.1.1",
|
|
"license": "6.",
|
|
"credits": "7."
|
|
}
|
|
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) {
|
|
var href = image.nextSibling.nextSibling.href;
|
|
image.src="../../../favicon.ico";
|
|
image.hspace=2;
|
|
image.vspace=1;
|
|
var a = document.createElement('a');
|
|
a.href="../../../check.cgi?url=" + escape(href);
|
|
image.title="feed validator";
|
|
image.parentNode.replaceChild(a,image);
|
|
image.border = 0;
|
|
a.appendChild(image);
|
|
|
|
image = document.createElement('img');
|
|
image.src="http://validome.org/favicon.ico";
|
|
image.hspace=2;
|
|
image.vspace=1;
|
|
var a2 = document.createElement('a');
|
|
a2.href="http://validome.org/rss-atom/validate?viewSourceCode=1&version=rss_2_0&url=" + escape(href);
|
|
image.title="validome";
|
|
a.parentNode.insertBefore(a2,a.nextSibling);
|
|
image.border = 0;
|
|
a2.appendChild(image);
|
|
}
|
|
}
|
|
|
|
var h2 = document.getElementsByTagName("h2");
|
|
if (h2.length && document.URL) {
|
|
var a = document.getElementsByTagName("a");
|
|
a[2].parentNode.insertBefore(document.createTextNode(' '),a[2]);
|
|
var tcindex = document.URL.indexOf('testcases/rss20/');
|
|
if (tcindex >= 0) {
|
|
var qindex = document.URL.lastIndexOf('/');
|
|
var sectionname = document.URL.substring(tcindex+16, qindex);
|
|
var section = toc[sectionname];
|
|
if (/[0-9]/.test(section)) {
|
|
h2[0].firstChild.nodeValue = "Section ";
|
|
var a = document.createElement('a');
|
|
a.href="http://www.rssboard.org/rss-profile#" + sectionname;
|
|
a.appendChild(document.createTextNode(section));
|
|
h2[0].appendChild(a);
|
|
}
|
|
|
|
var p = document.createElement('blockquote');
|
|
p.appendChild(document.createTextNode('You can also participate on the RSS Advisory Board '));
|
|
var a = document.createElement('a');
|
|
a.href="http://www.socialtext.net/rssboard/index.cgi?spec_" + sectionname;
|
|
a.appendChild(document.createTextNode("wiki"));
|
|
p.appendChild(a);
|
|
p.appendChild(document.createTextNode(' or '));
|
|
a = document.createElement('a');
|
|
a.href="http://groups.yahoo.com/group/rss-public/";
|
|
a.appendChild(document.createTextNode("public mailing list"));
|
|
p.appendChild(a);
|
|
p.appendChild(document.createTextNode('.'));
|
|
h2[0].parentNode.insertBefore(p, h2[0].nextSibling);
|
|
|
|
p = document.createElement('blockquote');
|
|
p.appendChild(document.createTextNode('To validate using Validome RSS and Atom validator, click on the '));
|
|
var image = document.createElement('img');
|
|
image.src= "http://validome.org/favicon.ico";
|
|
p.appendChild(image);
|
|
p.appendChild(document.createTextNode(' icon.'));
|
|
h2[0].parentNode.insertBefore(p, h2[0].nextSibling);
|
|
|
|
p = document.createElement('blockquote');
|
|
p.appendChild(document.createTextNode('To validate using the Feed Validator, 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>RSS 2.0 Test Cases</p>
|
|
<a class="skip" href="#startnavigation">Jump to navigation</a>
|
|
</div> <!--logo-->
|
|
|
|
|
|
<div id="main">
|
|
|
|
<h2>Index</h2>
|