Skip to content

fillIn treats text as html when the target is content editable #1526

@rpemberton

Description

@rpemberton

Example:

fillIn(contentEditableElement, '<div>foo</div>');

The text gets parsed as html though I'd expect it to be treated as text.

Should fillIn set textContent instead of innerHTML?

element.innerHTML = text;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions