Re: [w3c/editing] [Input Events] Rename "replaceContent" with "insertContent" or "insertNonText" (#126)

insertHTML in execCommand is used for inserting an opaque author-provided piece of HTML.  I don't think it's similar to this.

insertNonText suggests to me that it cannot be text, but if this is meant to be used for spellcheck, it can be simple text, right?

>From an author perspective, is there any reason these two input types should actually be separate?  Maybe it would make more sense to have a generic insertContent event that fires for any type of content insertion, and scripts could inspect .data to see what the change is.  targetRanges would be null for an insertion, and non-null for a replacement.  If authors want to know the method of insertion, additional properties could be exposed.  But inserting a word by dragging vs. by saying it seems like a subtle distinction, and I'm not sure why we need two input types.

---
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/editing/issues/126#issuecomment-216038670

Received on Sunday, 1 May 2016 12:27:00 UTC