W3C home > Mailing lists > Public > public-html@w3.org > August 2007

Re: Reflecting attributes: HTMLElement (detailed review of the DOM)

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 1 Aug 2007 05:00:41 +0000 (UTC)
To: Simon Pieters <simonp@opera.com>
Cc: public-html <public-html@w3.org>
Message-ID: <Pine.LNX.4.64.0708010500170.9342@dhalsim.dreamhost.com>

On Mon, 16 Jul 2007, Simon Pieters wrote:
> (This is part of my detailed review of the Document Object Model section.)
> The spec says about setting a reflecting attribute of type HTMLElement (or an
> descendant thereof):
>   On setting, if the given element has an id attribute, then the content
>   attribute must be set to the value of that id attribute. Otherwise, the
>   DOM attribute must be set to the empty string.
> Shouldn't it raise an exception if the value isn't type-compatible with the
> DOM attribute? (e.g., .contextMenu would only accept HTMLMenuElement.)

Yes, but presumably this happens at a higher layer (e.g. the DOM Bindings 
for ES4 specification).

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 1 August 2007 05:00:53 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:25 UTC