Add `ChromeOnly` to Selection.webidl's `caretBidiLevel`, or standarize it
Categories
(Core :: DOM: Selection, enhancement)
Tracking
()
People
(Reporter: mbrodesser-Igalia, Unassigned)
References
(Blocks 1 open bug, )
Details
It's neither part of the spec nor exposed by Chrome.
Comment 1•4 years ago
|
||
I just spotted this too while looking for non-standard things to cover in http://mdn-bcd-collector.appspot.com/.
Does this ever return anything other than null?
Reporter | ||
Comment 2•4 years ago
|
||
(In reply to Philip Jägenstedt [:foolip] from comment #1)
I just spotted this too while looking for non-standard things to cover in http://mdn-bcd-collector.appspot.com/.
Does this ever return anything other than null?
Yes. For instance 0 and 1 are possible. One can reproduce that for instance with the text of https://github.com/ProseMirror/prosemirror/issues/960#issue-474013365.
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Does this need a use counter before removal?
Comment 4•4 years ago
|
||
It seems like it's six years old, was added in bug 1067788, and was supposed to be ChromeOnly? Sigh. I suspect putting it behind a flag for a couple Nightly/early Beta cycles is sufficient, but sending an intent to unship to see if anyone wants a counter would be good.
Comment 5•4 years ago
•
|
||
It seems this test is the only use of the attribute. It doesn't sound like a very good reason to keep it at all, maybe we could just remove it and modify the test 🤔
Edit: I guess https://github.com/ProseMirror/prosemirror/issues/960 needs to be investigated so that it won't regress by the removal.
Comment 6•4 years ago
|
||
Yeah maybe, it was added for B2G... I do think we should do it somewhat gradually though, i.e., with a flag.
Updated•4 years ago
|
Comment 7•4 years ago
•
|
||
There is an old discussion to expose this: https://github.com/w3c/selection-api/issues/57
Comment 8•4 years ago
|
||
I think we need this feature, based on :jfkthame's explanation.
Comment 9•4 years ago
|
||
Not doing this for now. I think removing this is not very plausible for now.
Updated•2 years ago
|
Description
•