Bug 11475 - Remove whitespace rebalancing of the fragment from ReplaceSelectionCommand
Summary: Remove whitespace rebalancing of the fragment from ReplaceSelectionCommand
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-31 15:29 PST by Justin Garcia
Modified: 2022-12-19 14:46 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Garcia 2006-10-31 15:29:27 PST
Whitespace rebalancing of the fragment creates the problem demonstrated by:
nested-blocks-with-*.html

Unrendered whitespace at the end of the fragment are uncollapsed by whitespace rebalancing.  Functions that create fragments should be responsible for using nbsps where appropriate.
Comment 1 Ahmad Saleem 2022-12-19 14:46:14 PST
Only two tests related to it in /editing/:

https://github.com/WebKit/WebKit/blob/422c18c5dba37299622f8634c99d776ec1b017f9/LayoutTests/editing/pasteboard/nested-blocks-with-text-area.html#L4

https://github.com/WebKit/WebKit/blob/422c18c5dba37299622f8634c99d776ec1b017f9/LayoutTests/editing/pasteboard/nested-blocks-with-text-field.html#L4

These tests does not seems to be skipped and are matching their expectation and recently we fixed nbsp related bug as well.

Do we need to do more or someone knows background about this bug and can explain more? Thanks!