[Webkit-unassigned] [Bug 29815] REGRESSION (r48698): Cannot enter text in Facebook message content field
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 28 20:40:04 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29815
--- Comment #6 from TAMURA, Kent <tkent at chromium.org> 2009-09-28 20:40:05 PDT ---
I understand the Facebook code.
In the definition of TextInpuTcontrol.prototype:
setMaxLength:function(maxlength){
this.maxLength=maxlength;
this.getRoot().maxLength=this.maxLength||null;
return this;
},
This code is called by UIComposer.prototype.initializeTextarea() like:
initializeTextarea:function(maxLength,initialHeight){
new TextAreaControl(this.input)
.setMaxLength(maxLength)
.setOriginalHeight(initialHeight)
.setAutogrow(true)
.onfocus();
this.input.onfocus='';
},
where the maxLength parameter is 0.
> this.getRoot().maxLength=this.maxLength||null;
this.getRoot() is a <textarea> element. In the case of maxLength==0, null is
set. null is converted to 0. So textarea.maxLength becomes 0.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list