W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2004

Difference of UI events' attributes in XHTML 1.0 Strict DTD

From: TANAKA Satoko <sako-t@aprico.fujitsu.com>
Date: Mon, 29 Nov 2004 20:25:15 +0900
Message-Id: <200411291123.iATBNtqK020325@aprico.aprico.fujitsu.com>
To: www-html-editor@w3.org
Cc: sako-t@aprico.fujitsu.com

Dear Mr/Ms;

I have a question about XHTML 1.0 Strict/Transitional DTD.

The description of UI events' attributes in XHTML 1.0 Strict DTD is 
different from HTML 4.01.
Could you let me know why they are different?

In XHTML 1.0 Strict DTD
http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict
-------------------------------------------------------
<!-- attributes for common UI events
  onclick     a pointer button was clicked
  ondblclick  a pointer button was double clicked
  onmousedown a pointer button was pressed down
  onmouseup   a pointer button was released
  onmousemove a pointer was moved onto the element
  onmouseout  a pointer was moved away from the element
  onkeypress  a key was pressed and released
  onkeydown   a key was pressed down
  onkeyup     a key was released
-->
<!ENTITY % events
 "onclick     %Script;       #IMPLIED
  ondblclick  %Script;       #IMPLIED
  onmousedown %Script;       #IMPLIED
  onmouseup   %Script;       #IMPLIED
  onmouseover %Script;       #IMPLIED
  onmousemove %Script;       #IMPLIED
  onmouseout  %Script;       #IMPLIED
  onkeypress  %Script;       #IMPLIED
  onkeydown   %Script;       #IMPLIED
  onkeyup     %Script;       #IMPLIED"
  >
-------------------------------------------------------

In the XHTML 1.0 Strict DTD, there is no description of 
"onmouseover". Also the description of "onmousemove" is different 
from HTML 4.01's.

=======================================================
In XHTML 1.0 Strict DTD
http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict
-------------------------------------------------------
onmousemove a pointer was moved onto the element
*There is no description of "onmouseover".
-------------------------------------------------------

=======================================================
In HTML 4.01
http://www.w3.org/TR/html401/interact/scripts.html#adef-onmouseover
-------------------------------------------------------
onmouseover = script [CT] 
The onmouseover event occurs when the pointing device is moved onto an element. This attribute may be used with most elements. 

onmousemove = script [CT] 
The onmousemove event occurs when the pointing device is moved while it is over an element. This attribute may be used with most elements. 
-------------------------------------------------------

I'll be very pleased, if you answer my question.

Thanks,

Satoko Tanaka
Received on Monday, 29 November 2004 13:13:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:54 GMT