Re: [whatwg/dom] Proposal: Element.assign() (#477)

I like the Idea, I just don't like it being too polymorphic specially the part:

Sub-Proposal 2: Appending nodes with the second argument onward:

    Element.assign(element, ...nodes);
Sub-Proposal 3: Setting attributes from properties with the second argument onward:

    Element.assign(element, { role: 'button' });

I would rather have , than the "sub-proposal 3" colide with the other examples.

    Element.assign(element, {}, ...nodes);


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/477#issuecomment-318570698

Received on Friday, 28 July 2017 06:21:30 UTC