Closed Bug 145416 Opened 23 years ago Closed 23 years ago

Tag falls into the incorrect place

Categories

(Core :: Layout, enhancement, P3)

x86
Windows 2000
enhancement

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: sdb386, Assigned: attinasi)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020510 BuildID: 2002051006 When I press button with the tag, tag is put into the end of the message, but into the not current position. Reproducible: Always Steps to Reproduce: 1. Open URL 2. Type someting in message field 3. Move cursor into the middle of the message 4. Push tag button Actual Results: Tag is put into the end of the message, but into the not current position. Expected Results: Tag should be put into the not current position of the message
This page contains following code (ubbc.js): ============================================================================ function AddText(text) { if (document.postmodify.message.createTextRange && document.postmodify.message.caretPos) { var caretPos = document.postmodify.message.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text; } else document.postmodify.message.value += text; document.postmodify.message.focus(caretPos) } ============================================================================ The value of expression (document.postmodify.message.createTextRange && document.postmodify.message.caretPos) is False on Mozilla. But value of same expression is True on IE. Why this occurs?
Severity: normal → enhancement
Summary: Tag falls into the incorrect place → Tag falls into the incorrect place
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Target Milestone: --- → Future
Becase createTextRange is an IE-proprietary method -- see http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/createtextrange.asp Marking worksforme due to lack of a testcase (page is 404), but please reopen if you have a testcase; if so, attach it to this bug.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.