Created attachment 272201 [details]
Sample page which shows how browsers sees HTML.
Safari Version : 9.0.3 (11601.4.4)
Other browsers tested:
Chrome: Fail, version: 48.0.2564.116 m
What steps will reproduce the problem?
1. Open attached sample in a browser.
2. Go to https://en.wikipedia.org/wiki/HTTPS and copy first paragraph (from HTTPS to https://en.wikipedia.org/wiki/HTTPS)
3. Paste it in editable element, click the "Get HTML" button and observe what HTML gets produced.
What is the expected result?
The expected HTML is without being inserted before closing and after opening span tag.
If I go to https://en.wikipedia.org/wiki/HTTPS and execute below in console everything seems to be in order
Also viewing HTML with dev-tools doesn't show any
What happens instead?
There are   being inserted before closing and after opening span tag.
Please provide any additional information below. Attach a screenshot if possible.
I have tested this on Windows 7 and Mac 10.11
I have made one mistake:
copy first paragraph (from HTTPS to exchanged data)...