- From: Russell Bicknell <notifications@github.com>
- Date: Mon, 10 Oct 2016 10:59:43 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Monday, 10 October 2016 18:00:34 UTC
Sure, `setAttribute` might not have anything to do with responding to the new value. I just wanted to point out that the difference in the two is strange from the perspective of someone who thinks they're just extending HTMLElement.
The parser can't be explained as
```javascript
let e = document.createElement('my-element');
e.setAttribute('a', 'b');
```
instead, it has to be closer to
```javascript
let e = document.createElement('my-element');
Element.prototype.setAttribute.apply(e, ['a', 'b']);
```
and custom elements make that much more obvious.
--
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/583#issuecomment-252694580
Received on Monday, 10 October 2016 18:00:34 UTC