New issue
Advanced search Search tips

Issue 670215 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

paste event not triggered when using html + svg elements

Reported by micni...@gmail.com, Dec 1 2016

Issue description

Chrome Version       : any
URLs (if applicable) :
Other browsers tested:
     Safari: FAIL (WebKit)
    Firefox: OK
         IE: OK

It is impossible to trigger paste in this case:

```
var div = document.createElement('div');
var svg = document.createElementNS("http://www.w3.org/2000/svg","svg");

div.appendChild(svg);
div.tabIndex = -1;
div.style.backgroundColor = '#EEEEFF';
div.style.height = '200px';
div.addEventListener('paste', function(event) { // This event listener is not triggered
    console.log('paste: ', event.clipboardData.getData('text'));
});
document.body.appendChild(div);
```

This happens when there is a html element with a svg child element or when there is a html element with a svg child element + a html child element without any content (if it has content it works fine).

For testing: https://jsfiddle.net/etmo8rL5/

 

Comment 1 by ajha@chromium.org, Dec 1 2016

Components: Blink>SVG
Labels: M-57

Comment 2 by f...@opera.com, Dec 1 2016

Status: Available (was: Unconfirmed)
Summary: paste event not triggered when using html + svg elements (was: paste event not triggered when using html + svg elements)

Comment 3 by f...@opera.com, Dec 1 2016

Components: Blink>Editing>Paste
Project Member

Comment 4 by sheriffbot@chromium.org, Dec 11 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by f...@opera.com, Dec 11 2017

Labels: -Hotlist-Recharge-Cold
Status: Available (was: Untriaged)
Labels: Hotlist-GoodFirstBug
Project Member

Comment 7 by sheriffbot@chromium.org, Dec 11

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment