W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: DOM2-HTML: HTMLTableElement

From: Philippe Le Hegaret <plh@w3.org>
Date: 22 Mar 2002 16:21:56 -0500
To: WWW DOM <www-dom@w3.org>
Cc: Thomas Much <thomas@snailshell.de>
Message-Id: <1016832116.632.65.camel@jfouffa>
Thomas Much wrote:
> > In HTMLTableElement there are tFoot, tHead and caption.
> > Why are they *not* readonly?
> 
> I asked this a few days ago. OK, you can create new TFOOT, THEAD and CAPTION
> elements with document.createElement and assign them to one of the
> properties above. But then DOM2-HTML should specify what happens if one
> tries to assign a wrong element type ("raises DOMException on setting, if a
> wrong element is assigned").
> 
> I still think these three properties should be readonly (which would go with
> the current documentation of the properties: "_Returns_ the table's
> CAPTION..."). Any comments?

If the element type is wrong, those attributes will raise a
HIERARCHY_REQUEST_ERR error.

Philippe,
for the DOM WG.
Received on Friday, 22 March 2002 16:22:01 GMT

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