[whatwg/dom] Proposal: ParentNode#append() to return self (#348)

A minor quality of life change that would allow changing this:

```js
function createFoo(bar) {
    let foo = document.createElement('div');
    foo.append('Inside foo', bar);
    return foo;
}
```

Into:

```js
function createFoo(bar) {
    return document.createElement('div').append('Inside foo', bar);
}
```

This would also make it easier for transpiler authors to target the bare-bones DOM API with syntax like JSX or similar.

-- 
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/348

Received on Friday, 21 October 2016 13:58:04 UTC