W3C home > Mailing lists > Public > public-html@w3.org > December 2008

Re: Form-associated elements in the parsing algorithm

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 2 Dec 2008 11:35:11 +0000 (UTC)
To: Henri Sivonen <hsivonen@iki.fi>
Cc: HTML WG <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0812021127560.17414@hixie.dreamhostps.com>

On Mon, 1 Dec 2008, Henri Sivonen wrote:
> On Dec 1, 2008, at 00:49, Ian Hickson wrote:
> > On Sun, 30 Nov 2008, Henri Sivonen wrote:
> > > On Nov 26, 2008, at 23:44, Ian Hickson wrote:
> > > 
> > > > > This could be clearer if that section enumerated the elements 
> > > > > that are form-associated. For example, I tell at a glance if the 
> > > > > list matched the list at 
> > > > > http://mxr.mozilla.org/mozilla-central/source/content/html/document/src/nsHTMLContentSink.cpp#509
> > > > 
> > > > You can get a list currently by clicking on the <dfn> for "form- 
> > > > associated element".
> > > 
> > > <legend> is form-associated in Gecko but not in HTML5. Is this 
> > > intentional and what might the consequences be?
> > 
> > I can't reproduce this in IE8b2 or Firefox trunk:
> > 
> > http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%3Cform%3E%3Cinput%3E%3Cfieldset%3E%3Clegend%3E%3Cscript%3Ew%28document.forms 
> > [0].elements[2]%29%3C%2Fscript%3E
> 
> From IRC:
> # # [09:48] <gavin> the legend doesn't appear in form.elements, but you can
> get legend.form
> # # [09:49] <gavin> because that's how it was defined at
> http://www.w3.org/TR/DOM-Level-2-HTML/idl-definitions.html , apparently
> http://krijnhoetmer.nl/irc-logs/whatwg/20081201#l-177

Man the Web platform is screwed up. Fixed.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 2 December 2008 11:35:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:59 UTC