Re: Form-associated elements in the parsing algorithm

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

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Monday, 1 December 2008 08:52:05 UTC