Closed Bug 14731 Opened 21 years ago Closed 21 years ago

formatting whitespace too aggressive

Categories

(Core :: DOM: Editor, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: buster, Assigned: akkzilla)

References

()

Details

today, we unconditionally add formatting whitespace whenever a node is split.
We need to do this in a smarter way, because sometimes that whitespace is
significant.

test case:

<html><body>one<b>two</b></body></html>

put the caret between 't' and 'w'
type control-b to turn off bolding
type a character
notice the extra whitespace around the new character
it's because we added newlines for formatting that are treated as significant
for inline content.

We need to surpress the formatting whitespace for inline nodes.
Status: NEW → ASSIGNED
Target Milestone: M12
Yes, absolutely, we need to be smarter, starting with a check for inline (which
should be very easy).  Should this be an M11 fix?  This will mostly affect
output, so I'm marking it M12 (but will look at it right away); let me know if
we want it in sooner.
M12 is fine.
I have the fix in my tree, will check in when M12 opens.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Fixed.
Status: RESOLVED → VERIFIED
verified in 10/13 build.
You need to log in before you can comment on or make changes to this bug.