Bug 44512 - sequential block nodes that have different float style are selected as a single word
Summary: sequential block nodes that have different float style are selected as a sing...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-24 04:04 PDT by Hajime Morrita
Modified: 2022-11-30 02:47 PST (History)
4 users (show)

See Also:


Attachments
a repro. (518 bytes, text/html)
2010-08-24 04:04 PDT, Hajime Morrita
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hajime Morrita 2010-08-24 04:04:24 PDT
Created attachment 65255 [details]
a repro.

See an attached repro. it runs a test automatically.

Expected: only text "Left" is selected.
Actual: Both "Left" and "Right" are selected.

----
The bug is originally reported at http://crbug.com/39795.
Comment 1 Hajime Morrita 2010-08-24 04:06:12 PDT
WebKit assumes a floating element as a something like a inline, thus doesn't treat it need spacing 
between elements. 
See shouldEmitNewlinesBeforeAndAfterNode() in TextIterator.cpp.
Comment 2 Ahmad Saleem 2022-11-30 02:47:21 PST
I am able to reproduce this bug in Safari 16.1 and Chrome Canary 110, where both browsers select both "left" and "right" while Firefox only select "Left" as expected. Just wanted to highlight the latest behavior from attached testcase. Thanks!