Re: [editing] What do we need to integrate with the clipboard api? (#64)

Maybe I'm worried a bit too much, but Blink (and probably WebKit too) canonicalize selections when set as of today, as you all know. CE=events is supposed to stop that, correct?

All existing command implementations in Blink assume that selections are canonicalized before executions. That said, there're quite a risk where those commands do not work against non-canonicalized selections.

An easy fix from top of my head is to canonicalize the current selection in the beginning of `execCommand()`. That could alter the selection even for `'copy'`. Would that be acceptable? If so, it might be nice to mention that in the spec.

If no, hm, this could be a hard problem to solve. Thoughts?

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/64#issuecomment-130528627

Received on Thursday, 13 August 2015 04:28:39 UTC