- 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>
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 UTC