Summary: | Range is incorrectly normalized after adding into selection for u HTML element. | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | a.delura | ||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED CONFIGURATION CHANGED | ||||||
Severity: | Normal | CC: | a.delura, ahmad.saleem792, ap, bfulgham, enrica, gsnedders, pkoszulinski, rniwa, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
a.delura
2015-01-13 04:23:34 PST
Rephrasing the bug report: Selection anchored in a text node inside an inline element (e.g. <u>) is incorrectly normalised by Webkit - it is moved to a text node outside that <u> element. While Webkit normalising an element-anchored selection to a closest text node is a fact (a sad one :)), I would expect that it does not affect selections anchored in text nodes. This looks like some pretty new regression, because I've never seen Webkit doing this. Of course, none other browser behave this way, but that's due to the fact that none other browser normalise selection. Can you figure out when this started? That would significantly increase the chances of this being fixed. I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case and it returns "f" in the console while in other browsers (Chrome Canary 106 and Firefox Nightly 105), it returns "o" in the console. Thanks! Safari 16.4 shows 'f' (not expected) but Safari Technology Preview 166 show 'o' in Console. Used "Private Window" to reproduce this. Can we mark this as "RESOLVED CONFIGURATION CHANGED", since it seems to be fixed in STP166. Yeah, this seems to be working now. |