W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2002

DOM-2 HTML Module Property Types - Treatment of CDATA vs NUMBER DTD Types

From: Glenn A. Adams <glenn@xfsi.com>
Date: Fri, 20 Sep 2002 20:49:25 -0400
Message-ID: <7249D02C4D2DFD4D80F2E040E8CAF37C01969A@longxuyen.xfsi.com>
To: <www-dom@w3.org>


I just noticed that the DOM-2 HTML Spec of June 5, in Section 1.6.1, indicates that the DOM type which corresponds to CDATA is DOMString and the type which corresponds to NUMBER is long int.

This results in an inconsistency based on certain proposed changes from DOM-1 to DOM-2. In particular, the following properties have been assigned in integral type, yet are specified in the HTML/XHTML DTDs as CDATA:

HTMLInputElement	- size
HTMLImageElement	- border, height, hspace, width, vspace

I believe these should be reverted to the use of DOMString as specified in DOM-1, and that implementations (IE, Mozilla) be brought into conformance with this definition. [As an aside, changing HTMLImageElement to use integral types for the above properties creates an additional inconsistency with HTMLAppletElement and HTMLObjectElement for similarly named properties; reverting to DOMString would eliminate this inconsistency.]

Regards,
Glenn Adams
Received on Friday, 20 September 2002 20:44:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT