onbeforepaste is fired twice on IE11

Won’t fix Issue #639089


Jul 22, 2014
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

  1. Create the following documet:

<!DOCTYPE html>
<meta charset="utf-8">
<div id="editor" contenteditable="true">
<p>Lorem ipsum dolor sit amet</p>
<script type="text/javascript">
var editor = document.getElementById(‘editor’);

    editor.onpaste = function ( event ) {
        console.log( &#39;onpaste&#39; );

    editor.onbeforepaste = function ( event ) {
        console.log( &#39;onbeforepaste&#39; );


  1. Select any text in the contenteditable.
  2. Copy and paste it in the contenteditable.

Result: three events:

  • onbeforepaste
  • onpaste
  • onbeforepaste

Second onbeforepaste is called after onpaste. There is no second onbeforepaste on IE8 nor on IE10.

Expected Results:

Two events:

  • onbeforepaste
  • onpaste

Actual Results:

Dev Channel specific:



0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “Sermet I.”

      Changed Status to “Confirmed”

      Changed Status from “Confirmed”

      Changed Assigned To to “Amit J.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Amit J.” to “Shuo D.”

      Changed Assigned To from “Shuo D.” to “Arthur B.”

      Changed Assigned To from “Arthur B.” to “IE F.”

      Changed Status from “Confirmed” to “Won’t fix”

      Changed Status from “Won’t fix” to “Fixed”

      Changed Status from “Fixed” to “Won’t fix”

      Changed Assigned To to “Bogdan B.”

      Changed Status from “Won’t fix”

      Changed Assigned To to “Saty B.”

      Changed Assigned To from “Saty B.” to “Jacob R.”

      Changed Status to “Won’t fix”

    You need to sign in to your Microsoft account to add a comment.

    Sign in