[Webkit-unassigned] [Bug 165248] New: paste event not triggered when using html + svg elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 1 01:54:38 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=165248

            Bug ID: 165248
           Summary: paste event not triggered when using html + svg
                    elements
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: micnic90 at gmail.com
                CC: cdumez at apple.com

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).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161201/c215cd93/attachment.html>


More information about the webkit-unassigned mailing list