HTML 4.01

Well, looks like we have a new version of HTML to consider, which also
involve new DTDs.  I guess I'll start the ball rolling with these new
defines for html.h:

#define VERS_UNKNOWN          0

#define VERS_HTML20           1
#define VERS_HTML32           2
#define VERS_HTML40_STRICT    4
#define VERS_HTML40_LOOSE     8
#define VERS_HTML40_FRAMES   16
#define VERS_HTML401_STRICT  32
#define VERS_HTML401_LOOSE   64
#define VERS_HTML401_FRAMES 128
#define VERS_XML            256

#define VERS_NETSCAPE       512
#define VERS_MICROSOFT     1024
#define VERS_SUN           2048

#define VERS_MALFORMED     4096

#define VERS_FRAMES (VERS_HTML40_FRAMES|VERS_HTML401_FRAMES)
#define VERS_HTML40 (VERS_HTML40_STRICT|VERS_HTML40_LOOSE|VERS_HTML40_FRAMES)
#define VERS_HTML401 (VERS_HTML401_STRICT|VERS_HTML401_LOOSE|VERS_HTML401_FRAMES)
#define VERS_HTML4X (VERS_HTML40|VERS_HTML401)
#define VERS_ALL (VERS_HTML20|VERS_HTML32|VERS_HTML4X)
#define VERS_LOOSE (VERS_HTML32|VERS_HTML40_LOOSE|VERS_HTML401_LOOSE|VERS_FRAMES)
#define VERS_IFRAMES (VERS_HTML40_LOOSE|VERS_HTML401_LOOSE|VERS_FRAMES)
#define VERS_FROM32  (VERS_HTML40_STRICT|VERS_HTML401_STRICT|VERS_LOOSE)
#define VERS_PROPRIETARY (VERS_NETSCAPE|VERS_MICROSOFT|VERS_SUN)

#define VERS_EVERYTHING (VERS_ALL|VERS_PROPRIETARY)


More changes are necessary in other files than the above in html.h.

A distinguishing characteristic between HTML40 and HTML401 at the tag
level is a MAP with both AREA and %block; markup.  A new ParseMap
routine will be needed so we can disambiguify those DTDs.

There are more at the attribute level, but HTML Tidy does weak attribute
checking, and no new attribute names were added to the dictionary.  HTML
Tidy will need stronger attribute checking (at the least making sure the
right attributes go with the right tags).

HTML 4.01 is very important to those who want validation as well as
backwardly-compatible Javascript effects.  You can now have the needed
NAME attributes, and tags can have redundant ID and NAME attributes as
long as they have the same value.

-- 
         ,=<#)-=#  <http://www.war-of-the-worlds.org/>
    ,_--//--_,
 _-~_-(####)-_~-_  "Did you see that Parkins boy's body in the tunnels?" "Just
(#>_--'~--~`--_<#)  the photos.  Worst thing I've ever seen; kid had no face."

Received on Friday, 27 August 1999 12:51:53 UTC