Re: [Q] about sample program "showtags"

On Wed, 11 Aug 1999, ¾È±¤¸² wrote:
> I have run showtags with following input html stream.
> ------------------------------------
> <body onload="loading()" topmargin="0" leftmargin="0" MARGINWIDTH="0" MARGINHEIGHt="0" bgcolor="#ffffff">
> ------------------------------------
> I got following result.
> ------------------------------------
> Begin element: <BODY> with attributes: BGCOLOR="#ffffff" 
> ------------------------------------
> 
> As a result, showtags missed five other attributes. huh?

These attributes are not included in the DTD structure
(don't know why, maybe because some of them are not standard, i.e.
Microsoft only).
Look at a file : http://www.w3.org/Library/src/HTMLPDTD.html, there are
the following attributes for the BODY tag:

enum _HTML_BODY_Attributes {
        HTML_ATTR(BODY,ALINK) = 0,
        HTML_ATTR(BODY,BACKGROUND),
        HTML_ATTR(BODY,BGCOLOR),
        HTML_ATTR(BODY,CLASS),
        HTML_ATTR(BODY,DIR),
        HTML_ATTR(BODY,ID),
        HTML_ATTR(BODY,LANG),
        HTML_ATTR(BODY,LINK),
        HTML_ATTR(BODY,STYLE),
        HTML_ATTR(BODY,TEXT),
        HTML_ATTR(BODY,TITLE),
        HTML_ATTR(BODY,VLINK),
        HTML_ATTRIBUTES(BODY)
};

Evguenii

Received on Thursday, 12 August 1999 03:21:28 UTC