[whatwg] removing attributes

Ian Hickson ian at hixie.ch
Tue Aug 23 17:24:34 PDT 2005

On Fri, 5 Aug 2005, [UTF-8] Olav Junker Kjær wrote:
> Is it possible to remove a constraint like maxLength (on input elements) 
> through script, eg. by setting it to null? By default a field does not 
> have any maxlength constraint, so it would seem natural that if you set 
> a constraint through script, it could be removed again.

Yes, there are a number of DOM attributes that map to content attributes. 
This is already the case in DOM2 HTML.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list