VOOZH about

URL: https://bugzilla.mozilla.org/show_bug.cgi?id=926230

⇱ 926230 - Editor does not style blanks at end of line


Open Bug 926230 Opened 12 years ago Updated 5 years ago

Editor does not style blanks at end of line

Editor does not style blanks at end of line
Core
DOM: Editor
29 Branch
x86
Windows XP
defect
Points:
---
UNCONFIRMED
UNCONFIRMED
---
Iteration:
---
a11y-review
Accessibility Severity
Performance Impact
Size Estimate
Webcompat Priority
Webcompat Score
Tracking Status
relnote-firefox
thunderbird_esr115
thunderbird_esr140
firefox-esr115
firefox-esr140
firefox149
firefox150
firefox151
---
QA Whiteboard:
---
Has STR:
---
Change Request:
---
Bug Flags:
Signature:
None
This bug is publicly visible.

 
Reporter

Description

12 years ago
Attached file TestcaseDetails
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release) Build ID: 20130910160258 Steps to reproduce: 1) The editor is active (e.g. iframe in designmode or contenteditable). 2) A span contains blanks before a line break (either added by editing or in the original content) 3) The span has styling such as background color Actual results: The trailing spaces are there and can be manipulated in the editor. However, they are not styled. Expected results: The trailing blanks should be styled. They have almost certainly been styled in the past. Also, they are styled in Chrome. This is a big problem for rich text editors.
Component: Untriaged → Editor
Product: Firefox → Core
Attached image ScreenshotDetails
Hmm, I can't reproduce this. This is what I see. Am I missing something?
Reporter

Comment 2

12 years ago
Ehsan: delete the line break and reintroduce it.
Ah, of course, sorry I can't read! :-) The issue here is that we incorrectly convert the non-breaking space to a regular space, which gets collapsed and therefore doesn't affect rendering. This is only one of the thousands of similar types of bugs we have with regards to our incorrect whitespace collapsing behavior in the editor... :(
Reporter

Comment 4

11 years ago
Still a problem under FF 29.0.1 (Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0)
Version: 24 Branch → 29 Branch
Reporter

Comment 5

9 years ago
This bug is still present in 52.0.1 (Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0) and is still a problem. After loading the testcase, it looks correct. However, after editing (adding spaces at the end) the last space does not get styled. Strangely, the DOM inspector does not show these spaces in the HTML code, but for "Edit as HTML", it is there. Anybody?

Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.

If you have reason to believe, this is wrong, 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.