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

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

From: Philippe Le Hegaret <plh@w3.org>
Date: 24 Sep 2002 13:31:35 -0400
To: "Glenn A. Adams" <glenn@xfsi.com>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1032888695.10620.185.camel@jfouffa>

On Fri, 2002-09-20 at 20:49, Glenn A. Adams wrote:
> 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
> 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.

I disagree. DOM Level 1 HTML failed to fulfil its contracts of not
breaking the backward compatiblity with DOM Level 0. This comment was
brought to our attention in at the end of 2000 and we already made the
commitment to fix that. I don't think it's wise to revert the decision.
width and height are numbers in DOM0, therefore we cannot change them
back to numbers unless we expose them in a different way. It is clearly
stated that DOM Level 2 HTML is _not_ backward compatible with DOM Level

Received on Tuesday, 24 September 2002 13:31:37 UTC

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