W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] The "form" attribute

From: Olav Junker Kjr <olav@olav.dk>
Date: Fri, 30 Jul 2004 12:00:00 +0200
Message-ID: <410A1C20.5000700@olav.dk>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC