- From: Olli Pettay <Olli.Pettay@helsinki.fi>
- Date: Wed, 09 Nov 2011 00:41:09 +0200
- To: Anne van Kesteren <annevk@opera.com>
- CC: www-dom@w3.org
On 11/08/2011 11:30 PM, Anne van Kesteren wrote: > 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 as Text node feels quite awkward. All the JS strings in a web page would have .previous/nextSibling properties? > > DOMString | CharacterData | Element | DocumentFragment > > We introduce these methods on Element and DocumentFragment: > > prepend(DocumentContent... nodes) > append(DocumentContent... nodes) These methods look good. > > We introduce these methods on Element, DocumentFragment, and CharacterData: > > before(DocumentContent... nodes) > after(DocumentContent... nodes) I don't quite understand what these would do. Something like insertBefore? > > We introduce this method on Element and CharacterData: > > replace(DocumentContent... nodes) What would CharacterData.replace(someelement) do? > > We introduce this method on DocumentType, Element, and CharacterData: > > remove() Yes, remove sounds good.
Received on Tuesday, 8 November 2011 22:41:54 UTC