jure965 / OpenLorem

Lorem ipsum API client web extension
GNU General Public License v3.0
15 stars 6 forks source link

Breaks a form's reset button. #36

Open JohnLukeBentley opened 2 years ago

JohnLukeBentley commented 2 years ago

To reproduce:

  1. Create a simple form:
<form id="frmMain" method="post" action="" onsubmit="return onSubmit();">
  <textarea name="CommentText" id="CommentText"></textarea>
  <p class="buttonGroup">
    <button type="submit">Submit</button>
    <button type="reset">Reset</button>
  </p>
</form>
  1. Load the html page and type some text in the textarea.
  2. Click the Reset button. Observe that text is cleared from textarea.
  3. From the context menu insert some lorem with "OL Insert Lorem".
  4. Click the Reset button. Observe that text is not cleared from textarea.

We expect that the reset button will clear the text even after using "OL Insert Lorem".