Re: Tags lacking a terminating '>' are spotted

On Thu, 14 Feb 2002, Richard A. O'Keefe wrote:

> Why on _earth_ would the SGML designers make this entirely harmless feature
> depend on SHORTTAG?  As far as I can see, the only benefit is to make SGML
> parsers slower (because they'd have to make an otherwise unnecessary check
> of SHORTTAG) and to link this feature with an extremely dangerous one (<>).
>
> However, the fact that they _are_ linked means that people who develop
> HTML pages using an SGML parser to check them for validity (like me) still
> need to use HTML Tidy to check that <>, </>, <x//, <x<y> and so on are not
> used, because an SGML parser won't complain about them.

In the case of nsgmls, it will complain if you use -wmin-tag on the
command line.  The WDG HTML Validator [*] uses this when warnings are
enabled.

[*] http://www.htmlhelp.com/tools/validator/

-- 
Liam Quinn

Received on Wednesday, 13 February 2002 18:34:19 UTC