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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18732

--- Comment #17 from Scott Miles <sjmiles@chromium.org> 2012-08-29 21:22:48 UTC ---
(In reply to comment #15)
> (In reply to comment #14)
> > What I'm concerned about is this: Bob the developer writes:
> > 
> > <x-awesome onclick="awesomeClick()"></x-awesome>
> > 
> > I'm 99.9% sure Bob wants that method to fire when that node is clicked, and
> > that he should not be concerned with how x-awesome is actually instantiated.
> 
> 
> That would work because onclick is just an attribute which is cloned.

Sorry, I was trying to by succinct, but it was just confusing.

I meant to echo my original example where the user has done this:

x = document.querySelector("x-awesome");
x.addEventListener("onclick", awesomeClick);

-- 
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 21:22:50 UTC