[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 #10 from Dimitri Glazkov <dglazkov@chromium.org> 2012-08-29 21:09:12 UTC ---
(In reply to comment #9)
> I'd rather have some dictionary passed to register and it would contain
> the listeners which would be automatically registered.
> 
> 
> Something like
> 
> document.register("foobarelement", {
>   prototype: HTMLSpanElement,
>   listeners: {
>     click: function(evt) { /*do something*/ },
>     mouseover: function(evt) { /* do something else*/ };
>   }
> })
> 

Sweet. That should really cut down on the amount of things that we have to do
in "created" callback.

> (And please don't say webkit's memory management can't handle that.)

If it can't, we'll treat is a bug :)

-- 
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:09:14 UTC