[whatwg] Elements should be removed from the past names map once it's no longer associated with the form element

Ryosuke Niwa rniwa at apple.com
Mon Aug 26 14:45:47 PDT 2013

Hi all,

I propose to change the specification to remove any elements that are no longer associated with the form from the past names map:

It's strange for elements to linger around forever in the past names map after the element get associated with a new form element.  Since IE didn't support form attribute for a long time (or maybe still hasn't?), I don't think there is any compatibility concern.

The change makes the elements associated with the form element more consistent and easier to reason about.  We can make form[x].form === form an invariant for every x such that form[x] is a form control element.

- R. Niwa

More information about the whatwg mailing list