Re: Custom Elements: "createdCallback" & cloning

On Sun, Jul 12, 2015 at 9:32 PM, Olli Pettay <olli@pettay.fi> wrote:
> Well, this printing case would just clone the final flattened tree without
> the original document knowing any cloning happened.
> (scripts aren't suppose to run in Gecko's static clone documents, which
> print preview on linux and Windows and printing use)
>
> If one needs a special DOM tree for printing, beforeprint event should be
> used to modify the DOM.

Sure, but you'd lose some stuff, e.g. <canvas>, and presumably custom
elements if they require copying some state, due to the cloning.
(Unless it's doing more than just cloning.)


-- 
https://annevankesteren.nl/

Received on Monday, 13 July 2015 06:23:14 UTC