Re: [w3c/webcomponents] Need callback for form submit data (#187)

@tkent-google I'm still struggling to get the example to work on canary (Version 73.0.3652.0) after activating the flag for `#enable-experimental-web-platform-features`. Specifically, the call to `this.attachInternals` still complains saying that it is not a function, trimmed down version of the code:

```js
        class Foo extends HTMLElement {
            static get formAssociated() { return true; }
            constructor() {
                super();
                this.internals_ = this.attachInternals();
            }
            // must be a public API
            get form() {
                return this.internals_.form;
            }
            checkValidity() {
                return this.internals_.checkValidity();
            }
            set value(v) {
                this._value = v;
                this.internals_.setFormValue(v)
            }
            get value() {
                return this._value;
            }   
        }
        customElements.define('x-foo', Foo);
```

any hint? at some point in #758 we talked about using the 3rd argument on the `define()` call, but I don't see any mention in your document, I assume that is not the case today.

-- 
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/187#issuecomment-450036880

Received on Wednesday, 26 December 2018 22:45:32 UTC