W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2014

Re: Web Components: two questions

From: Hayato Ito <hayato@chromium.org>
Date: Thu, 11 Sep 2014 01:53:06 +0000
Message-ID: <CAFpjS_3kv9jnL3TjzPv2=+3ELLG+hTLLCco1pECg62=tikU5zQ@mail.gmail.com>
To: Ondřej Žára <ondrej.zara@firma.seznam.cz>, public-webapps@w3.org
On Wed Sep 10 2014 at 8:26:43 PM Ondřej Žára <ondrej.zara@firma.seznam.cz>
wrote:

> Hi,
>
> unable to seek a qualified answer via IRC or Web/spec, I decided to post
> my two beginner questions here.
>
> 1) Are form elements (input, select, textarea) inside a shadow dom
> considered when submitting a form?
>
>
The Shadow DOM spec doesn't say anything about this. Therefore,
form elements should be in the same node tree.

For example, suppose a <form> element is in the node tree A. In this case,
form elements in node tree B,  where A != B,  are not considered at all
when submitting the form.

A composed tree shouldn't have any effect on submitting a from.


> 2) I am having troubles with lifecycle callback of custom elements that
> are cloned from within a <template> element. More specifically, nor
> createdCallback nor attachedCallback are fired when an element in
> question is cloned from template.content or appended to an active
> document. Is this a specified behavior? How do I properly initialize
> custom elements that "live" inside a <template> ?
>
>
> Thanks a lot,
> sincerely,
> Ondrej Zara
>
>
>
>
> --
> *RNDr. Ondřej Žára*
> Programátor UI senior
>
> https://twitter.com/0ndras
> ondrej.zara@firma.seznam.cz <mailto:ondrej.zara@firma.seznam.cz>
> http://www.seznam.cz/
>
> Seznam.cz, a.s., Radlická 3294/10, 150 00 Praha 5 <http://mapy.cz/s/6rw4>
>
>
>
Received on Thursday, 11 September 2014 01:53:34 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:16 UTC