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.]

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

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:10 UTC