Ctrl-Shift-X with the caret in a contenteditable sets the dir attribute on the body element
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
People
(Reporter: aharon, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: rtl)
Attachments
(1 file)
(deleted),
text/html
|
Details |
Comment 1•11 years ago
|
||
Reporter | ||
Comment 2•11 years ago
|
||
Comment 3•9 years ago
|
||
Comment 4•4 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.
If you have reason to believe this is wrong, please write a comment and ni :jstutte.
Comment 5•2 years ago
|
||
See https://github.com/whatwg/html/issues/9244
:vhilla is currently working on dirname
. I discovered this issue while testing directionality changes. It seems good to fix this, and it will be more prevalent for users when/if https://bugzilla.mozilla.org/show_bug.cgi?id=1830864 is fixed.
Comment 6•2 years ago
|
||
(In reply to Simon Pieters [:zcorpan] from comment #5)
See https://github.com/whatwg/html/issues/9244
:vhilla is currently working on
dirname
. I discovered this issue while testing directionality changes. It seems good to fix this, and it will be more prevalent for users when/if https://bugzilla.mozilla.org/show_bug.cgi?id=1830864 is fixed.
Happy to change severity/priority to S3/P3 for now; we shall follow once the spec issue is resolved. I assume there's no storage/worker support required, so clearing NI on Jens.
Updated•2 years ago
|
Comment 7•2 years ago
|
||
It should be defined clearly that which element's dir
should be changed.
One of the differences between Gecko vs. the other browsers is, Gecko does not move focus automatically when selection is moved from outer contenteditable
to inner contenteditable
when contenteditable
elements are nested with contenteditable="false"
element. I guess that it's better to define that change dir
of the nearest editing host from Selection.anchorNode
or Selection.focusNode
. If there is no selection ranges, the focused element should be used. And I also think that it should be defined that whether focused element or editing host's dir
should be changed when an editable element in contenteditable
has focus, e.g., <div contenteditable><button>label</button></div>
.
Comment 8•2 years ago
|
||
And if you standardize new execCommand
for direction change, it's be able to check in WPT without considering shortcut keys in JS. But this is optional.
Description
•