- From: Hayato Ito <hayato@chromium.org>
- Date: Thu, 11 Sep 2014 01:53:06 +0000
- To: Ondřej Žára <ondrej.zara@firma.seznam.cz>, public-webapps@w3.org
- Message-ID: <CAFpjS_3kv9jnL3TjzPv2=+3ELLG+hTLLCco1pECg62=tikU5zQ@mail.gmail.com>
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