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

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