W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1999

creating a DOM subtree ...

From: Ramakrishna Reddy Kandula <ramky@desktop.com>
Date: Sat, 25 Sep 1999 16:10:01 -0400 (EDT)
To: www-dom@w3.org
Message-ID: <19990925151145.A8780@ramky.jumpdata.com>
Is there a compact way to create a DOM subtree from a string containing 
marked-up text ? I am looking for a call similar to IE's insertAdjacentHTML.
I think it is very useful and practical to have such a call in DOM 2.
I know that we can achieve the same thing with a bunch of createElement,
createAttribute, createTextNode and appendChilds. But it is very practical
to be able to append a string containing markup. User agents can be
easily optimized to create this subtree much faster than by doing individual
calls to create the whole subtree.

What do you think ?

Received on Monday, 27 September 1999 05:20:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC