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

Improving the DOM

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 08 Nov 2011 14:30:10 -0700
To: www-dom@w3.org
Message-ID: <op.v4nfgk0x64w2qv@annevk-macbookpro.local>
Here is a revised proposal based on Ojan's earlier proposal to this list.  
These new methods are subject to compatibility testing.

We introduce a DocumentContent union type (DOMString maps to a Text node):

DOMString | CharacterData | Element | DocumentFragment

We introduce these methods on Element and DocumentFragment:

prepend(DocumentContent... nodes)
append(DocumentContent... nodes)

We introduce these methods on Element, DocumentFragment, and CharacterData:

before(DocumentContent... nodes)
after(DocumentContent... nodes)

We introduce this method on Element and CharacterData:

replace(DocumentContent... nodes)

We introduce this method on DocumentType, Element, and CharacterData:


Anne van Kesteren
Received on Tuesday, 8 November 2011 22:30:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:59 UTC