Some problems in WD-html40-971024

Hi,

I found some problems in WD-html40-971024.


1. ALIGN attribute of IFRAME element in HTML4-strict.dtd

In HTML4-strict.dtd, IFRAME has added and defined as follows:

  <!ELEMENT IFRAME - - (%flow;)* -- inline subwindow -->
  <!ATTLIST IFRAME
    %coreattrs;                      -- id, class, style, title --
    longdesc    %URL;      #IMPLIED  -- link to long description --
    name        CDATA      #IMPLIED  -- name of frame for targetting --
    src         %URL;      #IMPLIED  -- source of frame content --
    frameborder (1|0)      1         -- request frame borders? --
    marginwidth %Pixels;   #IMPLIED  -- margin widths in pixels --
    marginheight %Pixels;  #IMPLIED  -- margin height in pixels --
    scrolling (yes|no|auto) auto     -- scrollbar or none --
    align       %IAlign;   #IMPLIED  -- vertical or horizontal alignment --
    height      %Length;   #IMPLIED  -- frame height --
    width       %Length;   #IMPLIED  -- frame width --
    >

But %IAlign; is defined nowhere. I think ALIGN attribute should be
deprecated in the strict DTD, or if it's really necessary, the
following entity definition should be added, like the loose DTD.

  <!ENTITY % IAlign "(top|middle|bottom|left|right)"  -- center? -->


2. NOFRAMES in HTML4-strict.dtd

I think it's a good thing that NOFRAMES element has added even in the
strict DTD, but its definition seems curious. It is defined as follows:

  <![ %HTML.Frameset; [
  <!ENTITY % noframes.content "(BODY) -(NOFRAMES)">
  ]]>

  <!ENTITY % noframes.content "(%flow;)*">

  <!ELEMENT NOFRAMES - - %noframes.content;
   -- alternate content container for non frame-based rendering -->
  <!ATTLIST NOFRAMES
    %attrs;                          -- %coreattrs, %i18n, %events --
    >

But in my understanding, strict DTD can't be used for Frameset document,
so the above marked section for %HTML.Frameset; is useless. And also,
it is defined what elements can be included in NOFRAMES, but it is NOT
defined in what element NOFRAMES can be included. So I think

  <!ENTITY % block
       "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
        BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">

should be modified as

  <!ENTITY % block
       "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
        NOFRAMES | BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">


3. Reference to entities in HTML4-strict.dtd and HTML4-loose.dtd

This is really minor issue, but ... in the comment of HTML4-strict.dtd
and HTML4-loose.dtd, it is stated as follows:

      The user agent can then download the DTD and entity sets as needed.
      The following URLs are supported in relation to HTML 4.0

      "http://www.w3.org/TR/WD-html40/sgml/HTML4-strict.dtd" (Strict DTD)
      "http://www.w3.org/TR/WD-html40/sgml/HTML4-loose.dtd" (Loose DTD)
      "http://www.w3.org/TR/WD-html40/sgml/HTML4-frameset.dtd" (Frameset DTD)
      "http://www.w3.org/TR/WD-html40/sgml/ISOlat1.ent" (Latin-1 entities)
      "http://www.w3.org/TR/WD-html40/sgml/HTMLsymbol.ent" (Symbol entities)
      "http://www.w3.org/DTD/HTMLspecial.ent" (Special entities)

Why the URL of only last one is remained as "http://www.w3.org/DTD/..." ?
And, though the following entities are defined,

  <!--================ Character mnemonic entities =========================-->

  <!ENTITY % HTMLlat1 PUBLIC
     "-//W3C//ENTITIES Latin1//EN//HTML"
     "http://www.w3.org/DTD/ISOlat1.ent">
  %HTMLlat1;

  <!ENTITY % HTMLsymbol PUBLIC
     "-//W3C//ENTITIES Symbols//EN//HTML"
     "http://www.w3.org/DTD/HTMLsymbol.ent">
  %HTMLsymbol;

  <!ENTITY % HTMLspecial PUBLIC
     "-//W3C//ENTITIES Special//EN//HTML"
     "http://www.w3.org/DTD/HTMLspecial.ent">
  %HTMLspecial;

all of them are referencing "http://www.w3.org/DTD/...". Which is
the canonical URL? 

And also, the filename of so-called "HTMLsymbol.ent" remains
"HTMLsym.ent", and the filename of "HTMLspecial.ent" remains
"HTMLmisc.ent". It is ambiguous, so I think it's better to be
corrected.

-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium

Received on Monday, 27 October 1997 02:09:31 UTC