Open
Bug 897938
Opened 12 years ago
Updated 5 years ago
Contenteditable Span lost style if last character is a whitespace
Categories
(Core :: DOM: Editor, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: york.richter, Unassigned)
Details
(Keywords: dupeme, testcase)
Attachments
(1 file, 7 obsolete files)
419 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0 (Beta/Release)
Build ID: 20130618114625
Steps to reproduce:
1. Load attached test case
2. Set the courser direct after the red area "Test case 1"
3. Press 'a'
Actual results:
The 'a' is outside the "red" <span>
But if you press SPACE, the whitespace inside the "red" <span>
Expected results:
The 'a' must be inside the "red" <span>. If the last <span> character is not a whitespace, the behavior is correct, see at "Test case 2"
Reporter | ||
Comment 1•12 years ago
|
||
Comment on attachment 780927 [details]
testcase.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>test case</title>
</head>
<body>
Test case 1:
<div id="edit" contenteditable="true">Hello <span style="font-weight: bold; background-color: red">World </span> a</div>
<br>
Test case 2:
<div id="edit" contenteditable="true">Hello <span style="font-weight: bold; background-color: red">World</span> a</div>
</body>
</html>
Reporter | ||
Comment 2•12 years ago
|
||
Reporter | ||
Comment 3•12 years ago
|
||
Attachment #780927 -
Attachment is obsolete: true
Attachment #780931 -
Attachment is obsolete: true
Reporter | ||
Comment 4•12 years ago
|
||
Attachment #780932 -
Attachment is obsolete: true
Reporter | ||
Comment 5•12 years ago
|
||
Reporter | ||
Comment 6•12 years ago
|
||
Attachment #780935 -
Attachment is obsolete: true
Attachment #780936 -
Attachment is obsolete: true
Reporter | ||
Updated•12 years ago
|
Attachment #780938 -
Attachment mime type: text/plain → text/html
Reporter | ||
Comment 7•12 years ago
|
||
Comment on attachment 780938 [details]
testcase.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>test case</title>
</head>
<body>
Test case 1:
<div id="edit" contenteditable="true">Hello <span style="font-weight: bold; background-color: red">World </span> .</div>
<br>
Test case 2:
<div id="edit" contenteditable="true">Hello <span style="font-weight: bold; background-color: red">World</span> .</div>
</body>
</html>
Reporter | ||
Comment 8•12 years ago
|
||
Attachment #780938 -
Attachment is obsolete: true
Reporter | ||
Updated•12 years ago
|
Attachment #780940 -
Attachment mime type: text/plain → text/html
Reporter | ||
Comment 9•12 years ago
|
||
Attachment #780940 -
Attachment is obsolete: true
Reporter | ||
Updated•12 years ago
|
Attachment #780941 -
Attachment mime type: text/plain → text/html
Reporter | ||
Comment 10•12 years ago
|
||
Sometimes both text cases are wrong or "test case 1" is correct and "test case 2" is wrong! Strange!
No Problems with IE, Chrome and Safari
![]() |
||
Comment 11•12 years ago
|
||
I can see the Issue even back using Firefox 3.0 (Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19 ID:2010031422).
It also seems to make a difference if you use the mouse or the keyboard + tab through to set the cursor's focus next to the red div.
Comment 12•5 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.
Severity: normal → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•