3 ms·
Another thing browsers should not allow the page to override.
by postalrat 5y ago
Another thing browsers should not allow the page to override.
- olliej 5y agoYou need it for google docs, etc to intercept paste events and do the right thing from the perspective of a document editor. But this also illustrates the fact that "useful" browser features can be trivially abused.
- kstrauser 5y agoThat's an interesting point. I could see the feature looking like: - Allowing a page to intercept a paste. - If the page doesn't modify the DOM in response, then override it and actually paste the content.