W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

Re: Improving the DOM

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 08 Nov 2011 15:37:10 -0700
To: "Jake Verbaten" <raynos2@gmail.com>
Cc: www-dom@w3.org
Message-ID: <op.v4nij8pp64w2qv@annevk-macbookpro.local>
On Tue, 08 Nov 2011 16:22:32 -0700, Jake Verbaten <raynos2@gmail.com>  
wrote:
> On Tue, Nov 8, 2011 at 9:30 PM, Anne van Kesteren <annevk@opera.com>  
> wrote:
>> We introduce these methods on Element, DocumentFragment, and
>> CharacterData:
>
>> before(DocumentContent... nodes)
>> after(DocumentContent... nodes)
>
> What does DocumentFragment before and after do?

Good point, they should not be on DocumentFragment.


>> We introduce this method on Element and CharacterData:
>>
>> replace(DocumentContent... nodes)
>>
>> We introduce this method on DocumentType, Element, and CharacterData:
>>
>> remove()
>
> Why can we remove a DocumentType but not do anything else with it? That
> makes the API anti symmetrical to me

Yeah, lets not introduce it on DocumentType. People should not be using  
DocumentType anyway.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 8 November 2011 23:37:53 GMT

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