#
# sample configuration file for weblint
# distributed as part of weblint 1.005
#
# the setting in this file reflect the built-in defaults
#

#------------------------------------------------------------------------
# There are two checks for the case of element tags:
#	upper-case	all tags should be in upper case
#	lower-case	all tags should be in lower case
# If both are disabled, then case is ignored
#------------------------------------------------------------------------
disable upper-case lower-case

#------------------------------------------------------------------------
# Bad style to use `here' as anchor text
#------------------------------------------------------------------------
enable here-anchor

#------------------------------------------------------------------------
# Flag any elements which are not recognized.  This will catch mis-typed
# elements (e.g. <TOTLE>, or <\BODY>).
#------------------------------------------------------------------------
enable unknown-element

#------------------------------------------------------------------------
# check element attributes to see if they are legal
#------------------------------------------------------------------------
enable unknown-attribute

#------------------------------------------------------------------------
# flag if no HEAD element in page
#------------------------------------------------------------------------
enable require-head

#------------------------------------------------------------------------
# Flag elements which should only appear once on a page (eg TITLE)
#------------------------------------------------------------------------
enable once-only

#------------------------------------------------------------------------
# Flag case where page has BODY element, but no HEAD defined
#------------------------------------------------------------------------
enable body-no-head

#------------------------------------------------------------------------
# If you want outer element to be <HTML>
#------------------------------------------------------------------------
enable html-outer

#------------------------------------------------------------------------
# Flag elements which are only allowed to appear in HEAD element
#------------------------------------------------------------------------
enable head-element

#------------------------------------------------------------------------
# Flag elements which aren't allowed to appear in HEAD element
#------------------------------------------------------------------------
enable non-head-element

#------------------------------------------------------------------------
# list item (LI) can only appear in OL, UL, DIR, or MENU
#------------------------------------------------------------------------
enable list-item

#------------------------------------------------------------------------
# Flag obsolete elements, such as XMP and LISTING
#------------------------------------------------------------------------
enable obsolete

#------------------------------------------------------------------------
# Flag mis-matched begin and end tags;  for example:
#	<H1> ... </H2>
#------------------------------------------------------------------------
enable mis-match

#------------------------------------------------------------------------
# Flag any IMG elements which don't have ALT text defined.
#------------------------------------------------------------------------
enable img-alt

#------------------------------------------------------------------------
# Flag illegally nested elements (such as anchors).
#------------------------------------------------------------------------
enable nested-element

#------------------------------------------------------------------------
# DL and DT are only allowed to appear in DL element (definition list).
#------------------------------------------------------------------------
enable defn-list-elements

#------------------------------------------------------------------------
# Check for those elements which are only allowed to appear within a FORM
#------------------------------------------------------------------------
enable form-item

#------------------------------------------------------------------------
# OPTION element can only appear within SELECT element.
#------------------------------------------------------------------------
enable select-option

#------------------------------------------------------------------------
# Check for mailto: LINK in header;  for example:
#	<LINK REV=MADE HREF="mailto:neilb@khoros.unm.edu">
# This lets at least lynx users comment on a page.
#------------------------------------------------------------------------
disable mailto-link

#------------------------------------------------------------------------
# Flag overlapped elements.  For example:
#	<A HREF="..."> <B> text </A> </B>
#------------------------------------------------------------------------
enable element-overlap

#------------------------------------------------------------------------
# Generate a warning if closing tag is not seen for elements where
# it is expected.  A common case is <A NAME="..."> ... </A>.
#------------------------------------------------------------------------
enable unclosed-element

#------------------------------------------------------------------------
# Generate a warning if markup appears inside a comment.  This can
# confuse quite a few browsers, so it's not a good idea to do it.
#------------------------------------------------------------------------
enable markup-in-comment

#------------------------------------------------------------------------
# You are not allowed to have any whitespace between the opening
# < and element name.
#------------------------------------------------------------------------
enable leading-whitespace

#------------------------------------------------------------------------
# Flag potentially unclosed tags:
#	< ... < ... >
#------------------------------------------------------------------------
enable unexpected-open

#------------------------------------------------------------------------
# Elements which do not have any required attributes, but for which at
# least one attribute is expected.  Anchors, for example.
#------------------------------------------------------------------------
enable expected-attribute

#------------------------------------------------------------------------
# Required element attributes.  Eg IMG tag must have SRC attribute.
#------------------------------------------------------------------------
enable required-attribute

#------------------------------------------------------------------------
# Currently just checks local links, to see if target file exists.
# disabled at the moment, since it generates bogus warnings if the file
# path included directories.
#------------------------------------------------------------------------
disable bad-link

#------------------------------------------------------------------------
# Check for headings which are more than 1 level deeper than previous.
# Example: <H1> followed by <H3>
#------------------------------------------------------------------------
enable heading-order

#------------------------------------------------------------------------
# Check for odd number of double quotes in tag, to catch things like:
#		<A HREF="url >
#------------------------------------------------------------------------
enable odd-quotes
