-Edge to strip down header of clipboard contents before providing data through clipboard.getData - html mime type

Fixed Issue #11220093

Details

Author
Grisha L.
Created
Mar 9, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.15051
Reports
Reported by 4 people

Sign in to watch or report this issue.

Steps to reproduce

repro steps:
listen to paste event
get contents of the clipboard

Expected: no header is present
Actual: Header is present like below:
Version:1.0
StartHTML:0000000105
EndHTML:0000038972
StartFragment:0000038841
EndFragment:0000038932

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Grisha L.”

      Changed Status to “Confirmed”

    • Please note when fixing this, we request that you don’t extract the fragment HTML but rather the entire HTML string (starthtml and endhtml offsets). We make use of the full string including details in the head of the document.

    • @Ephox D. Is this what you would expect to see stripped down?

       

      Version:1.0

      StartHTML:0000000105

      EndHTML:0000000942

      StartFragment:0000000527

      EndFragment:0000000902

       

      <html >

      <head>

      <meta
      http-equiv=Content-Type content="text/html; charset=utf-8">

      <meta name=ProgId
      content=OneNote.File>

      <meta
      name=Generator content="Microsoft OneNote 15">

      </head>

      <body lang=en-US
      style=’font-family:Calibri;font-size:11.0pt’>

      <!–StartFragment–>

      <p
      style=’margin:0in;font-family:Calibri;font-size:11.0pt’>&nbsp;</p>

      <p
      style=’margin:0in;font-family:Calibri;font-size:9.0pt;color:#595959’>From

      &lt;<a

      href="https://outlook.office.com/owa/?realm=microsoft.com&amp;exsvurl=1&amp;ll-cc=1033&amp;modurl=0">https://outlook.office.com/owa/?realm=microsoft.com&amp;exsvurl=1&amp;ll-cc=1033&amp;modurl=0</a>&gt;

      </p>

      <!–EndFragment–>

      </body>

      </html>

    • @Grisha We would like everything before the opening tag removed. This matches what other browsers do and includes information we need from the head of the document. For the moment we’re just searching for index of "

    • hmm, my tag references seem to have been removed. That should be “everything before the opening `` tag removed” and "searching for index of '`

    • Microsoft Edge Team

      Changed Title from “Edge to strip down header of clipboard contents before providing data through clipboard.getData - html mime type” to “-Edge to strip down header of clipboard contents before providing data through clipboard.getData - html mime type”

      Changed Assigned To from “Grisha L.” to “Siye L.”

      Changed Status from “Confirmed” to “Fixed”

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

    Sign in