[w3c/webcomponents] Bulk property updates (#718)

I wanted to offer a proposal for [bulk property updates](https://github.com/ComponentKitchen/bulk-properties) to efficiently set multiple HTML element properties at once. Example:

```js
const div = document.createElement('div');
div.applyProperties({
  attributes: {
    role: 'main'
  },
  style: {
    color: 'red'
  },
  textContent: 'Hello, world.'
});
```

The above would be exactly equivalent to:

```js
const div = document.createElement('div');
div.setAttribute('role', 'main');
div.style.color = 'red';
div.textContent = 'Hello, world.';
```

In either case, the result is the same:

```html
<div role="main" style="color: red;">Hello, world.<div>
```

The proposal outlines some other ideas along this line, including the ability to apply properties to multiple elements identified by `id`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/718

Received on Monday, 18 December 2017 17:26:57 UTC