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

Re: Simplifying element creation

From: João Eiras <joaoe@opera.com>
Date: Wed, 05 Oct 2011 21:29:54 +0100
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <op.v2wa74kw2q99of@coruscant>

> It's the process of stringifying an existing JS object structure that's  
> motivating this discussion.
>
> It's much more natural to program and manipulate a JS object than a  
> string.
>
> These examples are using strings, but in the real world, we're using  
> variables and method calls. It's more efficient for the coder and the  
> implementation to go from JS object to DOM than to have a middle step of  
> JS to XML DOMString to DOM.

But for that there is the DOM API :) (which can always be made richer)
Received on Wednesday, 5 October 2011 20:30:24 GMT

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