W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2012

Re: Optimize setting textContent?

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 9 Feb 2012 13:17:46 +1300
Message-ID: <CAOp6jLbaLj-bQ5CzPkT13eNWvuEuwUH6nzq9mOOQodT-P59PfQ@mail.gmail.com>
To: Ryosuke Niwa <rniwa@webkit.org>
Cc: Anne van Kesteren <annevk@opera.com>, www-dom@w3.org, Stig Halvorsen <stighal@opera.com>
On Thu, Feb 9, 2012 at 12:58 PM, Ryosuke Niwa <rniwa@webkit.org> wrote:

> My only concern will be that developers will start using UAs that
> implement this new behavior and make assumptions that the text node is
> always preserved and create a broken website for users who are using older
> browsers.


As far as I know, that didn't happen while Webkit was doing this for
innerHTML.

Plus, browsers update fast these days :-).

Rob
-- 
"If we claim to be without sin, we deceive ourselves and the truth is not
in us. If we confess our sins, he is faithful and just and will forgive us
our sins and purify us from all unrighteousness. If we claim we have not
sinned, we make him out to be a liar and his word is not in us." [1 John
1:8-10]
Received on Thursday, 9 February 2012 00:18:18 GMT

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