- From: Ryosuke Niwa <rniwa@apple.com>
- Date: Wed, 04 Dec 2013 23:00:25 -0800
- To: Ian Hickson <ian@hixie.ch>
- Cc: whatwg Group <whatwg@lists.whatwg.org>
On Dec 4, 2013, at 11:01 AM, Ian Hickson <ian@hixie.ch> wrote: > On Tue, 3 Dec 2013, Ryosuke Niwa wrote: >> On Dec 3, 2013, at 3:51 PM, Ian Hickson <ian@hixie.ch> wrote: >>> On Tue, 3 Dec 2013, Ryosuke Niwa wrote: >>>> On Dec 3, 2013, at 10:42 AM, Adam Barth <abarth@eecs.berkeley.edu> >>>> wrote: >>>> >>>> Do we really need a stack? Can't we set the form element pointer >>>> aside when we push the first template element and restore it when we >>>> pop the last template element? >>> >>> We could; in fact that might be sufficient because when the template >>> is cloned, all the special associations are lost anyway, IIRC. So the >>> form element pointer would be useless anyway in the template on the >>> long run. >> >> Right. I also think that not associating form elements with forms >> inside/outside template elements might be more natural to authors given >> their inert nature. > > Well, they're still associated with forms inside (e.g. if they are > children or have a form="" attribute). > > I've changed the parser spec to ignore the form element pointer for > <isindex> and <form> inside <template>. > > http://html5.org/r/8331 Now that I've implemented the new behavior in WebKit, I'm not certain completely ignoring the form element pointer is the right behavior here. That would mean that we'll allow nested form elements and isindex element will create its own form element even if it's inside another form element inside template element. Is that behavior really desirable? - R. Niwa
Received on Thursday, 5 December 2013 07:01:05 UTC