Open Bug 437044 Opened 16 years ago Updated 2 years ago

execCommand( 'inserthtml', false, ' ' ) inserts a regular space if white-spaces are not preserved by CSS

Categories

(Core :: DOM: Editor, defect)

x86
Windows Server 2003
defect

Tracking

()

People

(Reporter: fredck, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: testcase, Whiteboard: [h2review-noted])

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

Calling execCommand( 'inserthtml', false, ' ' ) will insert a regular space instead of the   char.

To verify it, the command must be called when the caret is placed in the middle of a word.

The following cases are also buggy:

' Text'
'Text '
' Text '

Reproducible: Always
Attached file Test case (deleted) —
This is confirmed this. I wrote up a test case that has an editable text area and another that will display it's HTML, as well as inserting   space elements.
Status: UNCONFIRMED → NEW
Component: General → Editor
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
QA Contact: general → editor
Whiteboard: [h2review-noted]
Summary: execCommand( 'inserthtml', false, ' ' ) inserts a regular space → execCommand( 'inserthtml', false, ' ' ) inserts a regular space if white-spaces are not preserved by CSS
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: