Bug 44512

Summary: sequential block nodes that have different float style are selected as a single word
Product: WebKit Reporter: Hajime Morrita <morrita>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ahmad.saleem792, cody.lerum, rniwa, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
a repro. none

Hajime Morrita
Reported 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.
Attachments
a repro. (518 bytes, text/html)
2010-08-24 04:04 PDT, Hajime Morrita
no flags
Hajime Morrita
Comment 1 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.
Ahmad Saleem
Comment 2 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!
Note You need to log in before you can comment on or make changes to this bug.