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.
- Ryosuke
On Wed, Feb 8, 2012 at 5:47 AM, Anne van Kesteren <annevk@opera.com> wrote:
> In https://bugzilla.mozilla.org/**show_bug.cgi?id=725221<https://bugzilla.mozilla.org/show_bug.cgi?id=725221>roc (cc'd, not subscribed to the list) suggests optimizing textContent by
> special casing the scenario where the first child is a text node and the
> string being set is non-empty. This would affect mutation observers and
> makes the setting algorithm more complicated, but it is also a performance
> win (in some implementations at least). Opinions?
>
>
> --
> Anne van Kesteren
> http://annevankesteren.nl/
>
>