Re: Doubt about intrinsic events

 > >What's the discrepancy? Which phrases in 17.6.1 and 18.2.3 are you talking
 > >about?
 > >
 > >
 > >
 > >Bye,
 > >
 > > Stefan.
 > 
 > In the list of attributes defined elsewhere for the OPTGROUP element
 > (17.6.1), there are "onblur", "onchange" and "onfocus". But in the 18.2.3
 > paragraph, for example about "onfocus" and "onchange", OPTGROUP is not
 > listed between the elements that may use those attributes. This is,
 > according to us, the discrepancy.
 > 
 > Bye,
 > Michele
---------


Oh yes, I see the problem. I think 18.2.3 is correct since the
attlist-definition for OPTGROUP is

<!ATTLIST OPTGROUP
  %attrs;                              -- %coreattrs, %i18n, %events --
  disabled    (disabled)     #IMPLIED  -- unavailable in this context --
  label       %Text;         #REQUIRED -- for use in hierarchical menus --
  >

ans %events are defined as 

<!ENTITY % events
 "onclick     %Script;       #IMPLIED  -- a pointer button was clicked --
  ondblclick  %Script;       #IMPLIED  -- a pointer button was double clicked--
  onmousedown %Script;       #IMPLIED  -- a pointer button was pressed down --
  onmouseup   %Script;       #IMPLIED  -- a pointer button was released --
  onmouseover %Script;       #IMPLIED  -- a pointer was moved onto --
  onmousemove %Script;       #IMPLIED  -- a pointer was moved within --
  onmouseout  %Script;       #IMPLIED  -- a pointer was moved away --
  onkeypress  %Script;       #IMPLIED  -- a key was pressed and released --
  onkeydown   %Script;       #IMPLIED  -- a key was pressed down --
  onkeyup     %Script;       #IMPLIED  -- a key was released --"
  >

But you're right, in 17.6.1 there are too many attributes listed for OPTGROUP:

Attributes defined elsewhere 

      id, class (document-wide identifiers) 
      lang (language information), dir (text direction) 
      title (element title) 
      style (inline style information) 
      disabled (disabled input controls) 
      onfocus, onblur, onchange, onclick, ondblclick, onmousedown, onmouseup, onmouseover,
      onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)



Michele, I think you should direct your question to www-html-editor@w3.org as
mentioned in the HTML spec.

A similar mistake is already listed in the errata:
http://www.w3.org/MarkUp/html40-updates/REC-html40-19980424-errata.html



Bye,

 Stefan.

+-----------------------------------------------------------+
  Stefan Mintert
       UniDo:    mintert@irb.informatik.uni-dortmund.de
       private:  stefan@mintert.com
       WWW:      http://www.informatik.uni-dortmund.de/~sm/
+-----------------------------------------------------------+

        "let the music keep our spirits high..."

                                (Jackson Browne)

Received on Monday, 15 June 1998 09:16:27 UTC