home *** CD-ROM | disk | FTP | other *** search
-
- Weblint, Version 1.014
-
- Copyright (c) 1994, 1995, 1996 Neil Bowers. All rights reserved.
- Khoral Research, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the "Artistic License". You should have received
- a copy of the Artistic License with this distribution, in the file named
- "Artistic". If not, I'll be glad to provide one.
-
- --------------------------------------------------------------------------
-
- Weblint is a syntax and minimal style checker for HTML: a perl script which
- picks fluff off html pages, much in the same way traditional lint picks fluff
- off C programs. Files to be checked are passed on the command-line:
-
- % weblint *.html
-
- Warnings are generated a la lint -- <filename>(line #): <warning>. E.g.:
-
- home.html(9): malformed heading - open tag is <H1>, but closing is </H2>
-
- The following checks are currently performed:
-
- * basic structure
- * unknown elements and element attributes.
- * context checks (where a tag must appear within a certain element).
- * overlapped elements.
- * expects to see a TITLE in the HEAD element.
- * do IMG elements have ALT text?
- * illegally nested elements.
- * mis-matched tags (e.g., <H1> ... </H2>)
- * unclosed elements (e.g., <H1> ... )
- * catches elements which should only appear once
- * flags obsolete elements.
- * odd number of quotes in tag.
- * order of headings.
- * potentially unclosed tags.
- * flags markup embedded in comments --- this can confuse some browsers.
- * whines if you use `here' as anchor text :-)
- * tags where attributes are expected (e.g. anchors).
- * existence of local anchor targets.
- * flag case of tags (not enabled by default).
- * expect a <LINK REV=MADE HREF=mailto:...> in HEAD element
- (not enabled by default).
- * supports HTML 3 elements, such as TABLE, MATH, FIG and the rest.
- * leading and trailing whitespace in certain container elements (eg A).
- * optional support for the java APPLET and PARAM elements.
-
- All warnings can be enabled or disabled, using a configuration file,
- $HOME/.weblintrc. A sample configuration file, weblintrc, is included
- in the distribution.
-
- --------------------------------------------------------------------------
-
- Installation
-
- NOTE: Certain versions of perl have bugs which are triggered by weblint.
- You shouldn't experience problems if you have 4.036, or 5.001m.
-
- A simple Makefile is provided, in which you may want to modify BINDIR
- and MANDIR, which specify where the weblint script and manpage should
- be installed.
-
- Weblint uses the `newgetopt.pl' and `find.pl' libraries, which are part
- of the standard perl library, so this will hopefully not cause any problems.
- Please let me know if it does.
-
- The manpage (weblint.1) should be installed in a directory where it
- will be picked up by man (e.g., /usr/local/man/man1 on our machines).
- A postscript version of the manpage (weblint.ps) is available at:
- http://ftp.khoral.com/pub/weblint/weblint.ps
-
- Weblint is available via anonymous ftp, either as a gzip'd tar file,
- or zip'd archive:
- ftp://ftp.khoral.com/pub/weblint/weblint-1.014.tar.gz
- ftp://ftp.khoral.com/pub/weblint/weblint.zip
- or you can get it from the weblint home page:
- http://www.khoral.com/staff/neilb/weblint.html
-
- The weblint distribution includes a simple regression testsuite.
- Run the testsuite with either of the following commands:
-
- % make test
- % ./test.pl
-
- If any of the tests fail, please mail the logfile (weblint-test.log) to me.
-
- --------------------------------------------------------------------------
-
- I hope you find this useful. Comments, suggestions and bug reports are
- welcome, see my email address or home page, given below. Sample html
- helps when tracking down problems.
-
- I maintain two email lists:
-
- weblint-announce@khoral.com
- Announcements for new versions of weblint.
-
- weblint-victims@khoral.com
- Discussion related to weblint (such as what features
- should be added), as well as announcements for new
- versions of weblint, and pre-release testing.
-
- Email me if you want to be added to either list.
-
- Neil Bowers
- Khoral Research, Inc.
- <neilb@khoral.com> http://www.khoral.com/staff/neilb/
-