W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] Attaching option elements to select elements in different documents

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 7 Apr 2010 23:56:57 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1004072356110.4772@ps20323.dreamhostps.com>
On Wed, 3 Mar 2010, Stewart Brodie wrote:
> 
> The algorithm in the HTML5 specification for attaching an option element 
> to a select element is incomplete, because it doesn't describe how to 
> handle the case where the option element does not belong to the same 
> document as the select element.
> 
> It seems that HTMLOptionElement objects are immune to WRONG_DOCUMENT_ERR 
> exceptions on any tree modifications.

It's intended that this be the case for every DOM change. A future version 
of DOM Core will likely drop this exception altogether.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 7 April 2010 16:56:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC