[w3c/clipboard-apis] Clarify the algorithm for setting target of a clipboard event in 7.2 Processing model for event dispatch (#29)

https://www.w3.org/TR/clipboard-apis/#processing-model-for-event-dispatch has this text:

> Set target as follows:
> * If the context is editable:
>   * Let target be the element that contains the start of the selection in document order, or the body element if there is no selection or cursor.
> * Else, if the context is not editable
>  *  Let target be the focused node, or the body element if no node has focus. 

It ought to define what **the** context is (there's a [definition](https://www.w3.org/TR/clipboard-apis/#dfn-editable-context) of what it means for **a** context to be editable) - presumably the focused node?

"the start of the selection" and "the focused node" ought to link to the corresponding specs. Would it make sense to define it in terms of existing APIs perhaps?

Also [the definition of "the body element"](https://www.w3.org/TR/clipboard-apis/#dfn-the-body-element) in clipboard-apis links to [the definition of <body>](https://www.w3.org/TR/html/sections.html#the-body-element) in the HTML spec, while it's probably meant to point specifically to [the definition of the term "The body element of a document"](https://www.w3.org/TR/html/dom.html#the-body-element-0) in the HTML spec.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/29

Received on Sunday, 3 April 2016 02:18:05 UTC