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

Re: Simplifying element creation

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Tue, 15 Nov 2011 11:40:05 -0800
Message-ID: <CABNRm60hXiHF2gMemnLeveyMa5fgk3+sv0h8tCtN6NMtz8RwQQ@mail.gmail.com>
To: Ojan Vafai <ojan@chromium.org>
Cc: Aryeh Gregor <ayg@aryeh.name>, Anne van Kesteren <annevk@opera.com>, "www-dom@w3.org" <www-dom@w3.org>
On Tue, Nov 15, 2011 at 11:32 AM, Ojan Vafai <ojan@chromium.org> wrote:
> But I think this syntax is far more concise and readable than anything
>> else proposed so far, and it's also likely to be the most efficient
>> (only one function call).  This is the only kind of syntax that will
>> actually displace innerHTML and all its XSS problems.
> Agreed. Although, I share Ryosuke's sadness that it encourages having lots
> of whitespace textnodes everywhere in your DOM. Not sure what we could do
> about that.

Maybe we need another quasi that ignores whitespace?

- Ryosuke
Received on Tuesday, 15 November 2011 19:41:09 UTC

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