- From: S.A.N <notifications@github.com>
- Date: Thu, 27 Oct 2016 10:50:28 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 27 October 2016 17:51:21 UTC
I know how it works, thanks. 👍
But I think it's a bug, because the behavior is not in harmony with the attributes of behavior.
This is the right behavior:
```HTML
<!DOCTYPE html>
<html lang="ru"><head>
<meta charset="UTF-8">
</head>
<body>
<my-custom-tag data="BUG"></my-custom-tag>
<script>
'use strict';
class MyCustomTag extends HTMLElement
{
constructor(...args)
{
super(...args);
}
static get observedAttributes() { return ['data']; }
attributeChangedCallback(name, oldValue, newValue)
{
this.innerHTML = `NO ${newValue} :)`;
}
}
customElements.define('my-custom-tag', MyCustomTag, {extends: 'dialog'});
</script>
</body>
</html>
```
--
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/598#issuecomment-256719729
Received on Thursday, 27 October 2016 17:51:21 UTC