Skip to content

[Bug] Text in <input>, <textarea> should not be altered #55

@KSR-Yasuda

Description

@KSR-Yasuda

Describe the bug

In specific cases, it unexpectedly removes highlight-targeted words in textarea.

  • Multi Highlight: v2.9.0

To Reproduce

Steps to reproduce the behavior:

  1. Go to a Redmine ticket
  2. In a ticket, edit a note (Click ✎ mark of each note)
  3. It shows a textarea to edit the note;
    but highlight-targeted words are vanished

Expected behavior

Highlight-targeted words are not removed from textarea or such.

Additional context

Probably, it tries to highlight words in <textarea>, replacing with <span> element.
However, <textarea> cannot have any <span> element;
and browser would come to drop such invalid element.

I think HTML elements such as <input> and <textarea> should be untargeted of this plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions