By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,835 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,835 IT Pros & Developers. It's quick & easy.

Validating HTML in multiple pages

P: n/a
How are people are validating multiple web pages?

I thought most of my pages were valid so as a first try I used
curl -F up************@index.htm\;type=text/html
http://validator.w3.org/check
with the intention of doing something only about the ones that failed
validation.

Unfortunately rather more of my pages were invalid than I hoped, so I
moved to:
for FILE in $*
do
echo ${FILE}
open -a ${BROWSER}
${VALIDATOR}${URI}${CURRENTDIR}/${FILE};ss=1;outline=1
done
so that I could more easily see the problem.

However I suspect I am missing some much easier method. Any suggestions?

--
http://www.ericlindsay.com
Dec 18 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
In article <NO********************************@freenews.iinet .net.au>,
Eric Lindsay <NO**********@ericlindsay.com> wrote:
However I suspect I am missing some much easier method. Any suggestions?


<http://www.htmlhelp.com/tools/validator/> does site validation. It's by
the WDG and is/was highly thought of. I haven't heard much said about it
recently, but that may change with this post.

leo

--
<http://web0.greatbasin.net/~leo/>
Dec 18 '05 #2

P: n/a
Eric Lindsay wrote:
How are people are validating multiple web pages?


aRealValidator.com

Dec 18 '05 #3

P: n/a
In article <7-******************************@rogers.com>,
C A Upsdell <""cupsdellXXX\"@-@-@XXXupsdell.com"> wrote:
Eric Lindsay wrote:
How are people are validating multiple web pages?


aRealValidator.com


Alas, Windows only, so I can't use it on my Macintosh. A local
validator would be great, but so far the ones I have seen look like they
have complicated installation, and/or require me to run my own web
server (which I feel is a security risk).

--
http://www.ericlindsay.com
Dec 18 '05 #4

P: n/a
In article <le***********************@news.supernews.com>,
Leonard Blaisdell <le*@greatbasin.com> wrote:
<http://www.htmlhelp.com/tools/validator/>


Thank you (and thank Liam Quinn). I had the WDG on my list of
validators to try, but I thought it was basically identical to the W3C
validator so I hadn't used it.

This is much nicer. It has a batch mode, so I can auto generate a list
of pages to check (I hope eventually a very small list).

Plus it has an option to validate an entire site! Wow. I better clean
up my site a lot more before I try that one.

--
http://www.ericlindsay.com
Dec 18 '05 #5

P: n/a
In article <NO********************************@freenews.iinet .net.au>,
Eric Lindsay <NO**********@ericlindsay.com> wrote:
Alas, Windows only, so I can't use it on my Macintosh. A local
validator would be great, but so far the ones I have seen look like they
have complicated installation, and/or require me to run my own web
server (which I feel is a security risk).


BBEdit has full validation but it isn't cheap.

leo

--
<http://web0.greatbasin.net/~leo/>
Dec 19 '05 #6

P: n/a
Eric Lindsay wrote:
A local validator would be great, but so far the ones I have seen look
like they have complicated installation, and/or require me to run my own
web server (which I feel is a security risk).


IIRC, OS X has a built-in firewall. Just restrict port 80 access to
127.0.0.1.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Dec 19 '05 #7

P: n/a
In article <le***********************@news.supernews.com>,
Leonard Blaisdell <le*@greatbasin.com> wrote:
BBEdit has full validation but it isn't cheap.


So it does. I wonder whether that is their own local version, or
whether they build in the WDG one?

However that makes me wonder whether the free Text Wrangler from the
nice people at BBEdit could use the W3C HTML online validator. If I
used the AppleScript plus Perl in the TW scripts folder technique John
Gruber used to add the W3C CSS validator to BBEdit and TextWrangler?
http://daringfireball.net/projects/csschecker/ I keep forgetting I am
online all the time now, and can use online resources as if they were
local.

--
http://www.ericlindsay.com
Dec 19 '05 #8

P: n/a
On Mon, 19 Dec 2005, Eric Lindsay wrote:
A local validator would be great, but so far the ones I have seen
look like they have complicated installation, and/or require me to
run my own web server
Which is probably a good idea for other reasons too. If you're
running OS X, then (as I understand it second-hand), it's trivial to
install a ready-packaged version of Apache with a safe initial
configuration. Look around for exact recipes - this is just to the
best of my knowledge.
(which I feel is a security risk).


Potentially, it could be, yes; but if you make sure that the
configuration permits access only from 127.0.0.1 (localhost) then it's
hard to see how anything could go wrong. For double safety, if you
have a firewall, then filter-out incoming access to port 80 (and any
other ports which you decide to switch on in your Apache) on all
external interfaces.

At least, do that as a starting move - later you might want to get a
bit more ambitious, and allow access from specific client addresses,
but that's beyond the scope of this discussion.

cheers

--

Since XP SP2, you have the option: of having your Windows dangerously
open, or uselessly shut. -- Richard Bos in the Monastery
Dec 20 '05 #9

P: n/a
In article <Pi*******************************@ppepc56.ph.gla. ac.uk>,
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote:
On Mon, 19 Dec 2005, Eric Lindsay wrote:
A local validator would be great, but so far the ones I have seen
look like they have complicated installation, and/or require me to
run my own web server
Which is probably a good idea for other reasons too. If you're
running OS X, then (as I understand it second-hand), it's trivial to
install a ready-packaged version of Apache with a safe initial
configuration. Look around for exact recipes - this is just to the
best of my knowledge.


I take it the "good idea" refers to having a validator, rather than
having a complicated installation?

Yes, in OS X, Apache is pre-installed and pre-configured. You merely
open System Preferences, Sharing, Services (if that tab isn't the
default) and tick the box for Web Sharing (you may have to also tick the
same box in Firewall, the next tab). Anything you put in
/Library/WebServer/Documents will be served. I tried it back in the
days when I only had phone dialup access (with the phone line
disconnected), and it worked fine.
(which I feel is a security risk).


Potentially, it could be, yes; but if you make sure that the
configuration permits access only from 127.0.0.1 (localhost) then it's
hard to see how anything could go wrong.


I agree, it is hard to see how anything can go wrong. However as I am
not an authority on security, just because I can't see the problem does
not mean it doesn't exist. Sometime, if one of my friends who is an
authority on security visits for a few days, I might reconsider that.
For double safety, if you
have a firewall, then filter-out incoming access to port 80 (and any
other ports which you decide to switch on in your Apache) on all
external interfaces.
The firewall on my router is already set up that way. Plus I run my
system from one of my Standard accounts, not an Administrator account
(and the root account is not even enabled). I am thinking very
seriously about moving all my Internet related activity to my Internet
user account, and disconnecting from the internet when using my main
account. I realise many people think my attitude towards internet
security is paranoid, but that is what makes me comfortable when using
the internet. There have been no major malware attacks on Macintosh OS
X, but I am convinced the relaxed "it can't happen to me" attitude will
eventually bite people very badly.
At least, do that as a starting move - later you might want to get a
bit more ambitious, and allow access from specific client addresses,
but that's beyond the scope of this discussion.


Luckily it appears WDG http://htmlhelp.org/tools/validator/ actually
have packaged their very nice validator to run without requiring a web
server, at least in one configuration. No Macintosh version, but the
Linux source code is available. I'll eventually try that for a local
validator.

--
http://www.ericlindsay.com
Dec 20 '05 #10

P: n/a
On Wed, 21 Dec 2005, Eric Lindsay wrote:
In article <Pi*******************************@ppepc56.ph.gla. ac.uk>,
"Alan J. Flavell" <fl*****@ph.gla.ac.uk> wrote:
On Mon, 19 Dec 2005, Eric Lindsay wrote: ....
run my own web server
Which is probably a good idea for other reasons too.


I take it the "good idea" refers to having a validator,


No, the referent of my "which" was the immediately preceding concept,
namely the running of a local web server. The earlier lines (now
snipped) had only been retained to clarify the context.
Yes, in OS X, Apache is pre-installed and pre-configured.


Ah, right. When my colleague did it, he spoke about downloading some
package. Sorry for any misunderstanding - I tried to make it clear
that I was only speaking as an interested bystander.

Dec 21 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.