[whatwg] The "form" attribute

More on the "form" attribute:

I assume that the type of the "form" HTML attribute is IDREF. There is 
one precedent: the "for" attribute on the label element. In the DOM the 
type of the corresponding property (renamed to "htmlFor" for different 
reasons) is DOMString. WF2 extends HTMLLabel with a property "control" 
of Element type, which returns the actual element that the 
"for"/"htmlFor" attribute points to.

So the DOM property corresponding to the IDREF attribute is of type 
DOMString, while a sepereate DOM property (which doesn't correspond 
directly to a HTML attribute) points directly to the reference element.

Based on this precedent I propose that the "form" attribute is renamed 
to avoid clash with the "form" property in the DOM. (I cant think of a 
good name, though). The new attribute should have a corresponding DOM 
property of type DOMString.

Olav Junker Kj?r

Received on Friday, 30 July 2004 03:00:00 UTC