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/
,
Dec 1 2016
,
Dec 1 2016
,
Dec 11 2017
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
,
Dec 11 2017
,
Dec 11 2017
,
Dec 11
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
,
Dec 11
|
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by ajha@chromium.org
, Dec 1 2016Labels: M-57