[whatwg] Textarea's changing dom

martijnw martijnw at hotpop.com
Fri Jul 2 05:37:57 PDT 2004


http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-24874179

"value of type DOMString
    Represents the current contents of the corresponding form control, 
in an interactive user agent. Changing this attribute changes the 
contents of the form control, but does not change the contents of the 
element."

I would rather have it that changing the dom attribute 'value' or typing 
in the textarea, would also change the contents of the textnode in the 
textarea.
In that way the dom level 2 traversal and range specification would not 
be useless for textarea's.

The same goes for input text controls and probably also for other form 
controls.

Regards,
Martijn




More information about the whatwg mailing list