- From: Maciej Hirsz <notifications@github.com>
- Date: Fri, 21 Oct 2016 06:57:36 -0700
- To: whatwg/dom <dom@noreply.github.com>
Received on Friday, 21 October 2016 13:58:04 UTC
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