Closed zp1996 closed 4 months ago
@rniwa Hi rniwa, can you help me see the correct behavior? In my opinion, the behavior of selection.modify
should not be influenced by whether span
is editable or not.
We believe the new behavior is correct, therefore we will implement it in Chromium and will add a tentative test.
Merge Request of Chromium and wpt:
The specification doesn't define the behavior of
seleciton.modify()
when the granularity parameter isparagraph
.Consider this test case:
The behavior of browsers:
line
.paragraph
.If we make
span
to be editable, the behavior of browsers:Demo 1|
.paragraph
.