[Smaug] HTML validators

David A. Gatwood dgatwood@gatwood.net
Thu Feb 7 17:49:02 2002


On Thu, 7 Feb 2002, Rick Moen wrote:

> Serious pains in the neck, in some cases.  People including me have
> tended to get in the habit of embedding "block" tags such as "P"
> (paragraph) inside "inline" tag-pairs like "EM" and "STRONG" (or, in
> David A. Gatwood's case, "FONT".)  This is a big no-no:  Inline tags
> are supposed to be closely attached to the text they concern -- within
> a single block.

Yeah.  The problem is, somebody got a bug up their you-know-what to make
HTML comply with SGML, and the inline nature of EM, STRONG, and FONT are
unfortunate side-effects, leading to the creation of such god-awful things
as CSS and </P>.  :-p


> Also, the validators seriously dislike certain tags being in the
> neighbourhood of the first LI (list item) tag following a UL (unordered
> list) one.  If you have a <A NAME="foo"></A> pair immediately before or
> after that LI, e.g. in the descriptions of groups in the bottom section
> of BALE, the validator will give you a cryptic error suggesting
> it can't find the UL to which it relates.  You have to move the NAME
> pair a bit lower.  

That would be a parser bug, I would think.


> Its most grievous fault is that it says nothing about the use of
> template.html, and the *.sub files' role and how they're invoked via
> "#include virtual" directives.  If you're ever inspired, you can 
> open that "How to Work on..." document for editing, and say a few 
> things.

That's definitely on my short list.  I've been up to my neck in catch-up
this week (which I guess is better than being up to my neck in ketchup,
but not much.... ;-)  I'll do some site maintenance as soon as I have a
few minutes, which will be at the latest, this weekend.  I'll add to that
document at that time.


Later,
David

---------------------------------------------------------------------
                    Check out my weekly web comic:
                     http://www.techmagazine.org