Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #17 from dolmen/fix/more-XHTML-markup-issues

Fix more XHTML markup issues
  • Loading branch information...
commit 5ae07abdced992205933b9991e343da9e6258dfb 2 parents d5524af + dde4075
@DrHyde authored
View
2  depended-on-by.pl
@@ -8,4 +8,4 @@
CPANdeps::depended_on_by();
-# print "Content-type: text/html\n\n<html><body><h1>Temporarily off-line</h1><p>Since being linked from search.cpan.org there has been too much traffic for my poor old server. I will be transferring this service to a new server very soon. In the mean time, why not take a look at <a href=http://cpantest.grango.org/>the CPAN-testers' wiki</a> which has HOWTOs on becoming a tester, and some very useful <a href=http://cpantest.grango.org/wiki/CPANAuthorNotes>notes for module authors</a>.";
+# print "Content-type: text/html\015\012\015\012<html><body><h1>Temporarily off-line</h1><p>Since being linked from search.cpan.org there has been too much traffic for my poor old server. I will be transferring this service to a new server very soon. In the mean time, why not take a look at <a href="http://cpantest.grango.org/">the CPAN-testers' wiki</a> which has HOWTOs on becoming a tester, and some very useful <a href="http://cpantest.grango.org/wiki/CPANAuthorNotes">notes for module authors</a>.</body></html>";
View
19 static/credits.html
@@ -1,21 +1,26 @@
-<html><head><title>CPANdeps: credits</title>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>CPANdeps: credits</title>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="Search module dependencies" />
</head>
<body>
-<p><a href=/>Back to main page</a></p>
+<p><a href="/">Back to main page</a></p>
<h1>Thanks to ...</h1>
<p>... the following people, who have submitted patches:</p>
<ul>
- <li>Ben Bullock, for <a href=https://github.com/DrHyde/CPANdeps/pull/3>code</a>
- to pick a distribution's bugtracker out of META.yml or META.json;
- <li>Olivier Mengu&eacute;, for fixing numerous little HTML niggles, and providing the <a href=http://www.opensearch.org/>OpenSearch</a> cleverness;
- <li>Shlomi Fish, for <a href=https://github.com/DrHyde/CPANdeps/commit/efd75396ed0161dfe6ffacdcee4105308ffe349a>fixing a SQL injection bug</a> and <a href=https://github.com/DrHyde/CPANdeps/commit/2095c3e6b1de33ddd1145a3ec0ca276600b8f9be>improving the reverse dependencies search</a>;
+ <li>Ben Bullock, for <a href="https://github.com/DrHyde/CPANdeps/pull/3">code</a>
+ to pick a distribution's bugtracker out of META.yml or META.json;</li>
+ <li>Olivier Mengu&eacute;, for fixing numerous little HTML niggles, and providing the <a href="http://www.opensearch.org/">OpenSearch</a> cleverness;</li>
+ <li>Shlomi Fish, for <a href="https://github.com/DrHyde/CPANdeps/commit/efd75396ed0161dfe6ffacdcee4105308ffe349a">fixing a SQL injection bug</a> and <a href="https://github.com/DrHyde/CPANdeps/commit/2095c3e6b1de33ddd1145a3ec0ca276600b8f9be">improving the reverse dependencies search</a>;</li>
</ul>
<p>The design is by <a href="http://www.scriptedpixels.co.uk/">Kam Banwait</a>,
design time donated by <a href="http://www.foxtons.co.uk/">Foxtons</a>.</p>
-</body></html>
+</body>
+</html>
View
16 static/links.html
@@ -1,15 +1,19 @@
-<html><head><title>CPANdeps: links</title>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<title>CPANdeps: links</title>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="Search module dependencies" />
</head>
<body>
-<p><a href=/>Back to main page</a></p>
+<p><a href="/">Back to main page</a></p>
<h1>Links to related nifty stuff</h1>
<dl>
- <dt>A Greasemonkey script
- <dd><a href="http://use.perl.org/use.perl.org/article841a.html">http://use.perl.org/article.pl?sid=07/12/15/1931244 (archived)</a>
- <dt>More greasy monkeys
- <dd><a href=http://userscripts.org/scripts/show/21779>http://userscripts.org/scripts/show/21779</a>
+ <dt>A Greasemonkey script</dt>
+ <dd><a href="http://use.perl.org/use.perl.org/article841a.html">http://use.perl.org/article.pl?sid=07/12/15/1931244 (archived)</a></dd>
+ <dt>More greasy monkeys</dt>
+ <dd><a href="http://userscripts.org/scripts/show/21779">http://userscripts.org/scripts/show/21779</a></dd>
</dl>
</body></html>
View
19 static/overall-chance.html
@@ -1,9 +1,13 @@
-<html><head><title>CPAN dependencies and test results checker: A Brief Note On Statistics</title>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>CPAN dependencies and test results checker: A Brief Note On Statistics</title>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="Search module dependencies" />
</head>
<body>
- <p><a href=javascript:history.go(-1)>Back to dependency tree</a>
+ <p><a href="javascript:history.go(-1)">Back to dependency tree</a>
</p>
<h1>A Brief Note on Statistics</h1>
<p>The "chance of all tests passing" at the bottom of each set of results
@@ -16,14 +20,15 @@
machines because they've been set up in peculiar ways, or because of
faults such as running out of memory or disk space.
</p>
- <p>I could take account of that in my calculations, but:
- <ul><li>it would take a long time to calculate;
- <li>it would require writing some vaguely hairy code;
- <li>I can't be arsed
+ <p>I could take account of that in my calculations, but:</p>
+ <ul><li>it would take a long time to calculate;</li>
+ <li>it would require writing some vaguely hairy code;</li>
+ <li>I can't be arsed</li>
</ul>
+ <p>
If you feel that this is a particularly important metric, then
please feel free to
- <a href=https://github.com/DrHyde/CPANdeps/issues/new>submit a
+ <a href="https://github.com/DrHyde/CPANdeps/issues/new">submit a
'pull' request</a>.
</p>
</body></html>
View
27 static/purity.html
@@ -1,22 +1,28 @@
-<html><head><title>CPAN dependencies and test results checker: How do purity warnings work?</title>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>CPAN dependencies and test results checker: How do purity warnings work?</title>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="Search module dependencies" />
</head>
<body>
- <p><a href=javascript:history.go(-1)>Back to main page</a></p>
+ <p><a href="javascript:history.go(-1)">Back to main page</a></p>
<h1>A Brief Note on Purity warnings</h1>
<p>Some modules, as well as depending on other perl modules, also have
non-perl components. To build these modules you normally need a
- working compiler.
+ working compiler.
</p>
<p>I detect these modules by looking both at their dependencies and their
MANIFEST file (which should contain a list of all files in a distribution,
- such as <a href=http://search.cpan.org/src/TIMB/DBI-1.607/MANIFEST>here</a>).
+ such as <a href="http://search.cpan.org/src/TIMB/DBI-1.607/MANIFEST">here</a>).
If a distribution depends on any of the
- <a href=http://search.cpan.org/search?query=Inline&mode=all>Inline</a>
+ <a href="http://search.cpan.org/search?query=Inline&amp;mode=all">Inline</a>
modules, or if it contains any files with any of the following extensions,
then it is assumed to not be "pure perl".
- <ul><li>swg<li>xs<li>c<li>h<li>i</ul>
+ </p>
+ <ul><li>swg</li><li>xs</li><li>c</li><li>h</li><li>i</li></ul>
+ <p>
However if the string "PurePerl" appears anywhere in the MANIFEST, then
I assume that there is a "pure perl" version *as well as* any "impure"
version of the code, bundled up in the same distribution.
@@ -24,16 +30,17 @@
<p>This is, of course, only a heuristic. You can't accurately determine
a file's content from its filename. Possible errors from this heuristic
include:
+ </p>
<ul>
<li>the "pure" version has some other name - eg, Params::ValidatePP
(but looking for the PP suffix will just lead to other errors, with
- modules like PDL::PP or Inline::CPP)
+ modules like PDL::PP or Inline::CPP)</li>
<li>a .c file might, for example, be used to test a module. An
example of this is Text::CPP (where PP stands for pre-processor,
- not pure-perl; although in this case, the module isn't "pure" anyway)
+ not pure-perl; although in this case, the module isn't "pure"
+ anyway)</li>
<li>A perl file might contain C (or some other language) source in
a string, and build and run it in some crazy non-XS, non-Inline
- way
+ way</li>
</ul>
- </p>
</body></html>
View
6 templates/cpandeps.tt2
@@ -96,13 +96,13 @@ pageTracker._trackPageview();
<th align="right"><label for="perl">Perl</label></th>
<td><select id="perl" name="perl">
[% FOREACH thisperl = perls %]
- <option value="[% thisperl %]" [% IF thisperl == perl %] selected="selected" [% END %]>[% thisperl %]
+ <option value="[% thisperl %]" [% IF thisperl == perl %] selected="selected" [% END %]>[% thisperl %]</option>
[% END %]
</select></td>
<th align="right"><label for="os">OS</label></th>
<td><select id="os" name="os">
[% FOREACH thisos = oses %]
- <option value="[% thisos %]" [% IF thisos == os %] selected="selected" [% END %]>[% thisos %]
+ <option value="[% thisos %]" [% IF thisos == os %] selected="selected" [% END %]>[% thisos %]</option>
[% END %]
</select></td>
</tr>
@@ -248,7 +248,7 @@ pageTracker._trackPageview();
<br/><br/>Hosted on <a href="http://www.uk2.net/dedicated-servers/">dedicated servers</a> from UK2.net
- <br clear="both"/>
+ <br clear="all"/>
[% debug.replace("\n","<br/>").replace(" ","&nbsp;"); %]
</div>
View
4 templates/depended-on-by.tt2
@@ -10,8 +10,8 @@
<h1> CPAN Dependencies </h1>
<div id="menu">
- <a href="https://github.com/DrHyde/CPANdeps" class="first">Source code</a>
- <a href=https://github.com/DrHyde/CPANdeps/issues/new>Report a bug in this site</a>
+ <a href="https://github.com/DrHyde/CPANdeps" class="first">Source code</a>
+ <a href="https://github.com/DrHyde/CPANdeps/issues/new">Report a bug in this site</a>
<a href="/static/credits.html">Credits</a>
<a href="depended-on-by.pl">Reverse lookup</a>
<a href="static/links.html" class="last">Links</a>
View
4 templates/moduleresult.tt2
@@ -5,7 +5,7 @@
<td valign="top"><nobr>
[% FOREACH x = [1 .. module.indent] %]&nbsp;&nbsp;&nbsp;&nbsp;[% END %]
[% IF module.name == reqmodule %]
- <a title="[% module.name %]'s META.yml file" href=http://search.cpan.org/src/[% module.author %]/[% module.distname %]-[% module.version %]/META.yml>[% module.name %]</a>
+ <a title="[% module.name %]'s META.yml file" href="http://search.cpan.org/src/[% module.author %]/[% module.distname %]-[% module.version %]/META.yml">[% module.name %]</a>
[% ELSE %]
<a title="[% module.name %]'s dependency tree" href="?module=[% module.name %];perl=[% perl %];os=[% os | uri %];pureperl=[% pureperl %]">[% module.name %]</a>
[% END %]
@@ -17,7 +17,7 @@
</nobr>
</td>
<td valign="top"><nobr>
- <a title="search.cpan.org" href=http://search.cpan.org/search?query=[% module.distname %]&mode=all><img src="static/search.png" width="20" height="20" /></a>
+ <a title="search.cpan.org" href="http://search.cpan.org/search?query=[% module.distname %]&amp;mode=all"><img src="static/search.png" width="20" height="20" /></a>
[%- bugtracker = module.parsed_meta.resources.bugtracker.web ||
module.parsed_meta.resources.bugtracker
%]
Please sign in to comment.
Something went wrong with that request. Please try again.