Closed Bug 109818 Opened 24 years ago Closed 24 years ago

Maxlength of <INPUT> shouldn't be applied for preedit string.

Categories

(Core :: Internationalization, defect, P3)

x86
Windows 2000
defect

Tracking

()

VERIFIED DUPLICATE of bug 98434
mozilla0.9.9

People

(Reporter: kazhik, Assigned: tetsuroy)

References

Details

(Keywords: intl)

Maxlength attribute of INPUT field shouldn't be applied for preedit string. http://bugzilla.mozilla.gr.jp/showattachment.cgi?attach_id=368 Open the abobe page and type some Japanese text with IME. You can't type 6 characters. Original report in Bugzilla-jp: http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=1532 Related bug: http://bugzilla.mozilla.org/show_bug.cgi?id=109263
accepting for 0.9.8
Priority: -- → P3
Target Milestone: --- → mozilla0.9.8
Status: NEW → ASSIGNED
Keywords: intl
*** Bug 113465 has been marked as a duplicate of this bug. ***
This is regression from 6.2. This may be related to the bug 98434.
Keywords: nsbeta1, regression
joe: any idea?
joe: can you give me a pointer or two in the code for me to look at?
editor/libeditor/text/nsTextEditRules.cpp, function TruncateInsertionIfNeeded(). My guess is that since the string that comes in for IME is not just the last character you typed, but instead everythin you have typed so far, that we need to be able to determine what portion of you entered text is not yet committed and subtract that out of the length before adding in the current string (which will have that uncommitted text in it). I don't know that there is a good way to do this. I can help you with this: it's really an editor bug.
Target Milestone: mozilla0.9.8 → mozilla0.9.9
nsbeta1+ per i18n triage
Keywords: nsbeta1 → nsbeta1+
I tested this in 6.2 again. This is not regression from 6.2.
Keywords: regression
I am marking this a duplicate of 98434. While I was debugging this, we need to have a way to determine if the IME is in Composition mode. We can use kInsertTextIME to determine if IME is *activated*; but that doesn't really help in this case. We want to allow users to type as much of text as possible in the Composition mode. Once the user commits the text, then we can restrict the inserted text length. *** This bug has been marked as a duplicate of 98434 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified as dup.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.