Closed Bug 139305 Opened 23 years ago Closed 23 years ago

Extra <pre> around surrogate characters when Copy/Paste into Composer.

Categories

(SeaMonkey :: Composer, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: amyy, Assigned: shanjian)

References

Details

(Keywords: intl, topembed)

Attachments

(2 files)

Build: 04-22 rc1 build on WinXP-SimpChinese. Steps: 1. Launch browser, and open Composer. 2. Find some surrogate characters. 3. Copy/Paste them into Composer: a. Composer editor part. b. A cell of a table. Result: 3.a. An extra <pre> </pre> will around the surrogate character(s), and the surrogate charcter(s) will looks like in a new break new line with some space. However, you can delete the space/<pre> through Composer window. 3.b. Same as 3.a. but the space/<pre> can not be deleted in Composer window, only can be deleted in HTML source.
Notice the "<pre>" can not be deleted when paste into table.
Other SimpChinese(gb2312, gbk, gb18030 extension A&#65289;Characters don't has this problem.
Keywords: intl
QA Contact: ruixu → ylong
Summary: Extra <pre> around surrogate charcters when Copy/Paste into Composer. → Extra <pre> around surrogate characters when Copy/Paste into Composer.
assign to shanjian
Assignee: yokoyama → shanjian
Status: NEW → ASSIGNED
copy a character from text, you will see this problem. This not specific to surrogate. For example, load a gb2312 text to browser, and copy one character to composer. I am not exactly sure if the <pre> is a problem or not. reassign to composer group for feedback.
Assignee: shanjian → akkana
Status: ASSIGNED → NEW
Component: Internationalization → Editor: Composer
I don't know what a surrogate character is, but maybe Joe does, and this sounds like it's related to document encoder copy context anyway.
Assignee: akkana → jfrancis
reassign back to shanjian ylong and shanjian, I think the reproduce procedure is not clear enough in this bug ylong- can you be very very specific how to reproduce this, for example, open which url, select which text and shanjian- can you be specific how you paste into the composer with non surrogate text. ylong- can you reproduce the problem shanjian stated?
Assignee: jfrancis → shanjian
Copy/Paste gb2312, gbk or gb18030 extension A characters from browser to Composer: 1. I have a test page: http://babel/testdata/Double_byte/SimpChinese/gb18030/gb18030Yahoo.html 2. Highlight a gb2312, gbk or gb18030 extension A character(s), and Copy it into clipboard. 3. Open Composer, change charset to gb2312 or gb18030 by go to View | Character Coding. 4. Paste the character(s) in step 2 into Composer. Result: The character(s) can be pasted correctly. Following the steps above but copy/paste surrogate character(s) into Composer, then you will find the extra <pre> tag has been added.
Attached image screen shot for detail
This problem here is only for surrogate. I was using 07-18 1.0.1 branch build.
Yuying, check the html source in your test case, and you will see that those surrogate are within a <pre> block, while others are not. Removing those <pre> tags should resolve the problem.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You are right! mark as verified.
Status: RESOLVED → VERIFIED
Keywords: topembed
Blocks: grouper
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: