W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > August 2012

[Bug 18732] [Custom]: element upgrade algorithm does not preserve attributes, event listeners, references

From: <bugzilla@jessica.w3.org>
Date: Wed, 29 Aug 2012 19:38:19 +0000
Message-Id: <E1T6o5j-0001tW-52@jessica.w3.org>
To: public-webapps-bugzilla@w3.org

--- Comment #6 from Dimitri Glazkov <dglazkov@chromium.org> 2012-08-29 19:38:18 UTC ---
(In reply to comment #5)
> Why don't we want to transplant event listeners? It seems like there is some
> concern about the upgrade event, but as Scott mentioned, I don't see why we
> can't just fire it on the new element.

We could, but they may not do what the user intended. For example:

this.addEventListener('click', method.bind(this));

when transplanted, will still be acting on the old element. Is this a Real
Concern (tm)?

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 29 August 2012 19:38:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:04:26 UTC