Make style setters of `HTMLEditor` stop working if the editing host is for plaintext-only
Categories
(Core :: DOM: Editor, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox133 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Assignee | ||
Comment 1•1 month ago
|
||
Unfortunately, (even tough we're the last implementor of this feature,) there are not editing behavior tests in web-platform tests. Therefore, this patch creates new
plaintext-onlydirectory into
editingand make the feature enabled in its
dir.ini` to check the implementing behavior with new tests.
This patch also changes how to compute the editing host (whether using <body>
or not when selection is outside it), but the new behavior (not limited in the
<body>
) should work fine in the most cases and I believe that it's better
than current implementation in some methods.
Note that Chrome considers whether the style should be updated or not with
the closest inclusive ancestor of the focus node of Selection
. However,
it's odd and aligning to the behavior requires bigger change. Therefore, I'd
like to implement this feature only with checking the focused editing host.
Comment 4•25 days ago
|
||
bugherder |
Description
•