User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 Build ID: 20160922113459 Steps to reproduce: I've created a JSFiddle that can be used to reproduce the error: https://jsfiddle.net/dtdesign2/vwmdzqwr/ 1. Copy some text including an <img> with a srcset-attribute to clipboard. 2. Set the focus into an element with contenteditable="true". 3. Paste the content from clipboard. The fiddle above also lists the raw clipboard data which does contain the srcset attribute, but it is missing in the contenteditable element. Actual results: The image was pasted without the srcset-attribute, all other attributes are preserved. Expected results: Include the srcset-attribute when pasting an <img>.
Confirmed in Firefox Stable 49 and Firefox Nightly 52 on macOS Sierra, there is no srcset attribute, all other attributes are preserved. It works as expected in Chrome and Safari, all attributes are preserved, inluding srcset.
Status: UNCONFIRMED → NEW
Component: Untriaged → Editor
Ever confirmed: true
Product: Firefox → Core
nsHTMLContentSerializer doesn't seem to support srcset attribute. It should be absolute path on copy.
Component: Editor → DOM
Depends on: 870021
You need to log in before you can comment on or make changes to this bug.