Skip to content

getTargetRanges definition for EditContext is unclear #178

Description

@ltenmoz

#174 updated the definition of getTargetRanges for EditContext

getTargetRanges() returns an array of StaticRanges representing the content that the event will modify if it is not canceled, if the editing host is contenteditable node or an EditContext editing host

but this doesn't really make sense: the browser does not modify the DOM from user input for EditContext (that is up to the web author to do). So perhaps for EditContext it should say something like "getTargetRanges() returns the array of StaticRanges that would be modified if the EditContext editing host were instead contenteditable" (a bit awkward, but I'm not sure if there's a better way of wording it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions